[issue7749] pydoc error - "No module named tempfile"
Gabriel Genellina
report at bugs.python.org
Fri Jan 22 04:38:59 CET 2010
Gabriel Genellina <gagsl-py2 at yahoo.com.ar> added the comment:
On Windows, trying with different Python versions:
D:\temp>python24 -m pydoc sys
[works as expected]
D:\temp>python25 -m pydoc sys
No module named tempfile
D:\temp>python26 -m pydoc sys
No module named tempfile
D:\temp>python27 -m pydoc sys
[works as expected]
If tempfile.py is in the current directory, it works:
D:\temp>cd \apps\python26\lib
D:\apps\Python26\Lib>dir /b tempfile.py
tempfile.py
D:\apps\Python26\Lib>python26 -m pydoc sys
Help on built-in module sys:
...
Directly executing pydoc.py works fine too:
D:\temp>d:\apps\Python26\lib\pydoc.py sys
Help on built-in module sys:
...
so this may be a runpy issue, not directly related to pydoc.
----------
nosy: +gagenellina
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7749>
_______________________________________
More information about the Python-bugs-list
mailing list