By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,634 Members | 1,897 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,634 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Dec 10 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a

johnny wrote:
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

Dec 10 '06 #2

P: n/a

John Machin wrote:
johnny wrote:
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.

Dec 10 '06 #3

P: n/a
johnny wrote:
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>

Dec 10 '06 #4

P: n/a
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 Lundh wrote:
johnny wrote:
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>
Dec 10 '06 #5

P: n/a
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

johnny wrote:
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 Lundh wrote:
johnny wrote:
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>
Dec 10 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.