-
Notifications
You must be signed in to change notification settings - Fork 166
ImportError for packages.urllib3.poolmanager on Debian #82
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
Comments
I can't do much about this, and i don't think any maintainers of the involved Python software should either; This is clearly a packaging issue, and the breakage is solely the responsibility of the package maintainer. Unfortunately i also don't have a temporary fix other than avoiding Debian's packaging system by using |
I guess you can ask on the issuetracker for requests-toolbelt. |
Reported bug at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=753578 |
Thank you for the quick reply. Just for future reference: |
Yes, i realized that and added the "checking that requests gets reinstalled properly" a while after posting. Using a virtualenv might be the safest solution even (and symlinking |
Debian maintainers chose not to ship requests.packages.urllib3 due to debian policies to avoid embedded copies of code and it is a deliberate, rather than accidental divergence. A bug report in debian has now been opened, requesting for requests.packages.urllib3 import to work, even if it's just a compat wrapper that imports python3-urllib3 package. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=753578 any further comments about this issue in the Debian package should go there. |
@xnox Thank you for the summary, i already linked the Debian bugreport further above. :) |
Only as reference: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=753578#10 |
Please don't comment on this anymore, everybody who wants to discuss or subscribe should do so on Debian's bugtracker. |
Hmm, maybe i shouldn't have closed this. My aim was rather to centralize discussion, not prevent it. |
Fixed on unstable: https://packages.qa.debian.org/r/requests/news/20141021T100416Z.html |
Awesome, thanks! |
thanks @EriolV |
👯 |
@stweller Does updating requests fix the issue? |
Yes, sorry for taking so long to reply. Thanks a lot! Closing. |
Added a note in the docs at 867148d |
@zwerfvogel Why did you delete this? It might be useful for some people, although I personally think the solution presented in vdirsyncer's docs is cleaner. On 19 December 2014 15:22:09 CET, zwerfvogel notifications@github.com wrote:
|
I read the surrounding discussion regarding the Debian packaging decisions, then saw the unmerged pull request requests/toolbelt#40 here which implements exactly what I did but better and decided no-one would want my patch. |
On a Debian system (very likely also Ubuntu) the version of requests is patched to not ship their own version of urllib, in other words: packages.urllib3 does not exist (same issue as e.g. here: mk-fg/python-onedrive#13. Hence, I get the following error:
The text was updated successfully, but these errors were encountered: