webbrowser failing

Fredrik Lundh fredrik at pythonware.com
Wed Sep 21 03:23:25 EDT 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

or

3. use Jem Berkes' SetBrowser tool:

    http://www.pc-tools.net/win32/setbrowser/

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

</F>






More information about the Python-list mailing list