[ python-Bugs-1506951 ] pydoc fails on package in ZIP archive
SourceForge.net
noreply at sourceforge.net
Tue Aug 1 10:40:53 CEST 2006
Bugs item #1506951, was opened at 2006-06-15 22:07
Message generated for change (Comment added) made by gbrandl
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1506951&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Christopher Dunn (christopherdunn)
Assigned to: Nobody/Anonymous (nobody)
Summary: pydoc fails on package in ZIP archive
Initial Comment:
I have Foo/__init__.py and Foo/bar.py in a ZIP archive,
test.zip, which is in the PYTHONPATH.
pydoc works on Foo.bar, but fails on package Foo.
% pydoc Foo
Traceback (most recent call last):
File "~/bin/pydoc", line 5, in ?
pydoc.cli()
File "../python-2.4/lib/python2.4/pydoc.py", line
2228, in cli
help.help(arg)
File "../python-2.4/lib/python2.4/pydoc.py", line
1682, in help
elif request: doc(request, 'Help on %s:')
File "../python-2.4/lib/python2.4/pydoc.py", line
1468, in doc
pager(title % desc + '\n\n' + text.document(object,
name))
File "../python-2.4/lib/python2.4/pydoc.py", line
296, in document
if inspect.ismodule(object): return
self.docmodule(*args)
File "../python-2.4/lib/python2.4/pydoc.py", line
1053, in docmodule
for file in os.listdir(object.__path__[0]):
OSError: [Errno 20] Not a directory: 'test.zip/Foo'
----------------------------------------------------------------------
>Comment By: Georg Brandl (gbrandl)
Date: 2006-08-01 08:40
Message:
Logged In: YES
user_id=849994
Agreed. Closing as Fixed.
----------------------------------------------------------------------
Comment By: iga Seilnacht (zseil)
Date: 2006-07-31 23:49
Message:
Logged In: YES
user_id=1326842
This is fixed in the 2.5 release. The details of the
fix are quite involved, so it is unlikely that it will
be backported.
See revision 45510 for details:
http://mail.python.org/pipermail/python-checkins/2006-April/051452.html
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1506951&group_id=5470
More information about the Python-bugs-list
mailing list