import urllib2 fails with Python 2.6.1 on Vista

Scott MacDonald scott.p.macdonald at gmail.com
Sun Jan 18 19:01:47 CET 2009


Yes, I see your point.  Not sure how that would happen.  It is possible to
have multiple versions of python on the same machine I assume?

During the installation I have specified the directory to install python in,
otherwise I have not changed anything.  Could it be an environment variable
or something like that?

Thanks,
Scott



On Sun, Jan 18, 2009 at 12:44 AM, Gabriel Genellina
<gagsl-py2 at yahoo.com.ar>wrote:

> 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
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090118/1772b85b/attachment.html>


More information about the Python-list mailing list