-
Notifications
You must be signed in to change notification settings - Fork 395
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
Timeout issues with pip or pip3: TypeError: unsupported operand type(s) for -=: 'Retry' and 'int' #1095
Comments
This fixes openaps#1095 Also changed some tabs to spaces and removed some stale comments with this commit
If you have reached here from google, and your setup is failing, then here is what you should do: The command that fails is What this command does is: manually run: Make sure you run this repeatedly until it succeeds. Than run: This time it will work (I hope :-)) |
@tzachi-dar you might want to edit your comment to replace |
Changed that to master. |
@PieterGit @tzachi-dar is this still an issue? |
On my last installs, this did not happen. |
Nor on mine. Closing: please reopen (or open a new issue/PR) for any further problems. |
I was having the same issue which i resolve by increasing default time out |
Just hit this nice traceback with oref0 while install
requests
package withpip3
.I occurs with fresh latest rasbian lite image on a RPI0.
Several users of Debian and Ubuntu are hitting this bug, e.g.
Rootcause seems to be a bug in the
urllib3
library which has been resolved, but is not present in current distributions, see urllib3/urllib3#567Several pages suggest to upgrade your system pip, setuptools and wheel, but this is not a good idea as described pypa/pip#5599 . If you do that you will break your pip and pip3 commands because the upgraded version don't match the system install. I did this myself and fixed it like this: pypa/pip#5599 (comment)
The best would be that Debian and thus raspbian update their python-pip and python-pip3 packages (see e.g. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901393 )
Fortunately it seems that adding a larger timeout also works, e.g.
pip3 --default-timeout=1000 install requests
seems to fix the issue.(credits go @zbot473 and I found it here sammchardy/python-binance#245 (comment) )
The text was updated successfully, but these errors were encountered: