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.

Title: ic module "path too long" error
Type: Stage:
Components: macOS Versions: Python 2.2
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jackjansen Nosy List: jackjansen, reowen
Priority: normal Keywords:

Created on 2002-11-26 17:49 by reowen, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (2)
msg13464 - (view) Author: Russell Owen (reowen) Date: 2002-11-26 17:49
The IC module returns a path too long error for file:/localhost type URLs. Here is an example:

# this works:

# this fails, though URLs of this form are accepted on unix:
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/Library/Frameworks/Python.framework/Versions/2.2/lib/python2.2/", line 43, in open
    get().open(url, new, autoraise)
  File "/Library/Frameworks/Python.framework/Versions/2.2/lib/python2.2/", line 275, in open
  File "/Library/Frameworks/Python.framework/Versions/2.2/Mac/Lib/", line 231, in launchurl
    return _dft_ic.launchurl(url, hint)
  File "/Library/Frameworks/Python.framework/Versions/2.2/Mac/Lib/", line 194, in launchurl
    self.ic.ICLaunchURL(hint, url, 0, len(url))
MacOS.Error: (-2110, 'pathTooLongErr')
msg13465 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-02-25 13:44
Logged In: YES 

I think this is actually an Apple bug, but I've implemented a workaround in rev. 1.4: URLs of the second form are converted to the first form before being passed to ICLaunchURL.
Date User Action Args
2022-04-10 16:05:56adminsetgithub: 37539
2002-11-26 17:49:34reowencreate