DaRL-LibSignal / LibSignal

107 stars 21 forks source link

SUMO Execution Issue: Encountering KeyError - 'sumo' #13

Closed burakseyitkara closed 11 months ago

burakseyitkara commented 11 months ago

Hello,

I am attempting to run the latest version of the LibSignal project, and while I can successfully execute the code with CityFlow, I am encountering issues when attempting to run it with SUMO. Specifically, when I execute the following command:

python3 run.py -w sumo -n sumo1x1

I receive the following error: File "/home/burak/LibSignal/trainer/tsc_trainer.py", line 62, in create_world self.world = Registry.mapping['world_mapping'][Registry.mapping['command_mapping']['setting'].param['world']]( KeyError: 'sumo'

Do you have any suggestions for resolving this error? Additionally, I am running this on Ubuntu within a WSL (Windows Subsystem for Linux) environment.

Thank you.

Ekran görüntüsü 2023-09-21 120348

derekmei233 commented 11 months ago

Hi Burak, which branch are you currently working on? We have a tutorial branch which is the latest version and will be released soon. If the previous version you are working on is not this, could you have a try on this?

burakseyitkara commented 11 months ago

Hello Derek,

I wanted to update this thread to let you know that I have resolved the issue I was facing. The KeyError with the message 'sumo' was successfully fixed.

Thank you for your assistance.

Best regards.