pypi

Cannot Find Relative Import Within Module Python

Cannot Find Relative Import Within Module Python Question: I coudn’t find a solution to this problem online. I’m pretty sure this doesn’t have anything to do with relative imports but how pypi packages up a directory. I have my directory structure like this: autocord ├── types │ ├── Message.py │ ├── Attachment.py │ ├── Deleted.py …

Total answers: 1

I am getting an error when i run twine upload

I am getting an error when i run twine upload Question: I ran this command: twine upload ./* and this error happened: Uploading distributions to https://upload.pypi.org/legacy/ ERROR InvalidDistribution: Unknown distribution format: ‘dist’ edit: I forgot to run it in the dist folder Asked By: tjwllms52 || Source Answers: Well, what does ./* expand to? Chances …

Total answers: 1

Can install new PyPi module with pip, but can't import it myself?

Can install new PyPi module with pip, but can't import it myself? Question: So I’m trying to add a new script I wrote, fakesky, to PyPi as a module. I uploaded it to PyPi, and pip will let me install it successfully, but every time I try to import it, I get the following error: …

Total answers: 1

conda: what difference does it make if we set pip_interop_enabled=True?

conda: what difference does it make if we set pip_interop_enabled=True? Question: There are many posts on this site which reference, typically in passing, the idea of setting pip_interop_enabled=True within some environment. This makes conda and pip3 somehow interact better, I am told. To be precise, people say conda will search PyPI for packages that don’t …

Total answers: 1

Search pypi package filtering by processor architecture

Search pypi package filtering by processor architecture Question: I’m wondering how can I find a package on pypi with filtering by amd/arm processor architecture, let’s say I need to download the .whl file of the numpy package for windows amd64, how can I get a direct link to this .whl file? pip search is not …

Total answers: 1

What's difference between [tool.poetry] and [project] in pyproject.toml?

What's difference between [tool.poetry] and [project] in pyproject.toml? Question: Context So, I’m trying to create a new python package following this guideline: https://packaging.python.org/en/latest/tutorials/packaging-projects/ As a guideline says – in my pyproject.toml I should have this structure: [project] name = "example_package_YOUR_USERNAME_HERE" version = "0.0.1" authors = [ { name="Example Author", email="[email protected]" }, ] description = "A …

Total answers: 2

Module Not Found Error For Custom Pypi Package

Module Not Found Error For Custom Pypi Package Question: I am trying to upload my package to pypi and use it. Using Twine i upload it to pypi but when i try to use this package I get Module not found error. My Error : My Folder structure for the package is : The error …

Total answers: 1

Installing ssdeep package from PyPi on M1 Macbook

Installing ssdeep package from PyPi on M1 Macbook Question: The Goal Install ssdeep PyPi package on a M1 Macbook Pro. The Problem When I run pip install ssdeep I get 2 errors The first error is caused because fuzzy.h cannot be found. warnings.warn( running egg_info creating /private/var/folders/0f/4c82tsj50n10zqq89fndcslc0000gn/T/pip-pip-egg-info-ai0atrdv/ssdeep.egg-info writing /private/var/folders/0f/4c82tsj50n10zqq89fndcslc0000gn/T/pip-pip-egg-info-ai0atrdv/ssdeep.egg-info/PKG-INFO writing dependency_links to /private/var/folders/0f/4c82tsj50n10zqq89fndcslc0000gn/T/pip-pip-egg-info-ai0atrdv/ssdeep.egg-info/dependency_links.txt writing requirements …

Total answers: 3

how to install python modules where pipy.org is is not accessible from iran?

how to install python modules where pipy.org is is not accessible from iran? Question: so the problem is that pypi.org hase been filtered by iranian government(yes , i know it’s ridiculous!). i tried to install some python modules from Github downloaded files: pip install moduleName but every module has it’s own dependencies and try to …

Total answers: 4

Finding the minimum supported Python version for a package

Finding the minimum supported Python version for a package Question: I’ve just made a Python package and to help me in managing it, I’m using some relatively new features in Python for typings. Given that this is just typings, will my package work for lower versions? Here’s an example of the package: from __future__ import …

Total answers: 1