My last version of Python was 2.4, running smoothly on XP with path c:
\Python24 - no need even to include this path in PATH; everything
worked as it's supposed to at the command line.
Just installed Python 2.5, after uninstalling 2.4 (and also 2.3 which
had lingered). Now if I open a shell in Windows Python is not
available! Here are the symptoms:
- If I open a shell using "Command line here" with XP Powertools, then
enter "python" at the prompt, nothing happens. I don't get a message
that the command is not recognized, but neither do I get the Python
prompt. Instead the Windows prompt comes back. No messages, no Python,
no nothing.
- If I go so far as to specify the full path to the Python executable,
I do get the Python prompt and Python appears to work properly -
except that I can't exit with CTRL-Z.
- If I open a shell from the Start menu, e.g. Start run "command",
then try entering "python", the shell simply blows up.
What is going on here? I have uninstalled and reinstalled Python 2.5,
to no avail. I have gone so far as to specify c:\Python25 (the install
path) in my PATH variable, but this makes no difference. Right now
Python is unusable to me from the command prompt, meaning all of my
automation scripts that I run at the command line are gone too. 9 2494
On Feb 16, 5:52 am, "Endless Story" <usable.thou... @gmail.comwrote :
My last version of Python was 2.4, running smoothly on XP with path c:
\Python24 - no need even to include this path in PATH; everything
worked as it's supposed to at the command line.
Just installed Python 2.5, after uninstalling 2.4 (and also 2.3 which
had lingered). Now if I open a shell in Windows Python is not
available! Here are the symptoms:
- If I open a shell using "Command line here" with XP Powertools, then
enter "python" at the prompt, nothing happens. I don't get a message
that the command is not recognized, but neither do I get the Python
prompt. Instead the Windows prompt comes back. No messages, no Python,
no nothing.
- If I go so far as to specify the full path to the Python executable,
I do get the Python prompt and Python appears to work properly -
except that I can't exit with CTRL-Z.
- If I open a shell from the Start menu, e.g. Start run "command",
then try entering "python", the shell simply blows up.
What is going on here? I have uninstalled and reinstalled Python 2.5,
to no avail. I have gone so far as to specify c:\Python25 (the install
path) in my PATH variable, but this makes no difference. Right now
Python is unusable to me from the command prompt, meaning all of my
automation scripts that I run at the command line are gone too.
Are you talking about the Environment Variables-->System Variable--
>path?
You may want to right click on My Computer-->System Properties--
>Advanced-->Environment Variables-->System variables-->Path-->Edit.
And check to see if it's there, if not then add it.
Thanks,
Jim
On Feb 16, 9:56 am, "Jim" <jscre...@compu serve.comwrote:
On Feb 16, 5:52 am, "Endless Story" <usable.thou... @gmail.comwrote :
Are you talking about the Environment Variables-->System Variable-->path?
You may want to right click on My Computer-->System Properties-->Advanced-->
Environment Variables-->System variables-->Path-->Edit.
And check to see if it's there, if not then add it.
I've already added the new python to my path in this fashion, but to
no avail.
Besides, if it were a path problem in the usual sense, the symptom
would be a message at the command line saying that "python" is not
recognized. Since I don't get this message, it's not a typical path
problem. What it is, I don't know - that's my quandry.
Endless Story wrote:
On Feb 16, 9:56 am, "Jim" <jscre...@compu serve.comwrote:
>On Feb 16, 5:52 am, "Endless Story" <usable.thou... @gmail.comwrote : Are you talking about the Environment Variables-->System Variable-->path? You may want to right click on My Computer-->System Properties-->Advanced--> Environment Variables-->System variables-->Path-->Edit. And check to see if it's there, if not then add it.
I've already added the new python to my path in this fashion, but to
no avail.
Besides, if it were a path problem in the usual sense, the symptom
would be a message at the command line saying that "python" is not
recognized. Since I don't get this message, it's not a typical path
problem. What it is, I don't know - that's my quandry.
I've certainly never seen anything like what you've described,
and I've had Python 2.5 installed and uninstalled on several
different machines (Win2k & WinXP). I would ask if you had
*any* other Python installation -- say a cygwin one -- which
might just be getting in the way? Are you an administrator on
the machine you're on? Sometimes (a while ago and with the
ActiveState distro rather than python.org one) it has been
known to cause problems if you're not. Do the previous
installations still work?
Clutching at straws, really.
TJG
On Feb 16, 10:29 am, Tim Golden <m...@timgolden .me.ukwrote:
I would ask if you had *any* other Python installation
-- say a cygwin one -- which might just be getting in the way?
It's a cygwin problem, guddammit. I was wondering if this might be the
case - I should have mentioned in my initial post that I've got a
whole Cygwin setup, including Python.
I know the conflict is the problem because just now I opened up a
command shell in XP (not the Cywgin bash window), and instead of
typing "python" and getting nothing, I tried "which python" - which
when you think about it, shouldn't even work in a XP shell. But
somehow Cygwin is mingling some of its capabilities with the XP shell,
because "which python" actually gets an answer - "/usr/bin/python,"
which is Cygwin.
Now the question is how to fix this - I don't want to uninstall the
Cygwin version. Instead I need some way of unknotting Cygwin's
intrusion into what should be an XP-only shell, or else a way of
giving priority when in that shell (and not the bash shell, which I
also use) to the Python executable residing at C:\Python25.
Endless Story wrote:
On Feb 16, 10:29 am, Tim Golden <m...@timgolden .me.ukwrote:
>I would ask if you had *any* other Python installation -- say a cygwin one -- which might just be getting in the way?
It's a cygwin problem, guddammit. I was wondering if this might be the
case - I should have mentioned in my initial post that I've got a
whole Cygwin setup, including Python.
I know the conflict is the problem because just now I opened up a
command shell in XP (not the Cywgin bash window), and instead of
typing "python" and getting nothing, I tried "which python" - which
when you think about it, shouldn't even work in a XP shell. But
somehow Cygwin is mingling some of its capabilities with the XP shell,
because "which python" actually gets an answer - "/usr/bin/python,"
which is Cygwin.
Now the question is how to fix this - I don't want to uninstall the
Cygwin version. Instead I need some way of unknotting Cygwin's
intrusion into what should be an XP-only shell, or else a way of
giving priority when in that shell (and not the bash shell, which I
also use) to the Python executable residing at C:\Python25.
It sounds like you may have mistakenly added Cygwin binary directories
to your Windows path. This isn't normally necessary, since the Cygwin
shell makes all necessary path adjustments as it starts.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
Blog of Note: http://holdenweb.blogspot.com
See you at PyCon? http://us.pycon.org/TX2007
On Feb 16, 11:34 am, Steve Holden <s...@holdenweb .comwrote:
Endless Story wrote:
On Feb 16, 10:29 am, Tim Golden <m...@timgolden .me.ukwrote:
I would ask if you had *any* other Python installation
-- say a cygwin one -- which might just be getting in the way?
It's a cygwin problem, guddammit. I was wondering if this might be the
case - I should have mentioned in my initial post that I've got a
whole Cygwin setup, including Python.
I know the conflict is the problem because just now I opened up a
command shell in XP (not the Cywgin bash window), and instead of
typing "python" and getting nothing, I tried "which python" - which
when you think about it, shouldn't even work in a XP shell. But
somehow Cygwin is mingling some of its capabilities with the XP shell,
because "which python" actually gets an answer - "/usr/bin/python,"
which is Cygwin.
Now the question is how to fix this - I don't want to uninstall the
Cygwin version. Instead I need some way of unknotting Cygwin's
intrusion into what should be an XP-only shell, or else a way of
giving priority when in that shell (and not the bash shell, which I
also use) to the Python executable residing at C:\Python25.
It sounds like you may have mistakenly added Cygwin binary directories
to your Windows path. This isn't normally necessary, since the Cygwin
shell makes all necessary path adjustments as it starts.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
Blog of Note: http://holdenweb.blogspot.com
See you at PyCon? http://us.pycon.org/TX2007
On Feb 16, 11:34 am, Steve Holden <s...@holdenweb .comwrote:
It sounds like you may have mistakenly added Cygwin binary directories
to your Windows path. This isn't normally necessary, since the Cygwin
shell makes all necessary path adjustments as it starts.
I did add c:/cywgin to the path, don't remember why now.
For the moment I've moved c:\cygwin to the end of my path, so that it
comes after c:\Python25, and reinstalled Python 2.5. That seems to
have cured at least this particular problem with Python. When I have a
spare moment I will take cygwin out of the path altogether and see if
I can remember why I put it in there to begin with ...
On Feb 16, 11:51 am, "Endless Story" <usable.thou... @gmail.comwrote :
On Feb 16, 11:34 am, Steve Holden <s...@holdenweb .comwrote:
It sounds like you may have mistakenly added Cygwin binary directories
to your Windows path. This isn't normally necessary, since the Cygwin
shell makes all necessary path adjustments as it starts.
Okay - here is from the Cygwin manual available online at http://
cygwin.com/cygwin-ug-net/cygwin-ug-net.html:
"The PATH environment variable is used by Cygwin applications as a
list of directories to search for executable files to run. This
environment variable is converted from Windows format (e.g. C:\WinNT
\system32;C:\Wi nNT) to UNIX format (e.g., /WinNT/system32:/WinNT) when
a Cygwin process first starts. Set it so that it contains at least the
x:\cygwin\bin directory where "x:\cygwin is the "root" of your cygwin
installation if you wish to use cygwin tools outside of bash."
On Feb 16, 11:51 am, "Endless Story" <usable.thou... @gmail.comwrote :
I did add c:/cywgin to the path, don't remember why now.
Having looked at the Cygwin user manual, I think I probably did this
as the result of misunderstandin g the installation process. A PATH
variable is needed, but it can go into cygwin.bat. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Peter Vestergaard |
last post by:
Hi
Probably a simple question but I have not been able to find out how:
I want my python script to generate a path based on some simple lookups and
then change my path so that when the script exits my command prompt (from
which I launched the script) is standing at this path. The path already
exists.
I have tried chdir(path), system('cd '+path) and many others but none
changes my actual path.
Hope anyone can help
Regards, Peter...
|
by: Eric Ching |
last post by:
Can I run pythonw with a script that takes command line arguments then
launches a GUI? I try pythonw myscript.pyw -option arg (etc.) and
nothing happens. Nothing, as in I am immediately returned to the DOS
prompt.
I just started learning Python a couple of weeks ago, so please bear
with me. I have a script that(for now) uses command line arguments
then launches a window (Tk). Once I have entered the arguments and
the window is...
|
by: Joe |
last post by:
I'm using Python 2.4 on Windows XP SP2.
I'm trying to receive a command line argument that is a newline (\n)
Here is the command line to use
sample.py "\n"
Here is a sample.py script
|
by: k8 |
last post by:
Hello-
I'm stuck on a Windows machine today and would love to fully play with
and test a simple python script. I want to be able to type "python
myscript myarg" somewhere. Is there anything out there to help me? My
main concern is playing with the myarg in the sys.argv list. I've been
mucking around with IDLE without much success.
|
by: c3950ig |
last post by:
Hi,
I am python newbie and the command prompt is having an issue with
python. I installed python 2.4.4 onto my windows machine, opened a
command prompt window, and typed python to start the interactive mode.
Got the following error.
D:\>python
'python' is not recognized as an internal or external command,
operable program or batch file.
| |
by: Jim Hendricks |
last post by:
New to Python, and just had something strange happen.
I've been running my new code in IDLE running in windows. My IDLE
version shows as 1.2.1, Python version displaying in IDLE is 2.5.1.
I have been editing my code in UltraEdit then testing in IDLE by
choosing open, then F5. I didn't see an easy way to refresh in IDLE, so
each edit I've been closing the file (not IDLE itself), then opening
again. Since IDLE does not keep track of...
|
by: waltbrad |
last post by:
Hi folks. I'm learning Python from the Mark Lutz Book, Programming
Python 3rd edition.
He seems to be able to invoke the Python interpreter from any command
line prompt.
C:\temp>python
C:\PP3rdEd\examples>python
|
by: Jwe |
last post by:
Hi,
I've written a program which has both a command line interface
and Windows form interface, however it isn't quite working
correctly.
When run from command line with no arguments it should display
the Windows form. The form is being displayed but the command
only returns when the form is closed. I want the command line to
return immediately, leaving the form displayed.
|
by: bkamrani |
last post by:
Hi,
This is a basic problem, but I want to print help content in a Command
Prompt in WinXP and scrolling back to see the first lines. If I start
a command prompt and run python, and then for example,
it starts showing the help, which can be controlled by page or raw
using Spacebar or Enter but after this ends, it seems that I can't
scroll back to see again the first lines.
In the Command Prompt Properties, layout tab, my Screen...
|
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...
|
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,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |