473,770 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:\documen ts"

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\<usern ame>\...) 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
1 1102
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:\documen ts"

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_MACH INE\SOFTWARE\Py thon\PythonCore \2.5\Help\Main Python Documentation]
@="C:\\Apps\\Py thon25\\Doc\\Py thon25.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1704
by: Uwe Mayer | last post by:
Hi, in an application I want to provide direct access to the python interpreter of the running program. I use rawinput() and exec() to read an input string and a self-made function to check wether the inputed block is closed and then execute it. When running python interactively the result of the previous statement is assigned to the variable "_" and commands like dir() just output their results to stdout.
15
7389
by: Ashot | last post by:
This is sort of both Python and Vim related (which is why I've posted to both newsgroups). Python related: ---------------------- I have been frustrated for quite some time with a lack of a history command in IDLE (in fact with IDLE in general). Often I'll develop new code at the command line, testing each line as I go. Currently I have to copy and paste, removing outputs and the ">>>" at each line. Is it perhaps possible to make...
0
1058
by: David S. | last post by:
If you are using ipython on Windows then you will have made sure you have Gary Bishop's readline library as instructed in the ipython install directions found at: http://ipython.scipy.org/ Even if you use the standard commandline tool, installing readline makes the basic command line a lot easier to use. (For some reason, I much prefer it to IDLE or any of the other GUI-wrapped
0
1127
by: Marko Bozikovic | last post by:
Hi all, I have a small problem with IPython shell on Windows. If I run 'python C:\python\scripts\ipython -p pysh' from cmd.exe or directly from Run dialog, I don't get any output from 'shell' commands like ddir. If I run ipython shell from 4NT, ddir and similar commands work fine. Python version is 2.4.3 and IPython version is 0.6.15.
27
2478
by: Robert Hicks | last post by:
I want to upgrade to 2.5 but I don't see any unistall instructions anywhere. Robert
5
1644
by: Adam Atlas | last post by:
Does anyone know if it would be possible to create a CPython extension -- or use the ctypes module -- to access Python's own embedding API (http://docs.python.org/api/initialization.html &c.)? Could a Python program itself create a sub-interpreter, and work with it with all the privileges and capabilities that an actual C program would have? I realize that this may be a bit too... mystical? ... for a lot of people's tastes, but I'm just...
7
2511
by: braver | last post by:
Greetings -- as a long time user of both Python and Ruby interpreters, I got used to the latter's syntax-coloring gem, wirble, which colorizes Ruby syntax on the fly. Is there anything similar for Python?
7
2153
by: Michele Simionato | last post by:
I have noticed that the python-mode for Emacs that comes with the latest Ubuntu is missing the class browser. Moreover if works differently from the python-mode I was used to (for instance CTRL-c-c works as CTRL-c-! whereas CTRL-c-! is missing, etc). How can I go back to the old python-mode or at least how do I get back the class browser? Michele Simionato
0
19312
by: Python Nutter | last post by:
Mini install guide for python on the iPhone: Cydia =Install SSH helps make initial configuration easier until you get used to MobileTerminal Cydia =Install MobileTerminal (closest to a bash shell you get on your iPhone currently) Cydia =Install Finder (graphical alternative to using SSH/MobileTerminal for setting permissions, navigating file system, moving/copying files, etc.) Cydia =Install Python (currently installs CPython 2.5.1)
0
9619
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10260
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.