View Single Post
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#1467
Originally Posted by nodevel View Post
I was just about to post an extended error code when I saw your answer.
Code:
modRana: module: mod_route/route failed to load
'module' object has no attribute 'FileDescriptor'
traceback:
Traceback (most recent call last):
  File "modrana.py", line 329, in _loadModule
    a = imp.load_module(importName, fp, pathName, description)
  File "/opt/modrana/modules/mod_route/__init__.py", line 1, in <module>
    from .mod_route import getModule
  File "/opt/modrana/modules/mod_route/mod_route.py", line 36, in <module>
    from . import routing_providers
  File "/opt/modrana/modules/mod_route/routing_providers.py", line 9, in <module>
    from . import monav_support
  File "/opt/modrana/modules/mod_route/monav_support.py", line 27, in <module>
    from . import monav
  File "/opt/modrana/modules/mod_route/monav.py", line 27, in <module>
    from signals_pb2 import CommandType, VersionCommand, VersionResult, RoutingCommand, RoutingResult
  File "/opt/modrana/modules/mod_route/signals_pb2.py", line 11, in <module>
    DESCRIPTOR = descriptor.FileDescriptor(
AttributeError: 'module' object has no attribute 'FileDescriptor'
I will send the whole output to the e-mail address specified, if needed, but this is the unusual part.

I tried searching this error on the internet and solved the issue by upgrading python-protobuf to the extras-devel version. Now both address-to-address routing and routing from the search result works, but you might need to specify the python-protobuf version in the dependencies.
Ah, thanks, that appears to be it ! I've bumped the python-protobuf dependency to >=2.4 and I've also removed that monav_support import - it will be imported once needed, so it was just slowing down startup. I've just sent 0.43.4 with this fix to autobuilder, should show up in Extras-Devel in a few minutes.

BTW, while doing the release, I've discovered a glitch that caused 0.43.3 to actually miss the last two weeks of commits. Therefore and upgrade to 0.43.4 is very much encouraged, provided you actually want all those fixes that should have been in 0.43.3.
__________________
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 11 Users Say Thank You to MartinK For This Useful Post: