Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unusual version leads to problems with older pip #1
We're using siphashc3 as a dependency in Weblate, when user has old version of pip, the installation fails:
It should install siphashc3.
I solved this by installing siphashc3 separately and pointing out version 3 explicitly:
I guess the solution is to update the requirements.txt to point to version 3 (
Can you please release siphashc3 with more usual version number so that it doesn't confuse pip?
This was referenced
Jul 18, 2017
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 :)
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.