Skip to content
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

Different version behavior with requirements file vs command-line version specification #145

Closed
vbabiy opened this issue Mar 15, 2011 · 1 comment
Labels
auto-locked Outdated issues that have been locked by automation type: bug A confirmed bug or unintended behavior

Comments

@vbabiy
Copy link
Contributor

vbabiy commented Mar 15, 2011

Observe:

#!shell

carljm@arugula:~$ virtualenv ve
New python executable in ve/bin/python
Installing setuptools............done.
carljm@arugula:~$ ./ve/bin/pip --version
pip 0.6.3 from /home/carljm/ve/lib/python2.6/site-packages/pip-0.6.3-py2.6.egg (python 2.6)
carljm@arugula:~$ ./ve/bin/pip install Django==1.0.1
Downloading/unpacking Django==1.0.1
  Using download cache from /home/carljm/.pip-cache/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FD%2FDjango%2FDjango-1.0.1%2520beta%25201.tar.gz
  Running setup.py egg_info for package Django
Installing collected packages: Django
  Running setup.py install for Django
    changing mode of build/scripts-2.6/django-admin.py from 664 to 775
    changing mode of /home/carljm/ve/bin/django-admin.py to 775
Successfully installed Django
carljm@arugula:~$ virtualenv ve2
New python executable in ve2/bin/python
Installing setuptools............done.
carljm@arugula:~$ ./ve2/bin/pip --version
pip 0.6.3 from /home/carljm/ve2/lib/python2.6/site-packages/pip-0.6.3-py2.6.egg (python 2.6)
carljm@arugula:~$ cat reqs.txt 
Django==1.0.1
carljm@arugula:~$ ./ve2/bin/pip install -r reqs.txt 
Downloading/unpacking Django==1.0.1 (from -r reqs.txt (line 1))
  Using download cache from /home/carljm/.pip-cache/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FD%2FDjango%2FDjango-1.0.1%2520beta%25201.tar.gz
  Running setup.py egg_info for package Django
  Source in ./ve2/build/Django has the version 1.0.1.beta.1, which does not match the requirement Django==1.0.1 (from -r reqs.txt (line 1))
Source in ./ve2/build/Django has version 1.0.1.beta.1 that conflicts with Django==1.0.1 (from -r reqs.txt (line 1))
Storing complete log in ./pip-log.txt

With the exact same specification ("Django==1.0.1"), pip succeeds if it's specified on the command line and fails if it's specified in a requirements file.


@dstufft
Copy link
Member

dstufft commented Dec 14, 2014

This should be fixed already.

@dstufft dstufft closed this as completed Dec 14, 2014
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants