467,150 Members | 1,124 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,150 developers. It's quick & easy.

Problem with help() in python/ipython interpreters

I'm running python 2.5.2 on WinXP. I've always used a GUI for
interactive development, but I wanted to try out ipython which better
supports matplotlib in this mode. Unfortunately, whenever I try to
use help() I get the following error:

(Sys) The system cannot find the file specified.
"C:\documents"

It turns out that the regular (python.exe) interpreter has the same
problem. I have the HTML docs installed, my PYTHONDOCS environment
variable points to the HTML directory, and I actually uninstalled and
reinstalled every library I use from scratch to make sure it wasn't
some random config issue.

The error message leads me to believe that the help() function is
trying to access something in my windows user directory structure (C:
\Documents and Settings\<username>\...) and is having problems with
the embedded space. The really strange thing is that my python
directory is rooted at c:\python25 including my html docs. I know that
ipython does by default create a profile directory in %HOME%\_ipython
but that doesn't seem to be a problem and wouldn't impact the default
python.exe interpreter.

Any ideas?
Jun 27 '08 #1
  • viewed: 927
Share:
1 Reply
En Fri, 09 May 2008 20:45:09 -0300, Casey <Ca******@gmail.comescribió:
I'm running python 2.5.2 on WinXP. I've always used a GUI for
interactive development, but I wanted to try out ipython which better
supports matplotlib in this mode. Unfortunately, whenever I try to
use help() I get the following error:

(Sys) The system cannot find the file specified.
"C:\documents"

It turns out that the regular (python.exe) interpreter has the same
problem. I have the HTML docs installed, my PYTHONDOCS environment
variable points to the HTML directory, and I actually uninstalled and
reinstalled every library I use from scratch to make sure it wasn't
some random config issue.
I don't know exactly how does help() try to find the documentation, but I have these differences:

- I don't have a PYTHONDOCS variable (nor PYTHONPATH nor anything similar)
- The Windows registry contains this entry:
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.5\ Help\Main Python Documentation]
@="C:\\Apps\\Python25\\Doc\\Python25.chm"
- I *think* that I installed the HTML docs on that same directory a long time ago...

Hope this info could help you.

--
Gabriel Genellina

Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Uwe Mayer | last post: by
reply views Thread by David S. | last post: by
reply views Thread by Marko Bozikovic | last post: by
27 posts views Thread by Robert Hicks | last post: by
5 posts views Thread by Adam Atlas | last post: by
7 posts views Thread by braver | last post: by
7 posts views Thread by Michele Simionato | last post: by
reply views Thread by Python Nutter | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.