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.
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.