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

pip install does not response, but works well with option '--no-cache-dir' #3245

Closed
quxiaowei opened this issue Nov 14, 2015 · 12 comments
Closed
Labels
auto-locked Outdated issues that have been locked by automation type: bug A confirmed bug or unintended behavior

Comments

@quxiaowei
Copy link

when install some package, it shows Collecting package_name, it does not go on, just stoped there, without any error message.

when with option --no-cache-dir, or with sudo it works well.

I work on os x 10.11.1, with homebrewed python3.

Any ideas?

@Russell-Jones
Copy link

Run it with -vvv to get a better idea of where it's stopping.

@quxiaowei
Copy link
Author

Thanks for the reply.

It showed as below:

$ pip3 install -vvv request  
Collecting request   
  Getting page https://pypi.python.org/simple/request/   
  Starting new HTTPS connection (1): pypi.python.org   
  "GET /simple/request/ HTTP/1.1" 200 272    

After typing pip3 -vvv list, following the list, it shows:

Starting new HTTPS connection (1): pypi.python.org   
"GET /pypi/pip/json HTTP/1.1" 200 46090   

then got stuck there.

Running pip3 --no-cache-dir has no problem.

@t0k4rt
Copy link

t0k4rt commented Nov 18, 2015

same issue, but I'm using pip installed with pyenv

@xavfernandez
Copy link
Member

Looks like a duplicate of #3148.
It would be interesting to see where it is hanging and why, maybe add a break point to https://github.com/pypa/pip/blob/7.1.2/pip/_vendor/cachecontrol/controller.py#L88 and sees where it hangs ?

@xavfernandez xavfernandez added the type: bug A confirmed bug or unintended behavior label Dec 1, 2015
@quxiaowei
Copy link
Author

@xavfernandez

after debug, i found code stuck at
https://github.com/pypa/pip/blob/develop/pip/_vendor/requests/sessions.py#L605
print r
shows
<Response [200]>

i have no idea what this mean

p.s.

when with --no-cache-dir, the if not stream: was not entered.

@quxiaowei
Copy link
Author

I found this problem probably had something to do with cache directory or .lock file in cache directory.

When I try pip3 list, after listing all installed package, pip just hung there, didn't exit.
Then I remove http directory in /User/myname/Library/Caches/pip/, pip3 exited immediately.

try pip3 list again, it worked fine.

the third pip3 list just went back to initial situation.

It looks the same as this issue, my pip version = 7.1.2
#2787

@quxiaowei
Copy link
Author

@Russell-Jones @xavfernandez @brosner @alex

below is my debug result.

there was exception:
https://github.com/quxiaowei/demo/blob/master/debug#L77

and got stuck at the last line:
https://github.com/quxiaowei/demo/blob/master/debug#L98.
which was trying to open the .lock file.

hoping it will help!

https://github.com/quxiaowei/demo/blob/master/debug

@quxiaowei
Copy link
Author

close by mistake!

@quxiaowei quxiaowei reopened this Jan 21, 2016
@quxiaowei
Copy link
Author

this problem does not happen on version 8.0.2

@xavfernandez
Copy link
Member

It might have been solved by #3382

@mingrammer
Copy link

Same here

@gerritholl
Copy link

I don't think this was solved by #3382. It is still around in pip 9.0.1, see #3532, of which this is probably a duplicate.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 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

6 participants