PathmindAI / nativerl

Train reinforcement learning agents using AnyLogic or Python-based simulations
Apache License 2.0
19 stars 4 forks source link

Errors in test_training - No module named 'pathmind_training' #445

Closed slinlee closed 2 years ago

slinlee commented 2 years ago

It worked locally for me for a while, but right now I get this error for almost all the tests in test_training.py Error:

--------------------------------------------------------------------------------------- Captured stderr call ---------------------------------------------------------------------------------------
2021-10-16 06:41:28,957 INFO services.py:1269 -- View the Ray dashboard at http://127.0.0.1:8265
2021-10-16 06:41:37,121 ERROR trial_runner.py:732 -- Trial PPO_Knapsack-v0_c53bd_00000: Error processing event.
Traceback (most recent call last):
  File "/Users/slin/.pyenv/versions/3.7.11/envs/nativerl/lib/python3.7/site-packages/ray/tune/trial_runner.py", line 702, in _process_trial
    results = self.trial_executor.fetch_result(trial)
  File "/Users/slin/.pyenv/versions/3.7.11/envs/nativerl/lib/python3.7/site-packages/ray/tune/ray_trial_executor.py", line 686, in fetch_result
    result = ray.get(trial_future[0], timeout=DEFAULT_GET_TIMEOUT)
  File "/Users/slin/.pyenv/versions/3.7.11/envs/nativerl/lib/python3.7/site-packages/ray/_private/client_mode_hook.py", line 47, in wrapper
    return func(*args, **kwargs)
  File "/Users/slin/.pyenv/versions/3.7.11/envs/nativerl/lib/python3.7/site-packages/ray/worker.py", line 1483, in get
    raise value
ray.exceptions.RayActorError: The actor died because of an error raised in its creation task, ray::PPO.__init__() (pid=78108, ip=192.168.1.101)
  File "python/ray/_raylet.pyx", line 458, in ray._raylet.execute_task
  File "python/ray/_raylet.pyx", line 479, in ray._raylet.execute_task
  File "python/ray/_raylet.pyx", line 349, in ray._raylet.raise_if_dependency_failed
ray.exceptions.RaySystemError: System error: No module named 'pathmind_training'
slinlee commented 2 years ago

dumb mistake on my part.ran the command in the wrong dir.