AndreaVidali / Deep-QLearning-Agent-for-Traffic-Signal-Control

A framework where a deep Q-Learning Reinforcement Learning agent tries to choose the correct traffic light phase at an intersection to maximize traffic efficiency.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the problem of executing "training_main.py" file

bjyxsz opened this issue · comments

Hi, I am a beginner in deep-QLearing, I have installed the tensorflow successfully. when i input "python training_main.py", there is an error of "python: can't open file 'training_main.py': [Errno 2] No such file or directory". and then i input the full path of training_main.py, the feedback is shown as follows:
File "D:\mygit_repository\Deep-QLearning-Agent-for-Traffic-Signal-Control-master\TLCS\training_main.py", line 18, in
config = import_train_configuration(config_file='training_settings.ini')
File "D:\mygit_repository\Deep-QLearning-Agent-for-Traffic-Signal-Control-master\TLCS\utils.py", line 14, in import_train_configuration
config['gui'] = content['simulation'].getboolean('gui')
File "D:\anaconda\envs\tf_gpu\lib\configparser.py", line 958, in getitem
raise KeyError(key)
KeyError: 'simulation'

i do not know how to do with it, could you help me?

I think that the your current working directory does not match the project directory. You can discover your current working directory using this

commented

Hi, I am a beginner in deep-QLearing, I have installed the tensorflow successfully. when i input "python training_main.py", there is an error of "python: can't open file 'training_main.py': [Errno 2] No such file or directory". and then i input the full path of training_main.py, the feedback is shown as follows: File "D:\mygit_repository\Deep-QLearning-Agent-for-Traffic-Signal-Control-master\TLCS\training_main.py", line 18, in config = import_train_configuration(config_file='training_settings.ini') File "D:\mygit_repository\Deep-QLearning-Agent-for-Traffic-Signal-Control-master\TLCS\utils.py", line 14, in import_train_configuration config['gui'] = content['simulation'].getboolean('gui') File "D:\anaconda\envs\tf_gpu\lib\configparser.py", line 958, in getitem raise KeyError(key) KeyError: 'simulation' i do not know how to do with it, could you help me?

Hello, I have the same problem: KeyError: 'simulation'
Did you fix it? Could you please help me?

Hi, I am a beginner in deep-QLearing, I have installed the tensorflow successfully. when i input "python training_main.py", there is an error of "python: can't open file 'training_main.py': [Errno 2] No such file or directory". and then i input the full path of training_main.py, the feedback is shown as follows: File "D:\mygit_repository\Deep-QLearning-Agent-for-Traffic-Signal-Control-master\TLCS\training_main.py", line 18, in config = import_train_configuration(config_file='training_settings.ini') File "D:\mygit_repository\Deep-QLearning-Agent-for-Traffic-Signal-Control-master\TLCS\utils.py", line 14, in import_train_configuration config['gui'] = content['simulation'].getboolean('gui') File "D:\anaconda\envs\tf_gpu\lib\configparser.py", line 958, in getitem raise KeyError(key) KeyError: 'simulation' i do not know how to do with it, could you help me?

Hello, I have the same problem: KeyError: 'simulation' Did you fix it? Could you please help me?

same problem? no one is here?

To solver the issue:

Run the file from the directory TLCS not Deep-QLearning-Agent-for-Traffic-Signal-Control

Deep-QLearning-Agent-for-Traffic-Signal-Control> cd TLCS
Deep-QLearning-Agent-for-Traffic-Signal-Control\TLCS> python training_main.py