This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

python 2.3 pydoc : sys.modules.get error


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]