Subject: Re: python 2.3 pydoc : sys.modules.get error
From: Jason Tishler <[email-masked]>
To: Cygwin <[email-masked]>
Cc: [email-masked]
Date: Fri, 13 Aug 2004 12:34:32 -0400

Bertrand,

Wrong list, I'm redirecting to the correct one...

On Fri, Aug 13, 2004 at 04:16:07PM +0200, bertrand marquis wrote:
> 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 ?

No, I have tried a few times and cannot reproduce the error (yet).  What
is the exact command line that triggers the above stack trace?

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/