import urllib2 fails with Python 2.6.1 on Vista

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sun Jan 18 02:44:47 EST 2009


En Sat, 17 Jan 2009 17:13:00 -0200, Scott MacDonald
<scott.p.macdonald at gmail.com> escribió:

> 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>
                       ^^^^^^^^

It seems your have a confusing setup. Why is Python 2.6 using
C:\dev\opt\Python25?

-- 
Gabriel Genellina




More information about the Python-list mailing list