View Single Post
Posts: 67 | Thanked: 36 times | Joined on May 2010 @ Claremont (LA), California
#756
Originally Posted by MarkyboyUK View Post
Reinstalling didn't fix it. Python-dbus was already installed/latest version.

...
modRana: module: mod_location/location failed to load
Traceback (most recent call last):
File "modrana.py", line 169, in _loadModule
a = __import__(importName)
File "/opt/modrana/modules/mod_location.py", line 22, in <module>
import gps_module as gps
File "/opt/modrana/modules/gps_module/__init__.py", line 9, in <module>
from gps import *
File "/opt/modrana/modules/gps_module/gps.py", line 18, in <module>
from client import *
File "/opt/modrana/modules/gps_module/client.py", line 9, in <module>
import simplejson as json # For Python 2.4 and 2.5
ImportError: No module named simplejson
The problem is that the "simplejson" package is missing. On my N900 it lives in /usr/lib/python2.5/site-packages/simplejson. Fine, I think, so he just needs to install it. But here's what I get when I try to figure out the package name:

scroll:~# apt-get install simplejson
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package simplejson is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package simplejson has no installation candidate

A bit of Googling reveals that it's actually named python-simplejson. I suspect the problem might be a wrong dependency in Modrana? Anyway, you should be able to solve it by doing (as root):

apt-get install python-simplejson

Good luck!
 

The Following 2 Users Say Thank You to gkuenning For This Useful Post: