Closed kimchuan-utem closed 2 years ago
This should be fixed in https://github.com/mschrader15/reinforcement-learning-sumo/commit/c1cf08ca9a1f62cc22c4d00110f4d95e36cb2afb
Sorry for the bugs. I haven't actively used this in ~ a year
(app39-dev) ubuntu@ubuntu-H8QG6:/media/ubuntu/diskB/reinforcement-learning-sumo$ python train.py
Traceback (most recent call last):
File "/media/ubuntu/diskB/reinforcement-learning-sumo/train.py", line 64, in
do i need to provide input arguments to begin the training?
Yes you do. An example is in the example
folder.
You can run it with python train.py --config_path example/setting-files/ES_4_25.json
(app39-dev) ubuntu@ubuntu-H8QG6:/media/ubuntu/diskB/reinforcement-learning-sumo$ python train.py --config_path example/setting-files/ES_4_25.json
Traceback (most recent call last): File "/media/ubuntu/diskB/reinforcement-learning-sumo/trainers/training_functions.py", line 90, in run_rllib_es from ray.rllib.agents.agent import get_agent_class ModuleNotFoundError: No module named 'ray.rllib.agents.agent'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/media/ubuntu/diskB/reinforcement-learning-sumo/train.py", line 64, in
which version of ray do you have installed?
(app39-dev) ubuntu@ubuntu-H8QG6:/media/ubuntu/diskB/reinforcement-learning-sumo$ pip show ray Name: ray Version: 1.13.0 Summary: Ray provides a simple, universal API for building distributed applications. Home-page: https://github.com/ray-project/ray Author: Ray Team Author-email: ray-dev@googlegroups.com License: Apache 2.0 Location: /home/ubuntu/.pyenv/versions/3.9-dev/envs/app39-dev/lib/python3.9/site-packages Requires: aiosignal, attrs, click, filelock, frozenlist, grpcio, jsonschema, msgpack, numpy, protobuf, pyyaml, requests, virtualenv Required-by:
Ok. You need to have ray<=1.12.0 installed. Ray made large updates to their codebase in 1.13.0.
You are also welcome to find the equivalent function in 1.13.0 and make a PR!
(app39-dev) ubuntu@ubuntu-H8QG6:/media/ubuntu/diskB/reinforcement-learning-sumo$ python train.py
Traceback (most recent call last): File "/media/ubuntu/diskB/reinforcement-learning-sumo/train.py", line 7, in
from rl_sumo.helpers.preprocessing import execute_preprocessing_tasks
File "/media/ubuntu/diskB/reinforcement-learning-sumo/rl_sumo/helpers/preprocessing.py", line 2, in
import json5 as json
ModuleNotFoundError: No module named 'json5'
(app39-dev) ubuntu@ubuntu-H8QG6:/media/ubuntu/diskB/reinforcement-learning-sumo$ pip install json5
Collecting json5
Downloading json5-0.9.8.tar.gz (22 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: json5
Building wheel for json5 (setup.py) ... done
Created wheel for json5: filename=json5-0.9.8-py2.py3-none-any.whl size=18604 sha256=f121186c35cfd4acedd7579d7a17e6d0c4433f4dd724e99f4307f500dc3e15af
Stored in directory: /home/ubuntu/.cache/pip/wheels/33/13/22/d6429949983cbc014ae883a13af8b3ce949adcc4cf9196a4b9
Successfully built json5
Installing collected packages: json5
Successfully installed json5-0.9.8
(app39-dev) ubuntu@ubuntu-H8QG6:/media/ubuntu/diskB/reinforcement-learning-sumo$ python train.py
Traceback (most recent call last): File "/media/ubuntu/diskB/reinforcement-learning-sumo/train.py", line 8, in
from rl_sumo.helpers.utils import get_parameters
ImportError: cannot import name 'get_parameters' from 'rl_sumo.helpers.utils' (/media/ubuntu/diskB/reinforcement-learning-sumo/rl_sumo/helpers/utils.py)