View Single Post
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#759
Originally Posted by MarkyboyUK View Post
Reinstalling didn't fix it. Python-dbus was already installed/latest version.

Tried again in CLI mode with latest version, this time without typing sudo gainroot. Seems to be complaining about a mod_location module.
Any help?

~ $ modrana
== modRana Starting ==
...
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
Originally Posted by gkuenning View Post
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!
Thanks for the info ! Looks like the new GPSD support module, which depends on json, was imported even when not needed (as modRana uses liblocation in its place on Maemo).
I have added python-json as a dependency and a pure-python version as a backup (well, it was actually already there for the googlemaps module, but I made it accessible for all modules).
All this should be in the in V0.26-4 that was released a few hours ago.

@on PC tile download
Check out this post and maybe posts around it.
I think there really needs to be a wiki page about this.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 

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