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

Discussion in 'Python' started by johnny, Dec 10, 2006.

  1. johnny

    johnny Guest

    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
     
    johnny, Dec 10, 2006
    #1
    1. Advertising

  2. johnny

    John Machin Guest

    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
     
    John Machin, Dec 10, 2006
    #2
    1. Advertising

  3. johnny

    John Machin Guest

    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.
     
    John Machin, Dec 10, 2006
    #3
  4. 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>
     
    Fredrik Lundh, Dec 10, 2006
    #4
  5. johnny

    johnny Guest

    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>
     
    johnny, Dec 10, 2006
    #5
  6. johnny

    johnny Guest

    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>
     
    johnny, Dec 10, 2006
    #6
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?ISO-8859-1?Q?Thomas_N=FCcker?=

    sys.argv[0] - 'module' object has no attribute 'argv'

    =?ISO-8859-1?Q?Thomas_N=FCcker?=, Jun 30, 2003, in forum: Python
    Replies:
    0
    Views:
    944
    =?ISO-8859-1?Q?Thomas_N=FCcker?=
    Jun 30, 2003
  2. Niurka Perez

    'module' object has no attribute 'ssl'

    Niurka Perez, Jun 21, 2006, in forum: Python
    Replies:
    1
    Views:
    492
    Daniel Dittmar
    Jun 21, 2006
  3. KLEIN Stéphane
    Replies:
    1
    Views:
    405
    Stefan Behnel
    Aug 25, 2008
  4. Skip Montanaro
    Replies:
    0
    Views:
    529
    Skip Montanaro
    Sep 2, 2009
  5. Replies:
    4
    Views:
    134
Loading...

Share This Page