ugo-nama-kun / gym_torcs

MIT License
409 stars 163 forks source link

can I just use "pip install torcs"? #46

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 in https://github.com/yanpanlau/DDPG-Keras-Torcs , 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 in https://github.com/yanpanlau/DDPG-Keras-Torcs , 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.

sjtuytc commented 4 years ago

I did the same as you. It doesn't work.

sjtuytc commented 4 years ago

One can refer to https://github.com/fmirus/torcs-1.3.7 for detailed installation guide.