472,958 Members | 2,322 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

Python 2.4 - Help does not work in Windows

I've just upgraded from Python 2.3.3 to Python 2.4.2, and, although the
new version of Python seems to be running correctly, I can't seem
access the help from the interpreter.

On Python 2.3.3
---------------
Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
import time
time.ctime() 'Wed Jan 04 12:59:13 2006' help(time) Help on built-in module time:

NAME
time - This module provides various functions to manipulate time
values.

.... etc ...

On Python 2.4.2
---------------
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information. import time
time.ctime() 'Wed Jan 04 13:01:22 2006' help(time)

cannot import name warn

I get this warning for all modules which I've tried. I guess this is an
installation problem, and have tried uninstalling and re-installing but
that gives me the same results.

Could anyone give me some pointers on where I might look to debug this
problem? In case it's any help, I'm running Windows XP SP2, and have
installed both Python2.3 and Python 2.4 on the same system. Could this
be causing some conflict?

Any help would be greatly appreciated!

Jan 4 '06 #1
3 2381

st***********@hotmail.com wrote:
<snip>
Could anyone give me some pointers on where I might look to debug this
problem? In case it's any help, I'm running Windows XP SP2, and have
installed both Python2.3 and Python 2.4 on the same system. Could this
be causing some conflict?

It must be. I just tried it with a single install of 2.4.2 on XP and
got the help info with "help(time)".
import time
time.ctime() 'Wed Jan 04 08:17:29 2006' help(time)

Help on built-in module time:

NAME
time - This module provides various functions to manipulate time
values.
....

Robert

Jan 4 '06 #2
st***********@hotmail.com wrote:
I've just upgraded from Python 2.3.3 to Python 2.4.2, and, although the
Any help would be greatly appreciated!

A data point: It is not the interaction of the two Pythons.

C:\...\Py>\python23\python
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
import time; help(time) Help on built-in module time:
....
C:\...\Py>\python24\python
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information. import time; help(time) Help on built-in module time:
....

This information might help:

C:\...\Py>\python24\python
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information. import sys, time; names = set(sys.modules)
help(time) .... ' '.join(sorted(set(sys.modules) - names))

'_random binascii collections dis errno imp inspect opcode
pydoc random tempfile thread token tokenize'

That is, those are the modules loaded in the course of doing the "help".
I'd try loading them one-by one.
Alternatively, start the interpreter as:
python -v
And watch the imports as you do (1) "import time", and (2) "help(time)".
You may see the import causing the problem.

--Scott David Daniels
sc***********@acm.org
Jan 4 '06 #3
st***********@hotmail.com wrote in
news:11*********************@g44g2000cwa.googlegro ups.com:
I've just upgraded from Python 2.3.3 to Python 2.4.2, and,
although the new version of Python seems to be running
correctly, I can't seem access the help from the interpreter.

On Python 2.3.3
---------------
Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more
information.
import time
time.ctime() 'Wed Jan 04 12:59:13 2006' help(time) Help on built-in module time:

NAME
time - This module provides various functions to manipulate
time
values.

... etc ...

On Python 2.4.2
---------------
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more
information. import time
time.ctime() 'Wed Jan 04 13:01:22 2006' help(time)

cannot import name warn

I get this warning for all modules which I've tried. I guess
this is an installation problem, and have tried uninstalling and
re-installing but that gives me the same results.

Could anyone give me some pointers on where I might look to
debug this problem? In case it's any help, I'm running Windows
XP SP2, and have installed both Python2.3 and Python 2.4 on the
same system. Could this be causing some conflict?

Any help would be greatly appreciated!


I've been running 2.4.x for some time on a Win2K machine, with no
problems. Just recently I got an XP system, and after installation
of numerous things, I had help disappear(!). That is, I am *fairly*
certain that at one point it worked in Python and later did not, on
that same system. It is possible that it never did on XP, though.

Incidentally, this manifested itself both in Python and in the
system command line (cmd.exe), for some reason. I expect there was
a clash with some other software I installed.

At any rate, I re-installed Python over the top of the existing
installation, and *both* Python help and the command-line help
reappeared. I don't know what to make of that.

The XP system does have a Python 2.2.3 version that came pre-
installed, though I've not used it directly. (checking) It's help
seems to work now, but then so does my 2.4.2 help, now.

--
rzed
Jan 5 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: BOOGIEMAN | last post by:
Well that's it, how do I make Windows Application with Python ??? Is there simple way that works 100% ? How can I rework visual design done in VS 2003 to use it for my python program ?
35
by: Michael Kearns | last post by:
I've been using python to write a simple 'launcher' for one of our Java applications for quite a while now. I recently updated it to use python 2.4, and all seemed well. Today, one of my...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 378 open ( +3) / 3298 closed (+34) / 3676 total (+37) Bugs : 886 open (-24) / 5926 closed (+75) / 6812 total (+51) RFE : 224 open...
7
by: Anton Mellit | last post by:
Hi, I am working on a Pari-Python module (see about GP/PARI at http://pari.math.u-bordeaux.fr/). Similar project was started by Stefane Fermigier 12 years ago (you can find a post about it on...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.