Daniel Wallace added the comment:
I think this is caused by the fact that socks5 proxies are not supported?
$ cat ~/issue34038.py
from urllib.request import urlopen, HTTPError
url = 'http://icanhazip.com'
u = urlopen(url)
$./python.exe ~/issue34038.py
Traceback (most recent call last):
Fil
New submission from T L :
Changing the urlopen call to a curl commnand invoke works.
$ export http_proxy=socks5://127.0.0.1: https_proxy=socks5://127.0.0.1:
# this will raise an exception with string representation is a blank string
# at least for url:
https://s3.amazonaws.com/mozilla