Getting "ImportError: cannot import name HTTPSConnection" error in Python 2.7 -
i'm trying deploy django in aws elasticbeanstalk.
while following steps shown here, i'm stuck command, "eb init".
i'm using python 2.7 in ubuntu 12.10 (vmware)
i'm getting error below:
eb init ..... lib.aws.http_client import http_get, http_post file "/home/g/documents/files/aws/aws-elasticbeanstalk-cli-2.4.0/eb/linux/python2.7/lib/aws/http_client.py", line 17, in <module> httplib import httpsconnection importerror: cannot import name httpsconnection
two possibilities spring mind...
- the python installation on aws doesn't include ssl support.
- you've created file called
httplib.py
shadowing 1 in standard python library.
try doing import ssl
, , if importerror: no module named _ssl
, it's #1, otherwise it's #2.
Comments
Post a Comment