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.
MIT License
405 stars 146 forks source link

the problem of executing "training_main.py" file #15

Open bjyxsz opened 4 years ago

bjyxsz commented 4 years ago

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?

AndreaVidali commented 4 years ago

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

liqingyang665 commented 1 year ago

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?

burakseyitkara commented 1 year ago

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?

yasminedaly commented 9 months ago

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