just hit this also, a simple recreate: $ env -u http_proxy python -c 'import sys, requests; print(requests.get(sys.argv[1]).status_code)' http://ubuntu.com 200 $ env http_proxy=http://my.proxy:3128/ python -c 'import sys, requests; print(requests.get(sys.argv[1]).status_code)' http://ubuntu.com Traceback (most recent call last): File "<string>", line 1, in <module> .... NameError: global name 'ProxyManager' is not defined
both python and python3 fail. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1187429 Title: adapters.py uses undefined name ProxyManager To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/requests/+bug/1187429/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
