duckietown / gym-duckietown

Self-driving car simulator for the Duckietown universe
http://duckietown.org
Other
45 stars 16 forks source link

scripts.train_cnn.py ModuleNotFoundError #170

Closed plafer closed 5 years ago

plafer commented 5 years ago

From the python RL baseline, I ran python3 -m scripts.train_cnn.py --seed 123. After the simulation was done, I got the following error message:

INFO:gym-duckietown:Stopping the simulator because we are at an invalid pose. /home/plafer/anaconda3/envs/duckietown/bin/python3: Error while finding module specification for 'scripts.train_cnn.py' (ModuleNotFoundError: path attribute not found on 'scripts.train_cnn' while trying to find 'scripts.train_cnn.py')

I'm not sure if it's a known error or not; the file results/DDPG_123.npz was successfully created (as well as the other files duckietown_rl/ddpg.py and so on). However, it's confusing for the user; I'm left wondering if everything worked correctly.

bhairavmehta95 commented 5 years ago

I think this is an issue on the simulator side? I know its a bit late, but do you have any more of the error / stack trace?

bhairavmehta95 commented 5 years ago

Ah nvm, here it is: https://stackoverflow.com/questions/54160948/how-to-fix-the-path-attribute-not-found-error-for-packages-installed-by-pi

python3 -m scripts.train_cnn.py --seed 123 > python3 -m scripts.train_cnn --seed 123