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

ImportError: No module named 'urlparse' may occur after upgrading to urllib3 1.19 #473

Open
Saren-Arterius opened this issue Nov 4, 2016 · 6 comments
Labels

Comments

@Saren-Arterius
Copy link

Saren-Arterius commented Nov 4, 2016

For anyone experiencing this problem, please refer to urllib3/urllib3#1025, then change line 45 of (/usr/lib/python3.5/site-packages/)urllib3/contrib/appengine.py from from urlparse import urljoin to from urllib.parse import urljoin as a temp workaround.

@xelra
Copy link

xelra commented Nov 4, 2016

I can confirm this issue. After upgrading to the latest urllib on Arch Linux, I'm experiencing exactly the same problem.

The problem introduced itself with version 1.19. Downgrading to 1.18.1 temporarily resolved the issue.

For the interested reader who is also on Arch Linux, you can downgrade packages by installing the previous version from pacman's cache.

cd /var/cache/pacman/pkg
pacman -U python-urllib3-1.18.1-1-any.pkg.tar.xz python2-urllib3-1.18.1-1-any.pkg.tar.xz

@yadayada yadayada added the setup label Nov 6, 2016
@0xelion
Copy link

0xelion commented Nov 10, 2016

Same issue, the fix proposed by Saren-Arterius worked tho.

@ghost
Copy link

ghost commented Nov 14, 2016

Same issue here. Downgrading, as suggested by @xelra, worked like a charm.

@xelra
Copy link

xelra commented Nov 14, 2016

@maiaftv You might still want to update your system. If you're wondering how to do that, there's the --ignore switch in pacman.

So you can just update as usual with

pacman -Syu --ignore python-urllib3 --ignore python2-urllib3

@anthonypelletier
Copy link

Use pip3 install urllib3==1.18.1

@ghost
Copy link

ghost commented Nov 15, 2016

Thank you, @anthonypelletier. I will keep this way until December, since I'm working round the clock to finish up my thesis and get my MSc degree.

Moreover, I guess it's time to move for Gentoo. This Arch is running for 2 years, 2 months, and 30 days including today. Although I'm happy with it, I miss the learning curve by the time when I started to use Arch Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants