[Pythonmac-SIG] webbrowser.py fails on MacOS 9?

Martina Oefelein Martina@Oefelein.de
Thu, 25 Jul 2002 22:05:34 +0200


Hi,

I'm trying to open a file using the webbrowser  module:

import webbrowser
url ="file:///Falbala/Desktop%20Folder/Betriebsausflug/Site/index.html"
webbrowser.open(url)

However this results in the following traceback:
Traceback (most recent call last):
  File "Falbala:Dokumente:test.py", line 3, in ?
    webbrowser.open(url)
  File "Falbala:Applications (Mac OS 9):Python 2.2.1:Lib:webbrowser.py", line 43, in open
    get().open(url, new, autoraise)
  File "Falbala:Applications (Mac OS 9):Python 2.2.1:Lib:webbrowser.py", line 275, in open
    ic.launchurl(url)
  File "Falbala:Applications (Mac OS 9):Python 2.2.1:Mac:Lib:ic.py", line 231, in launchurl
    return _dft_ic.launchurl(url, hint)
  File "Falbala:Applications (Mac OS 9):Python 2.2.1:Mac:Lib:ic.py", line 194, in launchurl
    self.ic.ICLaunchURL(hint, url, 0, len(url))
MacOS.Error: (-5012, 'Unknown UserName/UserID or missing comment/APPL entry')

What am I doing wrong?

ciao
Martina