acd_cli icon indicating copy to clipboard operation
acd_cli copied to clipboard

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

Open Saren-Arterius opened this issue 9 years ago • 6 comments

For anyone experiencing this problem, please refer to https://github.com/shazow/urllib3/pull/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.

Saren-Arterius avatar Nov 04 '16 14:11 Saren-Arterius

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

xelra avatar Nov 04 '16 15:11 xelra

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

0xelion avatar Nov 10 '16 19:11 0xelion

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

ghost avatar Nov 14 '16 11:11 ghost

@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

xelra avatar Nov 14 '16 17:11 xelra

Use pip3 install urllib3==1.18.1

anthonypelletier avatar Nov 15 '16 15:11 anthonypelletier

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.

ghost avatar Nov 15 '16 16:11 ghost