ATTRIBUTE ERROR: 'module' object has no attribute 'ssl'

J

johnny

I am getting the following errors:

File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 679, in
_send_output
self.send(msg)
File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 646, in send
self.connect()
File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 1073, in
connect
ssl = socket.ssl(sock, self.key_file, self.cert_file)
AttributeError: 'module' object has no attribute 'ssl'

Thank You in Advance
 
J

John Machin

johnny said:
I am getting the following errors:

That is *one* error.
File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 679, in
_send_output
self.send(msg)
File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 646, in send
self.connect()
File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 1073, in
connect
ssl = socket.ssl(sock, self.key_file, self.cert_file)
AttributeError: 'module' object has no attribute 'ssl'

Thank You in Advance

Thanks for what? We can't help you if you don't supply the full
traceback, plus what version of Python you are running, on what
platform [yeah, Windows, but which?]

By the way, how did you manage to get Python installed in a path like
"H:\xampp\xampp\xampp" ?

Cheers,
John
 
J

John Machin

John said:
johnny said:
I am getting the following errors:

That is *one* error.
File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 679, in
_send_output
self.send(msg)
File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 646, in send
self.connect()
File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 1073, in
connect
ssl = socket.ssl(sock, self.key_file, self.cert_file)
AttributeError: 'module' object has no attribute 'ssl'

Thank You in Advance

Thanks for what? We can't help you if you don't supply the full
traceback, plus what version of Python you are running, on what
platform [yeah, Windows, but which?]

Plus a copy/paste of the code that you were running, of course.
 
F

Fredrik Lundh

johnny said:
I am getting the following errors:

File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 679, in
_send_output
self.send(msg)
File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 646, in send
self.connect()
File "H:\xampp\xampp\xampp\python\lib\httplib.py", line 1073, in
connect
ssl = socket.ssl(sock, self.key_file, self.cert_file)
AttributeError: 'module' object has no attribute 'ssl'

looks like you're using a Python distribution that doesn't support SSL.
ActivePython, perhaps?

</F>
 
J

johnny

I am using ActiveState python.

ActivePython 2.4.3 Build 12 (ActiveState Software Inc.) based on
Python 2.4.3 (#69, Apr 11 2006, 15:32:42) [MSC v.1310 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
 
J

johnny

I fixed it. I went to python site and downloaded the python 2.4 msi and
extracted _ssl.lib and _ssl.pyd using winRar and put them into
python/DLLs folder
I am using ActiveState python.

ActivePython 2.4.3 Build 12 (ActiveState Software Inc.) based on
Python 2.4.3 (#69, Apr 11 2006, 15:32:42) [MSC v.1310 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.


Fredrik said:
looks like you're using a Python distribution that doesn't support SSL.
ActivePython, perhaps?

</F>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top