This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: pydoc doesn't create html-file
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, glingl
Priority: normal Keywords:

Created on 2006-05-08 17:59 by glingl, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg28451 - (view) Author: Gregor Lingl (glingl) (Python committer) Date: 2006-05-08 17:59
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
msg28452 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-05-10 16:16
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 ....
History
Date User Action Args
2022-04-11 14:56:17adminsetgithub: 43333
2006-05-08 17:59:13glinglcreate