webbrowser failing

Fredrik Lundh fredrik at pythonware.com
Wed Sep 21 03:21:11 EDT 2005


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'

So 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. run the  Set Program Access and Default


</F>






More information about the Python-list mailing list