import urllib2 fails with Python 2.6.1 on Vista

Scott MacDonald scott.p.macdonald at gmail.com
Sat Jan 17 20:13:00 CET 2009


I googled a bit this morning search for an answer to this problem but have
come up empty so far.  Can anyone help?

Python 2.6.1 (r261:67517, Dec  4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\dev\opt\Python25\Lib\urllib2.py", line 92, in <module>
    import httplib
  File "C:\dev\opt\Python25\Lib\httplib.py", line 71, in <module>
    import socket
  File "C:\dev\opt\Python25\Lib\socket.py", line 70, in <module>
    _realssl = ssl
NameError: name 'ssl' is not defined
>>> NameError: name 'ssl' is not defined

By way of comparison here is Python 2.5.2 on the same machine:

Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2
>>>


Whats going on??

Thanks,

Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090117/0c0518af/attachment.html>


More information about the Python-list mailing list