This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author reowen
Recipients
Date 2002-11-26.17:49:34
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The IC module returns a path too long error for file:/localhost type URLs. Here is an example:

# this works:
>>> webbrowser.open("file:///Users/rowen/PythonRO/TUI/TUIHelp/Telescope.html#CoordSys")

# this fails, though URLs of this form are accepted on unix:
>>> webbrowser.open("file:/Users/rowen/PythonRO/TUI/TUIHelp/Telescope.html#CoordSys")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/Library/Frameworks/Python.framework/Versions/2.2/lib/python2.2/webbrowser.py", line 43, in open
    get().open(url, new, autoraise)
  File "/Library/Frameworks/Python.framework/Versions/2.2/lib/python2.2/webbrowser.py", line 275, in open
    ic.launchurl(url)
  File "/Library/Frameworks/Python.framework/Versions/2.2/Mac/Lib/ic.py", line 231, in launchurl
    return _dft_ic.launchurl(url, hint)
  File "/Library/Frameworks/Python.framework/Versions/2.2/Mac/Lib/ic.py", line 194, in launchurl
    self.ic.ICLaunchURL(hint, url, 0, len(url))
MacOS.Error: (-2110, 'pathTooLongErr')
History
Date User Action Args
2007-08-23 14:09:10adminlinkissue644243 messages
2007-08-23 14:09:10admincreate