This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: AttributeError: 'module' object has no attribute 'HTTPSConnection'
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: awelch, r.david.murray
Priority: normal Keywords:

Created on 2009-10-14 23:49 by awelch, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg94055 - (view) Author: A Welch (awelch) Date: 2009-10-14 23:49
I received a working script created with Active Python 2.6.2 for 
Windows 32 bit.  I downloaded the Active Python 64 bit Windows version 
for my 64 bit Windows Vista OS and have attempted to run the script.  I 
get the following error:

Traceback (most recent call last):
File "ofx-ba-tfb-auto.py", line 212, in
client.doQuery(query, argv[1]+"_acct.ofx")
File "ofx-ba-tfb-auto.py", line 178, in doQuery
h = httplib.HTTPSConnection(host)
AttributeError: 'module' object has no attribute 'HTTPSConnection'

I see a few references (not on this site) to the error, but none seem 
to fit exactly and being a Python novice I wasn't sure what direction 
to turn.  Most suggest that my Python installation is missing a needed 
library to support SSL.  I also tried using the 2.6.3.7 version of 
Active Python for WIN 64 and get the same exact error. 

Would appreciate any and all assistance.  Thank you.
msg94059 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2009-10-15 00:19
The httplib module creates the HTTPSConnection class only if it can
successfully import the ssl module.  So your installation must be
missing that module.  Since you say your are using an ActivePython
version, you should contact their community for support, since
presumably the problem is in the ActivePython installation somewhere.
msg94061 - (view) Author: A Welch (awelch) Date: 2009-10-15 00:30
Thank you for your response and my apologies for posting this in the 
incorrect support forum.  I thought that this forum was for all the 
various versions of Python.
msg94062 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2009-10-15 00:33
An understandable confusion, but no, python.org just maintains the
original version, called CPython or python.org Python.
msg94063 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2009-10-15 00:34
I should clarify a little:  ActivePython a _distribution_ of CPython,
one not maintained by python.org.  Then there are other versions, such
as IronPython, and Jython....
History
Date User Action Args
2022-04-11 14:56:53adminsetgithub: 51384
2009-10-15 00:34:59r.david.murraysetmessages: + msg94063
2009-10-15 00:33:33r.david.murraysetmessages: + msg94062
2009-10-15 00:30:43awelchsetmessages: + msg94061
2009-10-15 00:19:01r.david.murraysetstatus: open -> closed
priority: normal


nosy: + r.david.murray
messages: + msg94059
resolution: works for me
stage: resolved
2009-10-14 23:54:01awelchsettype: behavior
2009-10-14 23:49:31awelchcreate