[ python-Bugs-1483997 ] pydoc doesn't create html-file

SourceForge.net noreply at sourceforge.net
Wed May 10 18:16:46 CEST 2006


Bugs item #1483997, was opened at 2006-05-08 17:59
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1483997&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: Not a Bug
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Gregor Lingl (glingl)
Assigned to: Nobody/Anonymous (nobody)
Summary: pydoc doesn't create html-file

Initial Comment:
The call

c:\Python25\Lib\pydoc.py -w testdoc

results in an error-message:

Traceback ...
  File ...
  ...
 
  ...
  File "c:\Python25\Lib\inspect.py",line 564,in walktree
   classes.sort(key=attrgetter('__module__','__name__'))
TypeError: attrgetter expected 1 arguments, got 2

The same call with Python 2.4 works correctly

regards,

Gregor Lingl


----------------------------------------------------------------------

>Comment By: Georg Brandl (gbrandl)
Date: 2006-05-10 16:16

Message:
Logged In: YES 
user_id=849994

The problem is that when you call pydoc.py directly, it will
use whatever interpreter is registered in your Windows
environment to run .py files, which in your case is the 2.4
interpreter.

The 2.5 version of pydoc uses some new features which
require a 2.5 interpreter to run, so until Python 2.5 is
installed on your box use something like

c:\python25\bin\python c:\python25\lib\pydoc.py ....

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1483997&group_id=5470


More information about the Python-bugs-list mailing list