[Distutils] Setuptools pydoc problem

Phillip J. Eby pje at telecommunity.com
Fri Oct 26 04:25:23 CEST 2007


At 11:13 AM 10/25/2007 -0500, Ian Bicking wrote:
>I'm getting this error with setuptools trunk and pydoc/help():
>
>>>>>import unittest
>>>>>help(unittest.main)
>>Traceback (most recent call last):
>>   File "<stdin>", line 1, in ?
>>   File 
>> "/usr/lib/python2.4/site-packages/setuptools-0.6c7-2.4.egg/site.py" 
>> , line 339, in __call__
>>
>>   File 
>> "/home/ianb/env/webdev/lib/python2.4/setuptools-0.7a1dev_r58373-py2.4.egg/pydoc.py", 
>> line 1645, in __call__
>>     self.help(request)
>>   File 
>> "/home/ianb/env/webdev/lib/python2.4/setuptools-0.7a1dev_r58373-py2.4.egg/pydoc.py", 
>> line 1689, in help
>>     else: doc(request, 'Help on %s:')
>>   File 
>> "/home/ianb/env/webdev/lib/python2.4/setuptools-0.7a1dev_r58373-py2.4.egg/pydoc.py", 
>> line 1468, in doc
>>     desc = describe(object)
>>   File 
>> "/home/ianb/env/webdev/lib/python2.4/setuptools-0.7a1dev_r58373-py2.4.egg/pydoc.py", 
>> line 1413, in describe
>>     if inspect.isgetsetdescriptor(thing):
>>AttributeError: 'module' object has no attribute 'isgetsetdescriptor'
>
>I'm guessing its something in Python 2.5's inspect but not 2.4.

Fixed.  (Please don't send setuptools bug reports to me in private 
email; the distutils-sig is where they go, to minimize duplicates, 
have a public record, and at least entertain the possibility that 
someone else might know of a fix, workaround, or be able to 
contribute a patch.)



More information about the Distutils-SIG mailing list