problem with pydoc under python 2.6.1

steve.ferg.bitbucket at gmail.com steve.ferg.bitbucket at gmail.com
Thu Mar 5 06:29:31 EST 2009


Has anybody encountered problems running pydoc with version 2.6.1?
I'm getting an error message that pydoc cannot import namedtuple
(details below).
(I'm running under 64-bit Windows Vista, although that probably is not
important.)

Here's my batch file, pydoc_test.bat:
 =========================================================
 @echo on
 set pyver=python25
 python c:\%pyver%\Lib\pydoc.py -w easygui

 set pyver=python26
 python c:\%pyver%\Lib\pydoc.py -w easygui
 =========================================================

Here's what I get:
 =========================================================
 c:\pydev\easygui\v086>pydoc_test.bat

 c:\pydev\easygui\v086>set pyver=python25

 c:\pydev\easygui\v086>python c:\python25\Lib\pydoc.py -w easygui
 wrote easygui.html

 c:\pydev\easygui\v086>set pyver=python26

 c:\pydev\easygui\v086>python c:\python26\Lib\pydoc.py -w easygui
 Traceback (most recent call last):
   File "c:\python26\Lib\pydoc.py", line 55, in <module>
     import sys, imp, os, re, types, inspect, __builtin__, pkgutil
   File "c:\python26\Lib\inspect.py", line 42, in <module>
     from collections import namedtuple
 ImportError: cannot import name namedtuple
 ========================================================

-- Steve Ferg



More information about the Python-list mailing list