471,066 Members | 1,283 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

wxPython demo Bind error on debian

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
Jul 18 '05 #1
1 1967
John Kinson wrote:
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
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by C GIllespie | last post: by
9 posts views Thread by amhoov | last post: by
2 posts views Thread by crystalattice | last post: by
2 posts views Thread by KDawg44 | last post: by
6 posts views Thread by BartlebyScrivener | last post: by
1 post views Thread by Bailu | last post: by
1 post views Thread by Jimmy | last post: by
4 posts views Thread by Jimmy | last post: by
reply views Thread by leo001 | last post: by

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.