problem with pydoc under python 2.6.1

Yinon Ehrlich yinon.me at gmail.com
Thu Mar 5 07:00:52 EST 2009


On Mar 5, 1:48 pm, yino... at gmail.com wrote:
> On Mar 5, 1:29 pm, steve.ferg.bitbuc... at gmail.com wrote:
>
>
>
> > 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
>
> the same for Python trunk (develompment version), on Ubuntu 8.04
> I'm filing a bug report...

sorry, it's OK.
My fault was using installed python to run development version's
library.
not sure about python26 for Windows...
Yinon



More information about the Python-list mailing list