wxPython demo Bind error on debian

J

John Kinson

Hi,

I'm trying to get the wxPython demo to run on a Debian sarge testing
installation, but encounter the following error when I run the demo script:

# ./demo.py
Traceback (most recent call last):
File "./demo.py", line 4, in ?
Main.main()
File "/root/Python/wxPython-2.5.1.5/demo/Main.py", line 946, in main
app = MyApp(0) ##wx.Platform == "__WXMAC__")
File "/usr/lib/python2.3/site-packages/wxPython/wx.py", line 1951, in
__init__
_wxStart(self.OnInit)
File "/root/Python/wxPython-2.5.1.5/demo/Main.py", line 931, in OnInit
splash = MySplashScreen()
File "/root/Python/wxPython-2.5.1.5/demo/Main.py", line 907, in __init__
self.Bind(wx.EVT_CLOSE, self.OnClose)
AttributeError: MySplashScreen instance has no attribute 'Bind'

I installed wxPython using:

apt-get install libwxgtk2.4-python

and am running python2.3.4.

Trying to invoke any one of the individual demos encounters the same error.

Running my own sample app works, however.

The full list of python modules installed is as follows:

# apt-show-versions | grep -i python
python2.3-gtk2/testing uptodate 2.2.0-1
idle-python2.3/testing uptodate 2.3.4-2
python-doc/testing uptodate 2.3.4-1
python-extclass/testing uptodate 1.2.0zope-2.5.1-1.3
python/testing uptodate 2.3.4-1
python2.3-extclass/testing uptodate 1.2.0zope-2.5.1-1.3
python-gtk2/testing uptodate 2.2.0-1
python-xml/testing uptodate 0.8.3-5
libwxgtk2.4-python/testing uptodate 2.4.2.4
python2.3-dev/testing uptodate 2.3.4-2
python2.3-tk/testing uptodate 2.3.4-2
python2.3-examples/testing uptodate 2.3.4-2
python2.3-htmlgen/testing uptodate 2.2.2-9.1
python-gendoc/testing uptodate 0.73-10
python2.3-xml/testing uptodate 0.8.3-5
python-examples/testing uptodate 2.3.4-1
python2.3-doc/testing uptodate 2.3.4-2
python2.3/testing uptodate 2.3.4-2
python-dev/testing uptodate 2.3.4-1
python2.3-numeric/testing uptodate 23.1-3
python-gdbm/testing uptodate 2.3.4-1
python2.3-ldap/testing uptodate 1.9.999.pre19-1
python-ldap/testing uptodate 1.9.999.pre19-1
python2.3-iconvcodec/testing uptodate 1.1.2-1
python-htmlgen/testing uptodate 2.2.2-9.1
python2.3-imaging/testing uptodate 1.1.4-3
python2.3-gdbm/testing uptodate 2.3.4-2

Anyone got any ideas? I'm just starting out with wxPython...

Cheers

JK
 
J

John fabiani

John said:
Hi,

I'm trying to get the wxPython demo to run on a Debian sarge testing
installation, but encounter the following error when I run the demo script:

# ./demo.py
Traceback (most recent call last):
File "./demo.py", line 4, in ?
Main.main()
File "/root/Python/wxPython-2.5.1.5/demo/Main.py", line 946, in main
app = MyApp(0) ##wx.Platform == "__WXMAC__")
File "/usr/lib/python2.3/site-packages/wxPython/wx.py", line 1951, in
__init__
_wxStart(self.OnInit)
File "/root/Python/wxPython-2.5.1.5/demo/Main.py", line 931, in OnInit
splash = MySplashScreen()
File "/root/Python/wxPython-2.5.1.5/demo/Main.py", line 907, in __init__
self.Bind(wx.EVT_CLOSE, self.OnClose)
AttributeError: MySplashScreen instance has no attribute 'Bind'

I installed wxPython using:

apt-get install libwxgtk2.4-python

and am running python2.3.4.

Trying to invoke any one of the individual demos encounters the same error.

Running my own sample app works, however.

The full list of python modules installed is as follows:

# apt-show-versions | grep -i python
python2.3-gtk2/testing uptodate 2.2.0-1
idle-python2.3/testing uptodate 2.3.4-2
python-doc/testing uptodate 2.3.4-1
python-extclass/testing uptodate 1.2.0zope-2.5.1-1.3
python/testing uptodate 2.3.4-1
python2.3-extclass/testing uptodate 1.2.0zope-2.5.1-1.3
python-gtk2/testing uptodate 2.2.0-1
python-xml/testing uptodate 0.8.3-5
libwxgtk2.4-python/testing uptodate 2.4.2.4
python2.3-dev/testing uptodate 2.3.4-2
python2.3-tk/testing uptodate 2.3.4-2
python2.3-examples/testing uptodate 2.3.4-2
python2.3-htmlgen/testing uptodate 2.2.2-9.1
python-gendoc/testing uptodate 0.73-10
python2.3-xml/testing uptodate 0.8.3-5
python-examples/testing uptodate 2.3.4-1
python2.3-doc/testing uptodate 2.3.4-2
python2.3/testing uptodate 2.3.4-2
python-dev/testing uptodate 2.3.4-1
python2.3-numeric/testing uptodate 23.1-3
python-gdbm/testing uptodate 2.3.4-1
python2.3-ldap/testing uptodate 1.9.999.pre19-1
python-ldap/testing uptodate 1.9.999.pre19-1
python2.3-iconvcodec/testing uptodate 1.1.2-1
python-htmlgen/testing uptodate 2.2.2-9.1
python2.3-imaging/testing uptodate 1.1.4-3
python2.3-gdbm/testing uptodate 2.3.4-2

Anyone got any ideas? I'm just starting out with wxPython...

Cheers

JK
Got to have Wxpython 2.5 - which breaks other stuff. Use the old demo.
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top