Closed josemanuelsannav closed 7 months ago
Im trying now to follow this tips from an older issues : https://github.com/cityflow-project/CityFlow/issues/52. First I'im in : /mnt/c/Users/josem/gym-cityflow/gym_cityflow/envs I write in my python3 : **>>> import cityflow
eng = cityflow.Engine("cosas/config.json")**
but the error persists : cannot open roadnet file loading roadnet file error! load config failed!
This is my config.json : { "interval": 1.0, "seed": 1, "dir": "C:/Users/josem/gym-cityflow/gym_cityflow/envs/cosas/", "roadnetFile": "1x1_roadnet.json", "flowFile": "1x1_flow.json", "rlTrafficLight": true, "laneChange": false, "saveReplay": false, "roadnetLogFile": "replay_roadnet.json", "replayLogFile": "replay.txt" }
Hi im a college student and I'm doing a project about CityFlow. I installed all using the visualstudio's terminal with WSL . Im trying to create an engine but in this step : eng = cityflow.Engine(config_path, thread_num=1) i have an error.
I write : eng = cityflow.Engine("examples/config.json", thread_num=1) And give me the error : cannot open roadnet file loading roadnet file error! load config failed! The config.json is this : { "interval": 0.5, "seed": 2, "dir": ".", "roadnetFile": "examples/roadnet.json", "flowFile": "examples/flow.json", "rlTrafficLight": true, "laneChange": false, "saveReplay": false, "roadnetLogFile": "replay_roadnet.json", "replayLogFile": "replay.txt" }
I hope someone can help me.