Reply
Thread Tools
Posts: 245 | Thanked: 25 times | Joined on Apr 2007
#1
I'm trying to get PyGPS to run on the tablet, and, after conquering the first obstacle by declaring "coding=utf-8" as line 2 of the pygps file, I run into the following error.

Code:
 File "pygps", line 7, in <module>
    import GDK
ImportError: No module named GDK
Is there a python-GDK module available for maemo? Google's not turning up anything, and apt-cache search on the vmware maemo appliance only turns up "python-gdk-imlib-1.2" Any ideas where the python GDK classes live?
 
Khertan's Avatar
Posts: 1,012 | Thanked: 817 times | Joined on Jul 2007 @ France
#2
import gtk.gdk
 
Posts: 245 | Thanked: 25 times | Joined on Apr 2007
#3
Thanks, but that gives me the same error as just commenting out the "import GDK" line, namely

"python[5490]: GLIB WARNING ** default - Trying to register gtype 'GtkInvalidInputType' as flags when in fact it is of type 'GEnum'"

I'm out of my depth here obviously, I don't really know Python, but if anyone has any more ideas, I'd appreciate them.
 
yerga's Avatar
Posts: 696 | Thanked: 1,012 times | Joined on Mar 2006 @ Asturies, Spain
#4
try with:

import gtk.gdk as GDK
 
Posts: 245 | Thanked: 25 times | Joined on Apr 2007
#5
No difference. I'm not even sure the problem is strictly related to GDK - I don't know when the source was updated, but the PyGPS web page hasn't been updated since 2005, and the program won't run on my laptop, either. It may be big changes in Python or other APIs.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:16.