-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing module using pip giving error in build wheel #1123
Comments
@sidhujasminder: I don't think this is a setuptools/pip bug, see this jsnapy issue. |
@benoit-pierre no that was a permission issue. /etc/jsnapy required sudo permissions and running pip with sudo in virtualenv would install it as a global system package and not local to the virtualenv. |
Did you read the whole discussion? They do a lot of gnarly stuff in their setup.py, trying to detect if running in a virtualenv or not, installing things outside of Python' site-packages, IMHO, just misusing setuptools as a distribution package manager. All this dynamic stuff is not going to translate well to wheels and/or installing in a virtualenv. I do get a permission error when installing in a environment created with venv, and the same error as you when created with virtualenv. pip installing Please open a bug on their bug-tracker. |
@benoit-pierre so how do you suggest to desgin the structure because there is a need for some external files to be used for its usage. |
I guess switch to using package_data in place of Also see this discussion regarding |
Description:
I am trying to get a python module successfully installed in the virtualenv. What happens is, that when in virtualenv it starts to build wheels for the module but it shows an error. But it is seen that the module is successfully installed and runs proper even with the error in bdist_wheel. It is expected that no such error should emerge executing the pip install command.
No such error is found when installing the module by cloning the module from git. "python setup.py install"
The link to the repository is: https://github.com/Juniper/jsnapy
PS: THIS ERROR DOES NOT COME UP WHEN INSTALLED USING SUDO.
What I've run:
virtualenv env_jsnapy
source env_jsnapy/bin/activate
pip install jsnapy
What I've also run:
Installing the same module using git install, but there it installs fine without error.
virtualenv env_jsnapy
source env_jsnapy/bin/activate
git clone https://github.com/Juniper/jsnapy.git
cd jsnapy
python setup.py install
The text was updated successfully, but these errors were encountered: