473,695 Members | 1,681 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

I am getting the following errors:

File "H:\xampp\xampp \xampp\python\l ib\httplib.py", line 679, in
_send_output
self.send(msg)
File "H:\xampp\xampp \xampp\python\l ib\httplib.py", line 646, in send
self.connect()
File "H:\xampp\xampp \xampp\python\l ib\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
5 9528

johnny wrote:
I am getting the following errors:
That is *one* error.
>
File "H:\xampp\xampp \xampp\python\l ib\httplib.py", line 679, in
_send_output
self.send(msg)
File "H:\xampp\xampp \xampp\python\l ib\httplib.py", line 646, in send
self.connect()
File "H:\xampp\xampp \xampp\python\l ib\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

John Machin wrote:
johnny wrote:
I am getting the following errors:

That is *one* error.

File "H:\xampp\xampp \xampp\python\l ib\httplib.py", line 679, in
_send_output
self.send(msg)
File "H:\xampp\xampp \xampp\python\l ib\httplib.py", line 646, in send
self.connect()
File "H:\xampp\xampp \xampp\python\l ib\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
johnny wrote:
I am getting the following errors:

File "H:\xampp\xampp \xampp\python\l ib\httplib.py", line 679, in
_send_output
self.send(msg)
File "H:\xampp\xampp \xampp\python\l ib\httplib.py", line 646, in send
self.connect()
File "H:\xampp\xampp \xampp\python\l ib\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
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\l ib\httplib.py", line 679, in
_send_output
self.send(msg)
File "H:\xampp\xampp \xampp\python\l ib\httplib.py", line 646, in send
self.connect()
File "H:\xampp\xampp \xampp\python\l ib\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
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\l ib\httplib.py", line 679, in
_send_output
self.send(msg)
File "H:\xampp\xampp \xampp\python\l ib\httplib.py", line 646, in send
self.connect()
File "H:\xampp\xampp \xampp\python\l ib\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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3658
by: svilen | last post by:
hello again. i'm now into using python instead of another language(s) for describing structures of data, including names, structure, type-checks, conversions, value-validations, metadata etc. And i have things to offer, and to request. And a lot of ideas, but who needs them.... here's an example (from type_struct.py):
0
2681
by: christian_stengel | last post by:
Hi *, I have just started to learn python and I am having a problem with an python client connecting to a perl server using ssl (I tried this with pyOpenSSL and with the build in SSL Module). I don't want to check a cerificate, so i simply tried a from OpenSSL import SSL
0
2930
by: Robert | last post by:
did you solve this problem? It seems to be still present here with py2.3.5. Robert -- From: Manish Jethani <manish.j@gmx.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en
0
1047
by: Carl Waldbieser | last post by:
I am trying to understand how the SSL object in the socket module is supposed to be used. From looking at the documentation, I can work out that you need to pass a socket into the ssl() function, and you get back an SSL object that has write() and read() methods similar to a file object. However, what I don't get is the context you are supposed to use this object in. I thought that SSL was like a socket, but the transmission would be...
4
8461
by: livin | last post by:
my log... INFO urllib.urlopen('http://192.168.1.11/hact/kitchen.asp', urllib.urlencode({'Action': 'hs.ExecX10ByName+Kitchen+Lights%2C+On %2C+100&x=4&y=6'})) INFO INFO File "Q:\python\python23.zlib\urllib.py", line 78, in urlopen INFO File "Q:\python\python23.zlib\urllib.py", line 159, in open INFO File "Q:\python\python23.zlib\urllib.py", line 957, in splittype INFO AttributeError
1
7275
by: Niurka Perez | last post by:
Hi, I have Red Hat Linux 3.2.3-54 and Python 2.4.3 (the original version downloaded from python.org) and I'm using httplib to make a request to an external server, this is the code I'm using: import httplib https = httplib.HTTPSConnection('216.220.59.211', 7989)
2
8226
by: Eric Renken | last post by:
I have a Windows .NET 2.0 application that has been working fine for last year, and now all of a sudden on one customers computer I am getting this error, "Binary format of the specified custom attribute was invalid." Here is a stack trace of the error: at System.Reflection.CustomAttribute._CreateCaObject(Void* pModule, Void* pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) at...
4
23439
by: black_13 | last post by:
what does this error mean? i am trying to use mark hammonds win32 package. Traceback (most recent call last): File "aui2.py", line 11, in <module> import win32com.client File "C:\Python25\lib\site-packages\win32com\client\__init__.py", line 12, in <module> import dynamic, gencache, pythoncom File "C:\Python25\Lib\site-packages\win32com\client\dynamic.py",
4
6118
by: Nikhil | last post by:
I have recently written a small module. When I import the module, I always get the error only when I do -- Traceback (most recent call last): File "<stdin>", line 1, in <module>
0
8623
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8977
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8839
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7656
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4339
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4577
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2997
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2269
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1971
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.