[Tutor] Selecting a browser

Kent Johnson kent37 at tds.net
Tue Dec 4 14:10:05 CET 2007


Ricardo Aráoz wrote:
> Thanks Kent, that was certainly the problem. So I went through it just
> to hit another wall, when issuing the open method :
> 
>>>> ff.open('http://www.google.com')
> Traceback (most recent call last):
>   File "<input>", line 1, in <module>
>   File "E:\Python25\lib\webbrowser.py", line 168, in open
>     p = subprocess.Popen(cmdline, close_fds=True)
>   File "E:\Python25\lib\subprocess.py", line 551, in __init__
>     raise ValueError("close_fds is not supported on Windows "
> ValueError: close_fds is not supported on Windows platforms
> 
> No easy way, I'll have to check the module's code. Or go Marty's way
> (that's popen).

You must be using Python 2.5. This was fixed in 2.5.1
http://www.python.org/download/releases/2.5.1/NEWS.txt (search for 
webbrowser)

Kent


More information about the Tutor mailing list