webbrowser failing

Thomas Thomas thomas at eforms.co.nz
Wed Sep 21 08:49:29 CEST 2005


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
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050921/68ad9029/attachment.html>


More information about the Python-list mailing list