[Python-bugs-list] [ python-Bugs-644243 ] ic module "path too long" error

SourceForge.net noreply@sourceforge.net
Tue, 25 Feb 2003 05:44:15 -0800


Bugs item #644243, was opened at 2002-11-26 18:49
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=644243&group_id=5470

Category: Macintosh
Group: Python 2.2.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Russell Owen (reowen)
Assigned to: Jack Jansen (jackjansen)
>Summary: ic module "path too long" error

Initial Comment:
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')


----------------------------------------------------------------------

>Comment By: Jack Jansen (jackjansen)
Date: 2003-02-25 14:44

Message:
Logged In: YES 
user_id=45365

I think this is actually an Apple bug, but I've implemented a workaround in ic.py rev. 1.4: URLs of the second form are converted to the first form before being passed to ICLaunchURL.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=644243&group_id=5470