Das Öffnen des Webbrowsers funktioniert bei mir manchmal nicht. Ich habe mit dem debugger direkt vor dem Aufruf von webbrowser.open() einen Haltepunkt gesetzt. Wenn ich im debugger webbrowser.open() aufrufe bleibt der Aufruf hängen. Wenn ich einen KeyboardInterrupt sende, kommt manchmal diese Fehlermeldung:
Code: Alles auswählen
Traceback (most recent call last):
File "/usr/lib/python2.7/webbrowser.py", line 66, in open_new
return open(url, 1)
File "/usr/lib/python2.7/webbrowser.py", line 61, in open
if browser.open(url, new, autoraise):
File "/usr/lib/python2.7/webbrowser.py", line 198, in open
p = subprocess.Popen(cmdline, close_fds=True, preexec_fn=setsid)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1234, in _execute_child
data = _eintr_retry_call(os.read, errpipe_read, 1048576)
File "/usr/lib/python2.7/subprocess.py", line 478, in _eintr_retry_call
return func(*args)
Danke,
Boa