Skip to content

Cancelling pip install when package unpacked but not installed can give confusing error message #547

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

Closed
chrish42 opened this issue May 30, 2012 · 4 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@chrish42
Copy link

I'm using pip to install a requirements.txt file in a virtualenv on a server. During the install, I think that I should have updated my requirements.txt file, so I hit Ctrl+C, do a pip freeze, and then restart the pip install. But I now get a very confusing error message (not this exact one, but same exact format):

Source in .../build/Django has version 1.2.3 that conflicts with Django==1.2.4 (from -r requirements/apps.txt (line 3))

It took me a couple minutes to figure out that the already downloaded and unpacked (but not installed) old version was confusing pip. I deleted the "build" directory and restarted the install, and everything worked this time. But it'd be nicer if pip wasn't confused by the presence of the old version in the build directory.

To show that this is a source of confusion for other people too: http://stackoverflow.com/questions/4536103/how-can-i-upgrade-specific-packages-using-pip-a-requirements-file

@pnasrat
Copy link
Contributor

pnasrat commented May 30, 2012

Just to be clear on the reproducer:

Given a requirements file

Django==1.2.3

in requirements.txt

When you do venv/bin/pip install -r requirements.txt
And you interrupt the process
And you pip freeze
And you edit the file
Then you get this conflict message

Is that correct?

@chrish42
Copy link
Author

Pretty much. the pip freeze is probably not essential (after all, it just outputs text). Just installing a requirements.txt file that contains Django==1.2.3, interrupt pip before it's done, edit the requirements.txt file to read "1.2.4" instead and starting the pip install from the (newly edited) requirements.txt file should do it.

@pnasrat
Copy link
Contributor

pnasrat commented May 31, 2012

This may be fixed with Issue #516

Do you mind - maybe in a virtualenv upgrading pip to the develop branch

pip install pip==dev

And try your reproducer again.

Thanks

@hltbra
Copy link
Contributor

hltbra commented Apr 2, 2013

Looks like a duplicate of lots of issues related to build/, but to be exact it looks like a dupe of #413.

Closing.

@hltbra hltbra closed this as completed Apr 2, 2013
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 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
Projects
None yet
Development

No branches or pull requests

3 participants