Skip to content

Instantly share code, notes, and snippets.

@ArcTanSusan
Last active August 29, 2015 14:25
Show Gist options
  • Save ArcTanSusan/c63808f640f735b4795d to your computer and use it in GitHub Desktop.
Save ArcTanSusan/c63808f640f735b4795d to your computer and use it in GitHub Desktop.
ImportError: cannot import name InsecurePlatformWarning
Traceback (most recent call last):
File "/var/tmp/teacup-venv-user-vagrant/bin/pip", line 7, in <module>
from pip import main
File "/var/tmp/teacup-venv-user-vagrant/local/lib/python2.7/site-packages/pip/__init__.py", line 11, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/var/tmp/teacup-venv-user-vagrant/local/lib/python2.7/site-packages/pip/vcs/mercurial.py", line 9, in <module>
from pip.download import path_to_url
File "/var/tmp/teacup-venv-user-vagrant/local/lib/python2.7/site-packages/pip/download.py", line 22, in <module>
from pip._vendor import requests, six
File "/var/tmp/teacup-venv-user-vagrant/local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py", line 58, in <module>
from . import utils
File "/var/tmp/teacup-venv-user-vagrant/local/lib/python2.7/site-packages/pip/_vendor/requests/utils.py", line 25, in <module>
from .compat import parse_http_list as _parse_list_header
File "/var/tmp/teacup-venv-user-vagrant/local/lib/python2.7/site-packages/pip/_vendor/requests/compat.py", line 7, in <module>
from .packages import chardet
File "/var/tmp/teacup-venv-user-vagrant/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/__init__.py", line 3, in <module>
from . import urllib3
File "/var/tmp/teacup-venv-user-vagrant/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/__init__.py", line 16, in <module>
from .connectionpool import (
File "/var/tmp/teacup-venv-user-vagrant/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 33, in <module>
from .connection import (
File "/var/tmp/teacup-venv-user-vagrant/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/connection.py", line 41, in <module>
from .util import (
File "/var/tmp/teacup-venv-user-vagrant/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py", line 5, in <module>
from .ssl_ import (
File "/var/tmp/teacup-venv-user-vagrant/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py", line 4, in <module>
from ..exceptions import SSLError, InsecurePlatformWarning
ImportError: cannot import name InsecurePlatformWarning
(teacup)vagrant@vagrant-ubuntu-trusty-64:~/piston/teacup$ pip freeze
amqp==1.4.6
anyjson==0.3.3
argh==0.26.1
astroid==1.1.0
Babel==1.3
backports.ssl-match-hostname==3.4.0.2
beautifulsoup4==4.4.0
boto==2.38.0
bottle==0.11.7
cffi==1.1.2
Cheetah==2.4.4
CherryPy===3.2.4piston0
cliff==1.12.0
cmd2==0.6.8
cobalt-python-novaclient-ext===1.3.1833piston
colorama==0.3.3
coverage==3.7.1
cryptography==0.9.3
decorator==3.4.2
Django==1.5.12
django-appconf==1.0.1
django-compressor==1.5
django-nose==1.4.1
django-openstack-auth==1.3.1
ecdsa==0.13
enum34==1.0.4
eventlet==0.17.4
flufl.enum==4.0.1
funcsigs==0.4
futures==3.0.3
greenlet==0.4.7
horizon==3.3.10769
httplib2==0.9.1
idna==2.0
ipaddress==1.0.14
iso8601==0.1.10
Jinja2==2.7.3
jsonpatch==1.11
jsonpointer==1.9
jsonschema==2.3.0
kazoo===1.4piston3
kombu==3.0.26
lesscpy==0.10.2
linecache2==1.0.0
lockfile==0.10.2
logilab-common==0.60.0
lxml==3.4.4
Markdown==2.6.2
MarkupSafe==0.23
mimeparse==0.1.3
mock==1.2.0
msgpack-python==0.4.6
ndg-httpsclient==0.4.0
netaddr==0.7.15
netifaces==0.10.4
networkx==1.9.1
nose==1.3.7
nose-exclude==0.3.0
nosexcover==1.0.10
openstack.nose-plugin===0.11piston
oslo.config==1.11.0
oslo.i18n==1.6.0
oslo.serialization==1.5.0
oslo.utils==1.5.0
paramiko==1.15.2
passlib==1.6.2
pathtools==0.1.2
pbr==0.10.2
pexpect==3.3
ply==3.6
prettytable==0.7.2
psutil==3.1.1
pyasn1==0.1.8
pycparser==2.14
pycrypto==2.6.1
pylint==1.0.0
pyOpenSSL==0.15.1
pyparsing==2.0.3
pysnmp==4.2.5
python-ceilometerclient==1.3.0
python-cinderclient==1.2.1
python-daemon==1.6.1
python-dateutil==2.4.2
python-glanceclient==0.18.0
python-heatclient==0.6.0
python-keystoneclient==1.4.0
python-libarchive===3.1.2.1piston0
python-neutronclient==2.5.0
python-novaclient==2.20.0
python-swiftclient==2.5.0
python-troveclient==1.2.0
pytz==2015.4
PyYAML==3.11
repoze.lru==0.6
requests==2.7.0
rfc3987==1.3.4
savage===0.0.0-db5f6a7f8c295b1b1515ab856c2e6daa8e3d81d6
scales==1.0.3
selenium==2.46.1
simplejson==3.8.0
six==1.9.0
statsd==3.1
stevedore==1.4.0
-e git+git@github.com:onceuponatimeforever/teacup.git@e582212fbefaa25a965b39dae8101a4434288a41#egg=teacup-master
termcolor==1.1.0
traceback2==1.4.0
unittest2==1.1.0
urllib3==1.11
waitress==0.8.9
warlock==1.1.0
watchdog==0.8.3
WebOb==1.4.1
WebTest==2.0.18
(teacup)vagrant@vagrant-ubuntu-trusty-64:~/piston/teacup$ pip --version
pip 7.1.0 from /home/vagrant/.virtualenvs/teacup/local/lib/python2.7/site-packages (python 2.7)
(teacup)vagrant@vagrant-ubuntu-trusty-64:~/piston/teacup$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
re>>> requests.__version__
'2.7.0'
(teacup)vagrant@vagrant-ubuntu-trusty-64:~/piston/teacup$ uname -a
Linux vagrant-ubuntu-trusty-64 3.13.0-44-generic #73-Ubuntu SMP Tue Dec 16 00:22:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment