473,796 Members | 2,645 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 9536

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
3673
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
2687
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
2935
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
1051
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
8470
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
7283
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
8243
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
23447
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
6120
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
9533
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10239
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
10190
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
10019
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7555
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6796
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
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...
2
3736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2928
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.