472,353 Members | 1,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

[Q & A]Weirdness About Python 2.3x and Its Environment Vars Under Windows

I just spent the last hour or so trying mightily to 'fix' Python (2.3.3)
under WinME. Have been using it on various Win9X/XP systems for
years (since 1.52) for routine scripting. LOVE IT !!! Heretofore,
the ONLY environment variable I've EVER used for ANY Pythonstallation
was PYTHONPATH (ie. SET PYTHONPATH=.;C:\MYPY;) However, today I
started working on a 'new' development machine and I couldn't get
IDLE or PYTHONWIN to operate at all. I finally tracked it down to
one thing: the absence of the PYTHONHOME env var.

PYTHONWIN would crap out w/ an error dialog about not finding
pywin.framework.startup and IDLE would simply display an hourglass
for a sec, then nothing. I recently heard about PYTHONHOME, added it
to my AUTOEXEC, and suddenly all was working again.

Another problem was that the cmd-line version of PYTHON wouldn't
find ConfigParser (ie. a std Python module) from a very short, working
script of mine.

Anyway, my question (at last) is: has anyone had this occur to
them ? I've NEVER had a problem like this, altho I suspect this is
the 1st time I've installed Python 2.3. I figure someone else will
get stumped like this and the thread will help. Later....Jet
Jul 18 '05 #1
0 945

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

Similar topics

39
by: Marco Aschwanden | last post by:
Hi I don't have to talk about the beauty of Python and its clear and readable syntax... but there are a few things that striked me while...
5
by: Rafal Kleger-Rudomin | last post by:
Hello, I'm looking for a command to reset interpreter's environment i.e. unload all modules, delete variables etc. Regards, Rafal
12
by: Mike Dee | last post by:
A very very basic UTF-8 question that's driving me nuts: If I have this in the beginning of my Python script in Linux: #!/usr/bin/env python #...
3
by: Gonzalo Sainz-Trápaga (GomoX) | last post by:
Hi, I've posted this to mod_python@modpython.org and got no answers, so i'm reposting it here, I really hope someone can help me out. ------ ...
134
by: Joseph Garvin | last post by:
As someone who learned C first, when I came to Python everytime I read about a new feature it was like, "Whoa! I can do that?!" Slicing, dir(),...
2
by: ajikoe | last post by:
Hi, I tried to follow the example in swig homepage. I found error which I don't understand. I use bcc32, I already include directory where my...
0
by: Fuzzyman | last post by:
It's finally happened, `Movable Python <http://www.voidspace.org.uk/python/movpy/>`_ is finally released. Versions for Python 2.3 & 2.4 are...
15
by: kyosohma | last post by:
Hi, I am trying to get a small group of volunteers together to create Windows binaries for any Python extension developer that needs them, much...
4
by: Aaron \Castironpi\ Brady | last post by:
Sometimes questions come up on here about unpickling safely and executing foreign code. I was thinking a minimum install that didn't even have...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.