idreesshaikh / Autonomous-Driving-in-Carla-using-Deep-Reinforcement-Learning

Deep Reinforcement Learning (PPO) in Autonomous Driving (Carla) [from scratch]
MIT License
241 stars 49 forks source link

pygame.error: Unable to make GL context current #23

Open laolinde opened 3 months ago

laolinde commented 3 months ago

Thank you so much for your work.But when I run the code using the instruction python continuous_driver.py --exp-name=ppo --train=False, there is an error as follows.

Traceback (most recent call last):
File "/home/**/Autonomous-Driving-in-Carla-using-Deep-Reinforcement-Learning-main/simulation/sensors.py", line 63, in self.sensor.listen(lambda image: CameraSensorEnv._get_third_person_camera(weak_self, image)) File "/home//Autonomous-Driving-in-Carla-using-Deep-Reinforcement-Learning-main/simulation/sensors.py", line 87, in _get_third_person_camera pygame.display.flip() pygame.error: Unable to make GL context current

I would be very grateful if you can give me some tips!

Yandong-Luo commented 2 months ago

pip uninstall pygame pip install pygame==1.9.6