webbrowser failing

DogWalker forestiero at qwest.net
Mon Sep 26 23:44:12 EDT 2005


"Thomas Thomas" <thomas at eforms.co.nz> said:

>Hi All,
>
>import webbrowser
>url='http://www.cnn.com'
>webbrowser.open(url)
>
>giving the error
>
>Python 2.3.5 (#62, Feb  8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on win32
>Type "help", "copyright", "credits" or "license" for more information.
>>>> ## working on region in file c:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/python-1720WXU.py...
>Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
>  File "c:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/python-1720WXU.py", line 3, in ?
>    webbrowser.open(url)
>  File "C:\Python23\lib\webbrowser.py", line 43, in open
>    get().open(url, new, autoraise)
>  File "C:\Python23\lib\webbrowser.py", line 250, in open
>    os.startfile(url)
>WindowsError: [Errno 2] The system cannot find the file specified: 'http://www.cnn.com'
>>>> 
>
>any help
>Thoma

Were you connected when you tried?


More information about the Python-list mailing list