This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
python 2.3 pydoc : sys.modules.get error
- From: bertrand marquis <bertrand dot marquis at sysgo dot com>
- To: cygwin-apps at cygwin dot com
- Date: 13 Aug 2004 16:16:07 +0200
- Subject: python 2.3 pydoc : sys.modules.get error
- Organization: SYSGO AG
hello,
i'm using pydoc to generate informations out of python source.
But sometimes i've got this error:
Traceback (most recent call last):
File "/usr/bin/pydoc", line 4, in ?
pydoc.cli()
File "/usr/lib/python2.3/pydoc.py", line 2119, in cli
help.help(arg)
File "/usr/lib/python2.3/pydoc.py", line 1581, in help
elif request: doc(request, 'Help on %s:')
File "/usr/lib/python2.3/pydoc.py", line 1375, in doc
pager(title % desc + '\n\n' + text.document(object, name))
File "/usr/lib/python2.3/pydoc.py", line 283, in document
if inspect.ismodule(object): return self.docmodule(*args)
File "/usr/lib/python2.3/pydoc.py", line 958, in docmodule
if (inspect.getmodule(value) or object) is object:
File "/usr/lib/python2.3/inspect.py", line 373, in getmodule
return sys.modules.get(object.__module__)
SystemError: error return without exception set
this is happening sometimes when trying to have doc out of compiled
modules (*.dll)
any idea ?
bertrand