probs with SpokePOV.py under Linux

MiniPOV4 and previous versions

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
mux
 
Posts: 47
Joined: Sat May 28, 2005 11:28 pm

probs with SpokePOV.py under Linux

Post by mux »

Hola,

Well, I'm stuck here:
[drew@BANNED spokepov]$ ./SpokePOV.py
Traceback (most recent call last):
File "./SpokePOV.py", line 1025, in ?
sys.exit(main())
File "./SpokePOV.py", line 1013, in main
app = SpokeSoft(redirect=False)
File "/usr/lib/python2.4/site-packages/wxPython/wx.py", line 1951, in __init__
_wxStart(self.OnInit)
File "./SpokePOV.py", line 984, in OnInit
frame = SpokeSoftFrame(None, "pySpokePOV")
File "./SpokePOV.py", line 692, in __init__
self.Bind(wx.EVT_MENU, self.OnImportBMP, id=1)
AttributeError: SpokeSoftFrame instance has no attribute 'Bind'
[drew@BANNED spokepov]$
I've got Python 2.4.1, wxPython and wxPythonGTK2 installed. I installed pyParallel too (tho that was... interesting. Seems like the guy that wrote it has never installed it on Linux before - really basic error in setup.py, I had to comment out the line "package_data = data_files" to get the install to work at all...).

Any ideas?

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

Sadly, I dont have a linux box anymore or rather, it kernel panics on boot. I know I got working a few months ago. I'll try to find a linux box around somewhere but I dont know if I can do it anytime soon.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

hmm, try running "python spokepov.py"

not that it should make a difference but...

mux
 
Posts: 47
Joined: Sat May 28, 2005 11:28 pm

Post by mux »

[drew@BANNED spokepov]$ python SpokePOV.py
Traceback (most recent call last):
File "SpokePOV.py", line 1025, in ?
sys.exit(main())
File "SpokePOV.py", line 1013, in main
app = SpokeSoft(redirect=False)
File "/usr/lib/python2.4/site-packages/wxPython/wx.py", line 1951, in __init__
_wxStart(self.OnInit)
File "SpokePOV.py", line 984, in OnInit
frame = SpokeSoftFrame(None, "pySpokePOV")
File "SpokePOV.py", line 692, in __init__
self.Bind(wx.EVT_MENU, self.OnImportBMP, id=1)
AttributeError: SpokeSoftFrame instance has no attribute 'Bind'
[drew@BANNED spokepov]$
Identical error. :(

Guest
 

Post by Guest »

mayyybe a wrong version of python or more specifically wx ? ie did you try with other versions ?

User avatar
chairman meow
 
Posts: 56
Joined: Sat Jul 30, 2005 8:48 pm

upgrade wxpython

Post by chairman meow »

The wxPython migration guide says that wxEvtHandlers got a Bind() method between wxPython 2.4 and 2.6. As suggested above, you appear to have too old a wxPython version installed.
[drew@BANNED spokepov]$
mux: it could also be that your computer simply despises you for giving it the hostname BANNED. :lol:

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

woah, i could have sworn i was running python 2.4...thats what ive got on my windows box (2.4.1) however, i am running wxpython 2.6 maybe thats the problem?

User avatar
chairman meow
 
Posts: 56
Joined: Sat Jul 30, 2005 8:48 pm

Post by chairman meow »

ladyada wrote:woah, i could have sworn i was running python 2.4...thats what ive got on my windows box (2.4.1) however, i am running wxpython 2.6 maybe thats the problem?
Noo! wxPython means the Python language bindings to the wxWidgets GUI library (previously known as wxWindows). wxPython version tracks with wxWidgets version I believe. It's only a coincidence that you see both Python and the wxPython library at version 2.4, their numbers are not related. I'm guessing that you (Limor) have Python 2.4, and wxPython 2.6 built for Python 2.4. That just means you have the latest version of both. I'm guessing that the original poster has Python 2.4 (from the stacktrace) and wxPython 2.4 (latest Python, old wx).

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

i hate software

Locked
Please be positive and constructive with your questions and comments.

Return to “MiniPOV”