Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code lines missing in Mountain_Car.py #72

Open
saketadhau opened this issue Jun 21, 2021 · 0 comments
Open

Code lines missing in Mountain_Car.py #72

saketadhau opened this issue Jun 21, 2021 · 0 comments

Comments

@saketadhau
Copy link

I tried to run the script from results/Mountain_Car.py, but I ran into an error,

Traceback (most recent call last):
  File "Mountain_Car.py", line 3, in <module>
    from agents.policy_gradient_agents.PPO import PPO
ModuleNotFoundError: No module named 'agents'

Fortunately, the problem can be solved by inserting the following lines

import sys
from os.path import dirname, abspath
sys.path.append(dirname(dirname(abspath(__file__))))

in the script Mountain_Car.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant