Win2K demo.py traceback after fresh install

Fresh install of wxPython on a Win2K box, running Python 2.2 here. My first
act after installing and reading the README was to run the demo and poke
around. But I pulled the following error instead. It flashes some snazzy
little window across the screen for an instant, but it's too quick to say
what it might be.

<snip>

NameError: global name 'True' is not defined

I've snooped around a bit to see if anything stuck out as odd in the source
files, but nothing grabs me aside from the fact that I imagine __WXMAC__ to
be a Macintosh reference. I'd welcome any helpful feedback.

I ran into a problem somewhat like this. A couple of things to do:
1) make sure that the wxPython version that you have matches the
version of Pythin that you're using.
2) run your program #python -i <your_program>
This keeps the window alive long enough for you to read the
STDOUT/STDERR messages that might get spit out inside of the program.

From the True not defined error, I'm thinking that it's #1, a version

mismatch. I don't think that True is degfined as a golbal bool value
in 2.2, but I could be wrong.

Evan

···

On Sun, Aug 17, 2003 at 02:51:00PM -0500, rob@jam.rr.com wrote:

Philip Evan McClanahan wrote:

NameError: global name 'True' is not defined

From the True not defined error, I'm thinking that it's #1, a version

mismatch. I don't think that True is degfined as a golbal bool value
in 2.2, but I could be wrong.

IIRC, the global values True and False were added in a bugfix release of Python -- they're not present in 2.2.0, but they are in 2.2.1. So upgrading to the most recent bugfix release of 2.2 (2.2.3) would (presumably) have fixed this problem, just as upgrading to 2.3 did.

Jeff Shannon
Technician/Programmer
Credit International

···

On Sun, Aug 17, 2003 at 02:51:00PM -0500, rob@jam.rr.com wrote: