Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] LIBSUMO_AS_TRACI=1 causes error
  • From: Michael Behrisch <oss@xxxxxxxxxxx>
  • Date: Sat, 20 Jun 2020 13:18:17 +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://www.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0

Hi Marcel,
thanks for the report, it is a bug:
https://github.com/eclipse/sumo/issues/7207
For the most recent libsumo you can download the artifacts from the
github actions see here:
https://sumo.dlr.de/daily/userdoc/Developer/Nightly_Build.html#continuous_integration.
Please be aware to choose the correct python version.

Best regards,
Michael

Am 19.06.20 um 20:54 schrieb marcelreppi:
> Hello,
> 
> I tried to use LIBSUMO_AS_TRACI=1 on Ubuntu to avoid changing all my scripts
> but I get the following error:
> 
> Traceback (most recent call last):
>   File "create_poly_db.py", line 13, in <module>
>     import traci
>   File "/usr/local/share/sumo/tools/traci/__init__.py", line 30, in <module>
>     from libsumo import *  # noqa
>   File "/usr/local/share/sumo/tools/libsumo/__init__.py", line 20, in
> <module>
>     from .libsumo import simulation
>   File "/usr/local/share/sumo/tools/libsumo/libsumo.py", line 65, in
> <module>
>     from traci import constants, exceptions, _vehicle, _person,
> _trafficlight, _simulation
>   File "/usr/local/share/sumo/tools/traci/_vehicle.py", line 32, in <module>
>     from .main import legacyGetLeader
>   File "/usr/local/share/sumo/tools/traci/main.py", line 66, in <module>
>     vehicle = _vehicle.VehicleDomain()
> AttributeError: partially initialized module 'traci._vehicle' has no
> attribute 'VehicleDomain' (most likely due to a circular import)
> 
> When I use "import libsumo as traci" everything works.
> 
> Another question: If I want to use libsumo on Windows is it enough to just
> download the nightly build with all the extras
> (https://sumo.dlr.de/daily/sumo-win64extra-git.zip) or do I have to build it
> again?
> 
> Thanks!
> 
> Best regards
> Marcel
> 
> 
> 
> --
> Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
> 


Attachment: signature.asc
Description: OpenPGP digital signature


Back to the top