Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] libsumo error.
  • From: Michael Behrisch <oss@xxxxxxxxxxx>
  • Date: Thu, 24 May 2018 22:51:14 +0200
  • Autocrypt: addr=oss@xxxxxxxxxxx; prefer-encrypt=mutual; keydata= xsDiBFLSvucRBACGsasS4GeIWs1CFNTOYmp3ScQ2ZTJLJWQxhPliwtHTzLsErYu9Y7e8qDov iHFviYyaNuceUNoACm1e4MT4eu0DmM2Wk3y/jjD6hfm7L0EZNPxQhj+CJf2oZAm2ezCe7/si xZ2d7TCO8yWavOGbF0EVi/ZDIJqVgupu6WBpv/NCewCg65HQiS1wm+1w1MdFYxKCmXzbv08D /iWXX3tzabbCrLlUum8hBgBpJEHRtlic2uaGsKm8Fize4tfLZkTBbTYLYXfcx2Oq9+lINPTW h9jnbCjAjErRWLTjNTQjel0JnDryCnqabub/R3wScR/EHRDBeS9L6YRj0xdVd2qIaArtSYRR auKPNc4M2qZNEFSM37cXC7avhpdeA/99oJf4qyVly4RxHmekAmj9UJjRx17x9xX8t9uzUuSt AeTh+kQ3o5jK7veU6/F/+pPyi96EOzym9BJA8pgXC8hLWNjOajI10filkdQ26QsfHOpUdPSZ 4Duyw9Ayj8loagEnnAONmU/xE0QlyVBANIut0W+SNqPScYXfnBbVOaG3Hc0mTWljaGFlbCBC ZWhyaXNjaCA8bWljaGFlbEBiZWhyaXNjaC5kZT7CZgQTEQIAJgIbIwcLCQgHAwIBBhUIAgkK CwQWAgMBAh4BAheABQJS0sKXAhkBAAoJEDwQ/pbRcKYp+SEAoMJSvUzfk3u6EA1nMlMVSk85 nHhoAJ0VE5xLi2ni8j9wdx+uga7XGLtjhs7ATQRS0r7nEAQAkQLdzlu3i/Ddziadm2c/60ZX bcY3FYhHHfsKUHC/QING+lu3uHG0nPaElPTAHTr8UdFMbmpXkRs9+1v1RAvHBWW95BbUXZeu oBsoCm+4Jdktu+PeVxGKhOwQRdR30A4y/bIeRn7iMzkZKoQh0lE3ZEbs0T8TUHBGBUqwEhIv Y0MAAwUD/RXrkwtUiR61/bT96eMaxGtO15AqvlM8DYQ3Xs6EH09QlGzr/i0+usi01wGoh13p YGjzEDtTqO+lNs9AtS7nZAHA3cCWzLmdEXw6EY7IH4X7zOpKoj+JtLNjUd2Nzvhyl48LT217 g8GmCACL6Wo/G+fZ+30Mny+gWbDtEGXNIv7fwkkEGBECAAkFAlLSvucCGwwACgkQPBD+ltFw pimNZQCgnN5oibnjl7r2SVle6hgUMcckfN4AoMYRjy/Tqz9tq8TSUqNcOTjlMR7D
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://dev.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://dev.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://dev.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Openpgp: preference=signencrypt
  • User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

Hi Lara,
the error looks as if you compiled against python3 but started python2.
You can have a look at the CMakeCache.txt in your build dir (grep for
PYTHON) which should show which library has been picked. Or you just try
whether it works if you run python3. Unfortunately I also do not know
how to force cmake to pick up the "correct" python other than editing
CMakeCache.txt.

Best regards,
Michael

Am 18.05.2018 um 17:43 schrieb Lara CODECA:
> 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
>>


Attachment: signature.asc
Description: OpenPGP digital signature


Back to the top