Active Topics

 


Reply
Thread Tools
HangLoose's Avatar
Posts: 319 | Thanked: 289 times | Joined on Sep 2009 @ Lisboa, Portugal
#1
I am following this tutorial:
http://wiki.maemo.org/PyMaemo/HildonDesktop

When I launch Xephyr I see this error message:
[sbox-FREMANTLE_X86: /usr/share/applications/hildon-home] > ImportError: No module named hello_world_home
hildon-home[12388]: GLIB WARNING ** default - Could not initialize Python module 'hello_world_home'
hildon-home[12388]: GLIB WARNING ** default - Error loading plugin: /usr/share/applications/hildon-home/hello_world_home5.desktop
ImportError: No module named hello_world_home
hildon-home[12388]: GLIB WARNING ** default - Could not initialize Python module 'hello_world_home'
hildon-home[12388]: GLIB WARNING ** default - Error loading plugin: /usr/share/applications/hildon-home/hello_world_home5.desktop
I even get the Widget to show in the "Add widget"-pane but it doesnt load.
I tried renaming the .desktop but still with no success, moving the .desktop out and in from it's folder but nothing.

Any ideas what I am doing wrong?

*The contents of each file, hello_world_home.py and hello_world_home.desktop, are the same as in the tutorial.*

Last edited by HangLoose; 2009-12-15 at 13:57. Reason: typo, changing title to be more clear
 
Posts: 1,208 | Thanked: 1,028 times | Joined on Oct 2007
#2
Originally Posted by HangLoose View Post
*The contents of each file, hello_world_home_py and hello_world_home.desktop, are the same as in the tutorial.*
is it really hello_world_home_py? Should be hello_world_home.py according to tutorial.
 
HangLoose's Avatar
Posts: 319 | Thanked: 289 times | Joined on Sep 2009 @ Lisboa, Portugal
#3
oh i am sorry, i meant hello_world_home.py
was a typo when I was writing the post..
 
HangLoose's Avatar
Posts: 319 | Thanked: 289 times | Joined on Sep 2009 @ Lisboa, Portugal
#4
So I tried manually compiling the source and I get this:
[sbox-FREMANTLE_X86: /usr/lib/hildon-desktop] > python hello_world_home.py
Traceback (most recent call last):
File "hello_world_home.py", line 1, in <module>
import gtk
ImportError: No module named gtk
Then I tried installing python-gtk2 and python-runtime to solve the problem but to no avail.

Also I get this after a dpkg -l | grep python2.5 :

ii python2.5 2.5.4-1maemo5 An interactive high-level object-oriented la
ii python2.5-minimal 2.5.4-1maemo5 A minimal subset of the Python language (ver
---------------------
Edit: I dont know what happened but after I compiled the program and re-started Xephyr it started working. Sorry I cant give more information about it.

Last edited by HangLoose; 2009-12-15 at 14:28.
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:06.