Cannot import namedtuple while using pydoc
<p>OS - Windows XP
Python - 2.6.4</p>

<p>While trying to generate docs using pydoc, I get the error -</p>

<pre><code>Traceback (most recent call last):
  File "C:\Python26\Lib\pydoc.py", line 55, in &lt;module&gt;
    import sys, imp, os, re, types, inspect, __builtin__, pkgutil
  File "C:\Python26\Lib\inspect.py", line 42, in &lt;module&gt;
    from collections import namedtuple
ImportError: cannot import name namedtuple
</code></pre>

<p>I checked both the files, pydoc.py and inspect.py and this is the erring statement in inspect.py</p>

<pre><code>from collections import namedtuple
</code></pre>

<p>But this works on IDLE - 2.6.4.
So is this a bug in pydoc/inspect.py and if so, how can I get a fixed version ?
If not, then how can I avoid this issue?</p>
