![]() |
Gogh, or the case of the missing Python gnome.ui module...
This app looks like it would be real fun to play with on our tablets :
http://www.goghproject.com/index.html Moreover, it is really tiny and should be really easy for us to try out, as it is done in 100% Python with PyGtk... right ? Wrong - the app dies with a "Module not found" error when trying to "import gnome.ui". The page does say that Gogh depends on "gnome-python", amongst other things. There is a "python2.5-gnome" installed by default on my N800 with the python runtime. In the python shell I can "import gnome", but "import gnome.ui" fails. Am I missing some other package, or is there some real "porting" to do with the python code ?.. |
Re: Gogh, or the case of the missing Python gnome.ui module...
Okay, it turns out gnome.ui is not a big deal, there are only two lines to comment out in goghmain.py : "import gnome.ui" and the one starting with "gnome.init(".
After that the app starts, but nothing much happens because another dependency is not met : PyGTK is not compiled with Numeric support in the Maemo package, as required by Gogh. Too bad... |
Re: Gogh, or the case of the missing Python gnome.ui module...
i got it to build.
the app starts in SB but nothing much happens after that. it freeze when i try to draw something. will be trying it out on the device. gnome.ui is needed i think. missing lots of icons. but not sure |
Re: Gogh, or the case of the missing Python gnome.ui module...
well got it running on the n800....
strokes do not show at all... not sure why, but i am getting an error from the terminal about pygtk not being compiled with numeric python support. but with removing the import gnome.ui and pygtk not being compiled with numeric support, can't really tell why the brush strokes are not showing.. here's what i'm getting from term. When trying to draw. numbers not included. 1. troke 2. self.put_dab_on_layer(dab_rect) 3. File "/usr/lib/python2.5/site-packages/brushstroke.py", line 153, in put_dab_on_layer 4. dab_pixbuf = dab_rect.get_trimmed_pixbuf(self.color, self.goghdoc.width, self.goghdoc.height) 5. File "/usr/lib/python2.5/site-packages/brushstroke.py", line 78, in get_trimmed_pixbuf 6. pixbuf.get_pixels_array()[:,:,3] = (255*self.alphas[trimmed_rect.y:trimmed_rect.y+trimmed_rect.height, trimmed_rect.x:trimmed_rect.x+trimmed_rect.width]).astype(UInt8) 7. RuntimeError: pygtk was not compiled with Numeric Python support 8. Traceback (most recent call last): 9. File "/usr/lib/python2.5/site-packages/goghmain.py", line 97, in on_eventbox_motion_notify_event 10. self.brush_stroke.draw_to(x, y, get_pressure(data)) 11. File "/usr/lib/python2.5/site-packages/brushstroke.py", line 109, in draw_to 12. self.apply_brush_stroke(self.last_x, self.last_y, x, y, intermediate_coords, pressure) 13. File "/usr/lib/python2.5/site-packages/brushstroke.py", line 149, in apply_brush_stroke 14. self.put_dab_on_layer(dab_rect) 15. File "/usr/lib/python2.5/site-packages/brushstroke.py", line 153, in put_dab_on_layer 16. dab_pixbuf = dab_rect.get_trimmed_pixbuf(self.color, self.goghdoc.width, self.goghdoc.height) 17. File "/usr/lib/python2.5/site-packages/brushstroke.py", line 78, in get_trimmed_pixbuf 18. pixbuf.get_pixels_array()[:,:,3] = (255*self.alphas[trimmed_rect.y:trimmed_rect.y+trimmed_rect.height, trimmed_rect.x:trimmed_rect.x+trimmed_rect.width]).astype(UInt8) 19. RuntimeError: pygtk was not compiled with Numeric Python support 20. Traceback (most recent call last): 21. File "/usr/lib/python2.5/site-packages/goghmain.py", line 130, in on_eventbox_button_release_event 22. self.brush_stroke.draw_to(x, y, 0) 23. File "/usr/lib/python2.5/site-packages/brushstroke.py", line 109, in draw_to 24. self.apply_brush_stroke(self.last_x, self.last_y, x, y, intermediate_coords, pressure) 25. File "/usr/lib/python2.5/site-packages/brushstroke.py", line 149, in apply_brush_stroke 26. self.put_dab_on_layer(dab_rect) 27. File "/usr/lib/python2.5/site-packages/brushstroke.py", line 153, in put_dab_on_layer 28. dab_pixbuf = dab_rect.get_trimmed_pixbuf(self.color, self.goghdoc.width, self.goghdoc.height) 29. File "/usr/lib/python2.5/site-packages/brushstroke.py", line 78, in get_trimmed_pixbuf 30. pixbuf.get_pixels_array()[:,:,3] = (255*self.alphas[trimmed_rect.y:trimmed_rect.y+trimmed_rect.height, trimmed_rect.x:trimmed_rect.x+trimmed_rect.width]).astype(UInt8) 31. RuntimeError: pygtk was not compiled with Numeric Python support 32. Traceback (most recent call last): 33. File "/usr/lib/python2.5/site-packages/goghmain.py", line 97, in on_eventbox_motion_notify_event 34. self.brush_stroke.draw_to(x, y, get_pressure(data)) 35. File "/usr/lib/python2.5/site-packages/brushstroke.py", line 109, in draw_to 36. self.apply_brush_stroke(self.last_x, self.last_y, x, y, intermediate_coords, pressure) 37. File "/usr/lib/python2.5/site-packages/brushstroke.py", line 149, in apply_brush_stroke 38. self.put_dab_on_layer(dab_rect) 39. File "/usr/lib/python2.5/site-packages/brushstroke.py", line 153, in put_dab_on_layer 40. dab_pixbuf = dab_rect.get_trimmed_pixbuf(self.color, self.goghdoc.width, self.goghdoc.height) 41. File "/usr/lib/python2.5/site-packages/brushstroke.py", line 78, in get_trimmed_pixbuf 42. pixbuf.get_pixels_array()[:,:,3] = (255*self.alphas[trimmed_rect.y:trimmed_rect.y+trimmed_rect.height, trimmed_rect.x:trimmed_rect.x+trimmed_rect.width]).astype(UInt8) 43. RuntimeError: pygtk was not compiled with Numeric Python support |
Re: Gogh, or the case of the missing Python gnome.ui module...
I guess Gogh is using PyGTK numeric support to calculate the strokes and that's what is causing the strokes to not show.
|
All times are GMT. The time now is 17:51. |
vBulletin® Version 3.8.8