I've hit this bug on ubuntu 16.10 with python-pip version 8.1.2-2ubuntu0.1 when trying to create a virtualenv while disconnected from the network. After upgrading to python-pip version 9.0.1-2.3 from ubuntu 18.04, this behavior disappeared. So I believe this problem resolved.
I've attached a python script that will work in python 2 or 3 which reproduces this bug on affected systems for verifying that this issue has been fixed. ** Attachment added: "Script to verify presence of bug" https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1586859/+attachment/5136614/+files/test-pip.py -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1586859 Title: urllib3/util/retry.py broke on passing invalid type To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1586859/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs