Questions tagged [python-packaging]

Packages are namespaces which contain multiple packages and modules themselves.

A package is a directory containing a special file called __init__.py (which indicated that the directory contains a python package) and sub-packages and modules. The package name is determined by the name of the directory.

1369 questions
0
votes
1 answer

400 Client Error: Web Environment' is not a valid choice for this field for url: https://upload.pypi.org/legacy/

When i put my module on the package when uploading to pypi, something went wrong and I did not know how to fix it $ twine upload dist/* Uploading distributions to https://upload.pypi.org/legacy/ Uploading zaoshu-0.1.1-py3-none-any.whl HTTPError:…
0
votes
1 answer

Python Module Not Found Issues after moving directory

I am working on some repacking of a project that has a variety of different technologies involved. I am trying to move a python module into the project structure for storage in git and have all project files located together. The python code works…
Busturdust
  • 2,447
  • 24
  • 41
0
votes
0 answers

Delete old Versions of same package

I distribute my own package via distutils (command: python setup.py sdist) and install this package on my server (command: python setup.py install). After updating my package several times with different version numbers I have different versions on…
kai
  • 33
  • 7
0
votes
2 answers

Module Downloaded from Github not Importing

I'm trying to create my own python package on Github so I can install it on any machine. It's installing and the module is there when doing pip3 freeze but there is an import error. I've searched for "import error with module in pip" and couldn't…
ethanenglish
  • 1,217
  • 2
  • 15
  • 32
0
votes
0 answers

Requirement of requirement not installing when installing with pip

When using pip to install, a requirement of a requirement is not being installed. dedupe requires pylbfgs, which requiresnumpy 1.12.1 or greater. But when I install dedupe from a directory > git clone git@github.com:dedupeio/dedupe.git > cd…
fgregg
  • 3,173
  • 30
  • 37
0
votes
3 answers

Cryptography packafe installation error on google cloud ML

enter image description here While running a job in google cloud ML, I have included few dependent packages in setup.py . While running the job, it gives the error that cryptography is not able to build_wheel. Cryptogrpahy could be a dependent…
Appu
  • 83
  • 9
0
votes
0 answers

Integrate and package a ruby module in python application

I have a custom ruby module which currently I execute through python scripts. But while packaging, I want to package both python and ruby source code together so that end user not need to care about downloading both separately. How to package a ruby…
Abhishek Dadhich
  • 321
  • 2
  • 10
0
votes
1 answer

Problems installing scikit-learn

I was installing scikit-learn python module using pip, due to some reasons the installations was not completed, I tried to reinstall the package, but then it shows this error: pip can't proceed with requirement 'scikit-learn' due to a pre-existing…
Yash Jain
  • 195
  • 4
  • 9
0
votes
1 answer

ImportError if using as package. Package cannot import its own module

I have a pytestlib package and modules as follows: test.py is simply creating module2 and the module2 imports module1. test.py code is working as expected if compiled and run directly in its own folder. pyteslib\ - __init__.py - module1.py …
freewill
  • 1,111
  • 1
  • 10
  • 23
0
votes
1 answer

ImportError Cannot import name - nonspecific

I have made python package from https://github.com/raamana/pyradigm and uploaded it to pip using the following commands (after following the instructions on pypi, etc): python setup.py sdist bdist_wheel twine upload dist/* In theory, now one…
0
votes
1 answer

Python 'ImportError: No module named' when importing modules across packages

I came across a Python 'ImportError: No module named...' error attempting to import a Python module which resides in another Python package from a module which resides within another Python package. The following image shows the directory…
Chiranga Alwis
  • 1,049
  • 1
  • 25
  • 47
0
votes
0 answers

Packaging Flask-Script and Flask-Migrate utilties with Flask application

I have an application design using flask with flask-sqlalchemy. In order to control database migrations as the models change I am using flask-migrate to wrap alembic and use within the flask-script management context. I am trying to decide how to…
crasic
  • 1,918
  • 2
  • 18
  • 29
0
votes
1 answer

Applying decorator to function appears to remove it from module __dict__

I am defining several functions in a python package composed of several modules that represent separate components of a simulation model. To execute the simulation model, the package is imported and the functions along with their __name__ are…
pbreach
  • 16,049
  • 27
  • 82
  • 120
0
votes
2 answers

Unable to install pwn package for Python 2.7

While trying to install pwn package for Python 2.7, I encountered an error about capstone.dll. I tried to install using the command line and using PyCharm, but it shows the same error. Here's the installation's log: Collecting pwn Using cached…
Nick
  • 499
  • 4
  • 11
  • 25
0
votes
1 answer

Tensorflow Docker container on Windows: how to install python package

I have a Docker on my Windows machine and tensorflow image. I can run jupyter notebook but do not know how to install additional python packages into my docker container