[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] libsumo error.
|
As usual, I forgot.
Eclipse SUMO Version 9912760eaa
Build features: Linux-4.16.0-1-amd64 Proj GUI GDAL FFmpeg OSG GL2PS
SWIG
on Debian unstable.
On Fri, 2018-05-18 at 17:30 +0200, Lara CODECA wrote:
> Dear All,
>
> I'm trying to use http://sumo.dlr.de/wiki/Libsumo.
> I added the location of libsumo.py and _libsumo.so to my python path.
>
> I have this error:
> Traceback (most recent call last):
> File "./run.traci.py", line 16, in <module>
> import libsumo
> File "... /sumo-git/sumo/bin/libsumo.py", line 17, in <module>
> _libsumo = swig_import_helper()
> File "... /sumo-git/sumo/bin/libsumo.py", line 16, in
> swig_import_helper
> return importlib.import_module('_libsumo')
> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
> import_module
> __import__(name)
> ImportError: dynamic module does not define init function
> (init_libsumo)
>
> It's the first time that i have to deal with SWIG, any ideas?
> I googled the problem, the only thing I found is to be sure I was
> using
> the right python config, and it was indeed 2.7.
>
> Cheers,
> Lara
>
--
Lara CODECA
Postdoc
Tel : 04.93.00.81.51
EURECOM
Campus SophiaTech
http://www.eurecom.fr/