wingsweihua / IntelliLight

IntelliLight: A Reinforcement Learning Approach for Intelligent Traffic Light Control

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raise errors like "Cannot find TraCI"

wingsweihua opened this issue · comments

For Errors like

ImportError: No module named traci

The problem is about the path to TraCI module. Please make sure you've successfully installed SUMO and TraCI module.

I suggest you can do the following:

  1. Clone the latest code, where we have updated tips in README.md and codes for compatibility checking.

  2. Following the tips in README.md, specify the location of TraCI module.

For a quickest fix, you can download the source code of SUMO from https://github.com/eclipse/sumo, use its location ./tools/traci/ as the TraCI module path.

If you need detailed instruction about how to run SUMO (or import traci), you can refer to the introduction of SUMO, which can be found at: http://personal.psu.edu/hzw77/posts.html#sumo-introduction.