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...

  1. the python installation on aws doesn't include ssl support.
  2. 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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -