webbrowser failing

Fredrik Lundh fredrik at pythonware.com
Wed Sep 21 09:23:25 CEST 2005

(trying again)

Thomas Thomas wrote:

> import webbrowser
> url='http://www.cnn.com'
> webbrowser.open(url)
> giving the error

> WindowsError: [Errno 2] The system cannot find the file specified: 'http://www.cnn.com'

you have a Windows install that don't understand HTTP paths, most likely
because you (or someone else) has tinkered with the registry.

Possible solutions:

1. fire up your browser and use the browser's "make this browser the default
    browser" feature, if available

2. use the "Set Program Access and Default" menu (on the start menu) to
   select what browser to use


3. use Jem Berkes' SetBrowser tool:


   (make sure you read the warnings on that page before you proceed),


More information about the Python-list mailing list