[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[sumo-user] LIBSUMO_AS_TRACI=1 causes error
|
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/