Hello Jakob, community,
I have another problem..
traci.simulation.Stage is a collection.namedtuple so I can manipulate it using
stage._replace(travelTime=1.0),
but if I do the same thing with libsumo.libsumo.TraCIStage I get
"AttributeError: 'TraCIStage' object has no attribute '_replace'"
and if
Thank you, Jakob.
I tried "import libsumo.constants as tc"
and I get a "ModuleNotFoundError: No module named 'libsumo.constants'"
that is why I asked. I suppose the shortcut is not working anymore.
I'll remove the stepListener and I'll try again.
Cheers,
Lara
On Tue, 23 Apr 2019 12:26:13 +0200
- libsumo.constants is the same as traci.constants
- traci.addStepListener is a pure python client feature. It's missing from
libsumo and all other traci clients (hence the error in simple.example.py)
- the 'stageType' error was due to
https://github.com/eclipse/sumo/issues/5502. Please update sumo
Hello Michael,
I'm using python 3, so that is fine.
libsumo has not constant and no StepListener, so I still need to import traci,
right?
Using https://github.com/lcodeca/SUMOActivityGen/blob/master/activitygen.py and
fixing lines 34 and 35 to use libsumo you have the following error:
Tracebac
Hi Lara,
if libsumo is compiled correctly and is in your python path (together
with the dll / so file), it should really be just a matter of "import
libsumo as traci". It works only with Python3 however. Please tell us
what ypu tried and which errors occured.
Best regards,
Michael
Am 18.04.19 um
Hello community,
I wrote a python library that uses traci to implement a parking monitoring
system (https://github.com/lcodeca/PyPML).
I'm trying to find a way to use libsumo (or even better both, leaving the
choice to the user) in order to improve the performances.
Unfortunately, although is w