Active Topics

 


Reply
Thread Tools
omeriko9's Avatar
Posts: 385 | Thanked: 344 times | Joined on Jan 2010 @ Israel
#1
I try to run the following python code:

PHP Code:
import gobjectdbus
from dbus
.mainloop.glib import DBusGMainLoop 
But I get the error in the title.


What am I doing wrong?
Any dependencies issue I might have?
 
Posts: 53 | Thanked: 90 times | Joined on Nov 2009 @ Manaus, Brazil
#2
Are you running it on Scratchbox or on the device ?

Which product are you using (fremantle or diablo) ?

If running on scratchbox, make sure you are running "python2.5" instead of just "python"

Also make sure you have up-to-date python-gobject and python-dbus packages. To do so, make sure extras-devel is enabled, run "apt-get update", followed by "apt-get install python-gobject python-dbus"

I tried the lines above on Scratchbox (fremantle) and they worked just fine.
__________________
Anderson Lizardo
 

The Following User Says Thank You to lizardo For This Useful Post:
omeriko9's Avatar
Posts: 385 | Thanked: 344 times | Joined on Jan 2010 @ Israel
#3
Thank you for your reply.
I'm using fremantle on the N900 itself.

When I apt-get both packages you mentioned, I get
"x is already the newest version".

Also, I get the same error when running "pythone2.5 filename.py" and "python filename.py".

So, the issue still exist...
 
omeriko9's Avatar
Posts: 385 | Thanked: 344 times | Joined on Jan 2010 @ Israel
#4
Ok, I've found the source of this error, for whoever is interested...

It was caused by my lack of python knowledge.
I called the script dbus.py, which caused the line "from gobject, dbus" to reference the same file I was trying to run...

good to know
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:00.