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
Unusual version leads to problems with older pip #1
Comments
This module doesn't have any dependency. The problem seems to be on your package. |
Yes, it has been on python 3, see WeblateOrg/weblate#1563 (comment). |
I just tried it again on MacOS and it worked: ❯ mkvirtualenv siphashc3-issue -p python3.5
Running virtualenv with interpreter /usr/local/bin/python3.5
Using base prefix '/usr/local/Cellar/python35/3.5.2/Frameworks/Python.framework/Versions/3.5'
New python executable in /Users/gableroux/.virtualenvs/siphashc3-issue/bin/python3.5
Also creating executable in /Users/gableroux/.virtualenvs/siphashc3-issue/bin/python
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /Users/gableroux/.virtualenvs/siphashc3-issue/bin/predeactivate
virtualenvwrapper.user_scripts creating /Users/gableroux/.virtualenvs/siphashc3-issue/bin/postdeactivate
virtualenvwrapper.user_scripts creating /Users/gableroux/.virtualenvs/siphashc3-issue/bin/preactivate
virtualenvwrapper.user_scripts creating /Users/gableroux/.virtualenvs/siphashc3-issue/bin/postactivate
virtualenvwrapper.user_scripts creating /Users/gableroux/.virtualenvs/siphashc3-issue/bin/get_env_details
❯ pip --version
pip 9.0.1 from /Users/gableroux/.virtualenvs/siphashc3-issue/lib/python3.5/site-packages (python 3.5)
❯ echo "siphashc3" > requirements.txt
❯ pip install -r requirements.txt
Collecting siphashc3 (from -r requirements.txt (line 1))
Downloading siphashc3-3.tar.gz
Building wheels for collected packages: siphashc3
Running setup.py bdist_wheel for siphashc3 ... done
Stored in directory: /Users/gableroux/Library/Caches/pip/wheels/25/8f/f1/99be28d704e00533bfb467afb4ec45202cd4284e2ef498b85a
Successfully built siphashc3
Installing collected packages: siphashc3
Successfully installed siphashc3-3 I just tried again on the server I had the problem and I cannot reproduce anymore. I don't know if you guys did anything, but thanks for your time :) 🎉 |
Might be caused by pip using cached version from /Users/gableroux/Library/Caches/pip/wheels, but it's really hard to tell... |
Anyway the problem is in the versioning, here comes log when it goes wrong:
So apparently some pip versions think that one digit versions are a pre-release. |
Seems like the easy fix would be to change the version in setup.py from |
We're using siphashc3 as a dependency in Weblate, when user has old version of pip, the installation fails:
Actual behaviour
pip install -r requirements.txt
gives the following error:Expected behaviour
It should install siphashc3.
I solved this by installing siphashc3 separately and pointing out version 3 explicitly:
pip install siphashc3==3
I guess the solution is to update the requirements.txt to point to version 3 (
siphashc3==3
orsiphashc3>=3
)Fix
Can you please release siphashc3 with more usual version number so that it doesn't confuse pip?
The text was updated successfully, but these errors were encountered: