A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/329684.html below:

webbrowser failing

webbrowser failingThomas Thomas thomas at eforms.co.nz
Wed Sep 21 02:49:29 EDT 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4