I received an OSError error report when I just finished running the ql_single-intersection.py experiment. I really have no idea about how to deal with it. Here are the details of the error.
Step #0.00 (0ms ?RT. ?UPS, TraCI: 6ms, vehicles TOT 0 ACT 0 BUF 0)
Step #100000.00Traceback (most recent call last):cles TOT 70054 ACT 25 BUF 0)
File "experiments/ql_single-intersection.py", line 87, in
env.save_csv(out_csv, run)
File "D:\Anaconda\envs\tf_gpu\lib\site-packages\sumo_rl\environment\env.py", line 473, in save_csv
df.to_csv(out_csv_name + f"_conn{self.label}_ep{episode}" + ".csv", index=False)
File "D:\Anaconda\envs\tf_gpu\lib\site-packages\pandas\core\generic.py", line 3482, in to_csv
storage_options=storage_options,
File "D:\Anaconda\envs\tf_gpu\lib\site-packages\pandas\io\formats\format.py", line 1105, in to_csv
csv_formatter.save()
File "D:\Anaconda\envs\tf_gpu\lib\site-packages\pandas\io\formats\csvs.py", line 243, in save
storage_options=self.storage_options,
File "D:\Anaconda\envs\tf_gpu\lib\site-packages\pandas\io\common.py", line 707, in get_handle
newline="",
OSError: [Errno 22] Invalid argument: 'outputs/single-intersection/2023-08-16 20:31:41_alpha0.1_gamma0.99_eps0.05_decay1.0_conn0_ep1.csv'
(1ms ~= 1000.00RT, ~21000.00UPS, TraCI: 99ms, vehicles TOT 70117 ACT 21 BU
Hi,
This looks like a Windows-related problem regarding the name of the .csv file. Change the script so that the name of the file is Windows-compatible.
I received an OSError error report when I just finished running the ql_single-intersection.py experiment. I really have no idea about how to deal with it. Here are the details of the error.
Step #0.00 (0ms ?RT. ?UPS, TraCI: 6ms, vehicles TOT 0 ACT 0 BUF 0) Step #100000.00Traceback (most recent call last):cles TOT 70054 ACT 25 BUF 0) File "experiments/ql_single-intersection.py", line 87, in
env.save_csv(out_csv, run)
File "D:\Anaconda\envs\tf_gpu\lib\site-packages\sumo_rl\environment\env.py", line 473, in save_csv
df.to_csv(out_csv_name + f"_conn{self.label}_ep{episode}" + ".csv", index=False)
File "D:\Anaconda\envs\tf_gpu\lib\site-packages\pandas\core\generic.py", line 3482, in to_csv
storage_options=storage_options,
File "D:\Anaconda\envs\tf_gpu\lib\site-packages\pandas\io\formats\format.py", line 1105, in to_csv
csv_formatter.save()
File "D:\Anaconda\envs\tf_gpu\lib\site-packages\pandas\io\formats\csvs.py", line 243, in save
storage_options=self.storage_options,
File "D:\Anaconda\envs\tf_gpu\lib\site-packages\pandas\io\common.py", line 707, in get_handle
newline="",
OSError: [Errno 22] Invalid argument: 'outputs/single-intersection/2023-08-16 20:31:41_alpha0.1_gamma0.99_eps0.05_decay1.0_conn0_ep1.csv'
(1ms ~= 1000.00 RT, ~21000.00UPS, TraCI: 99ms, vehicles TOT 70117 ACT 21 BU