Win2K demo.py traceback after fresh install

rob@jam.rr.com wrote:

Fresh install of wxPython on a Win2K box, running Python 2.2 here. My first

    _wxStart(self.OnInit)
  File "E:\PYTHON22\Lib\site-packages\wxPython\demo\Main.py", line 724, in
OnInit
    return True
NameError: global name 'True' is not defined

This is very weird because True is a builtin name in Python 2.2, although now that I think about it I think that it wasn't added until 2.2.1 or something...

Python 2.2.2 (#2, Feb 5 2003, 10:40:08)
[GCC 3.2.1 (Mandrake Linux 9.1 3.2.1-5mdk)] on linux-i386
Type "help", "copyright", "credits" or "license" for more information.
>>> True
1

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

Python 2.2.2 (#2, Feb 5 2003, 10:40:08)
[GCC 3.2.1 (Mandrake Linux 9.1 3.2.1-5mdk)] on linux-i386
Type "help", "copyright", "credits" or "license" for more information.
>>> True
1
>>>

Robin, just curious; I thought you used to develop on Redhat. What made you switch?

Bob

Bob Klimek wrote:

Robin Dunn wrote:

Python 2.2.2 (#2, Feb 5 2003, 10:40:08)
[GCC 3.2.1 (Mandrake Linux 9.1 3.2.1-5mdk)] on linux-i386
Type "help", "copyright", "credits" or "license" for more information.
>>> True
1
>>>

Robin, just curious; I thought you used to develop on Redhat. What made you switch?

I still build the RPMs (for wxPythonGTK not wxPythonGTK2) on a RedHat box (in a VMWare session) but except for a few times here and there when I experimented I have mostly used Mandrake for my main Linux development machines. Since October or so last year it has also been my primary desktop machine and now I run Win2k in a VMWare session. It's hard to explain why other than "gut feel" and that Mandrake just feels like the various components and default configs and the Mandrake tools and etc. are all better integrated giving a smoother user experience.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!