yanpanlau / DDPG-Keras-Torcs

Using Keras and Deep Deterministic Policy Gradient to play TORCS
717 stars 267 forks source link

Can I just use "pip install torcs"? #30

Open Hanzy1996 opened 6 years ago

Hanzy1996 commented 6 years ago

I failed to install libglu1-mesa-dev,so I just use "pip install torcs". But it seems that many problem occur. When I run snakeoil3_gym.py,it look like this and always relauch. /usr/bin/python2.7 /home/hanzy/software/gym_torcs-master/snakeoil3_gym.py Waiting for server on 3101............ Count Down : 5 Waiting for server on 3101............ Count Down : 4 Waiting for server on 3101............ Count Down : 3 Waiting for server on 3101............ Count Down : 2 Waiting for server on 3101............ Count Down : 1 Waiting for server on 3101............ Count Down : 0 Waiting for server on 3101............ Count Down : -1 relaunch torcs Waiting for server on 3101............ Count Down : 4 Waiting for server on 3101............ Count Down : 3 Waiting for server on 3101............ Count Down : 2 Waiting for server on 3101............ Count Down : 1 Waiting for server on 3101............ Count Down : 0 Waiting for server on 3101............ Count Down : -1 relaunch torcs Waiting for server on 3101............

When I run ddpg.py ,an error below happen. /usr/bin/python2.7 /home/hanzy/software/gym_torcs-master/ddpg.py Using TensorFlow backend. Traceback (most recent call last): File "/home/hanzy/software/gym_torcs-master/ddpg.py", line 10, in from keras.engine.training import collect_trainable_weights ImportError: cannot import name collect_trainable_weights

Process finished with exit code 1

WHY!!!

Hanzy1996 commented 6 years ago

What does relaunch mean?

Hanzy1996 commented 6 years ago

I lower the version of tensorflow and keras,the program works.But still always relaunch.

lihaoly commented 6 years ago

I have the same problem, and I don't think I am the only one. Any suggestions???

moneypi commented 5 years ago

You must install vtorcs-RL-color. https://github.com/ugo-nama-kun/gym_torcs/tree/master/vtorcs-RL-color