caipeide / drift_drl

High-speed Autonomous Drifting with Deep Reinforcement Learning
MIT License
112 stars 24 forks source link

pygame window doesn't open when launching the codes #9

Open NiccoBonucci opened 2 months ago

NiccoBonucci commented 2 months ago

Good afternoon, I'm having issues with the visualization of the pygame window; by following the steps (start the simulator with the "test_refined" map, then activating the environment and running the test.sh file) I only see the empty circuit and cannot see the car; this happens with all the codes I try, basically the code gets stuck after the "Hello from the pygame community" line, and the pygame window doesn't open. I also tried the other ways to start the simulator but i get the same problem, stuck after the pygame version used and "Hello from the pygame community". I'm sure the computer can handle the load because with the tutorial codes of standard CARLA the pygame window to drive the vehicle works. Am I missing something? Can someone help me to understand how to solve the issue? Thank you and have a good day.

NiccoBonucci commented 2 months ago

Good afternoon, I'm having issues with the visualization of the pygame window; by following the steps (start the simulator with the "test_refined" map, then activating the environment and running the test.sh file) I only see the empty circuit and cannot see the car; this happens with all the codes I try, basically the code gets stuck after the "Hello from the pygame community" line, and the pygame window doesn't open. I also tried the other ways to start the simulator but i get the same problem, stuck after the pygame version used and "Hello from the pygame community". I'm sure the computer can handle the load because with the tutorial codes of standard CARLA the pygame window to drive the vehicle works. Am I missing something? Can someone help me to understand how to solve the issue? Thank you and have a good day.

I think the main problem is that when I created the environment i had to exclude the pytorch and torchvision dependencies because the packages were not found, as shown here in the code:

$ conda env create -f environment_drift.yaml Collecting package metadata (repodata.json): done Solving environment: failed

ResolvePackageNotFound: