bmetrafficlab / EGO-centric-SUMO

EGO-centric multi-scale co-simulation with SUMO
MIT License
2 stars 0 forks source link

enquiry about libsumo importError #1

Open cherryh2021 opened 4 months ago

cherryh2021 commented 4 months ago

I create a virtual environment of 3.9 and install the packages in the requirement. When I run simulate_town_cosim.py, it says:

Traceback (most recent call last): File "d:\research\Macro_and_micro_co-simulation\EGO-centric-SUMO-main\EGO-centric-SUMO-main\simulate_town_cosim.py", line 5, in from libsumo_parallel import * File "d:\research\Macro_and_micro_co-simulation\EGO-centric-SUMO-main\EGO-centric-SUMO-main\libsumo_parallel.py", line 8, in import libsumo File "E:\SUMO\tools\libsumo__init__.py", line 30, in from .libsumo import vehicle, simulation, person, trafficlight # noqa File "E:\SUMO\tools\libsumo\libsumo.py", line 13, in from . import _libsumo ImportError: DLL load failed while importing _libsumo: The specified module could not be found.

How can this be fixed? Thank you.

bva-bme commented 3 months ago

Dear Xingyi He,

Depending on your operating system, you might have to take some additional steps to make it work. Please see https://sumo.dlr.de/docs/Libsumo.html#building_and_installing_it

BR, Balázs Varga