carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.29k stars 3.65k forks source link

Carla crashes when running python scripts : python3 manual_control.py #7953

Open shraddha-git-tech opened 3 months ago

shraddha-git-tech commented 3 months ago

CARLA version: 9.15 Platform/OS: Ubuntu 20.04.6 LTS Problem you have experienced: Carla crashes after running python3 manual_control.py and other python scripts inside PythonAPI/Examples Error appeared: ValueError: sticky_control: invalid value type Screenshot: image

What you expected to happen: It should launch successfully.

Steps to reproduce:

  1. Launch : ./CarlaUE4.sh
  2. From PythonAPI/examples, Launch manual_control.py
Jinviz commented 3 months ago

Try changing the default value of --generation to 3 at line 1330 of the manual_control.py !

image

donghaiwang commented 2 months ago

When the Python client is the dev branch and the server is the 0.9.15 release, I encountered a similar issue. If both the server and client are the latest dev branches, there is no such problem. Platform/OS: Windows 10

gitwld commented 2 weeks ago

I faced the same problem and I solved it by: As you can see, your Client API version (0.9.15-......) is different with Simulator API version (0.9.15). This is may because you have installed another Carla Python Client API before. So you can just create a new Python virtual env and: pip install pygame numpy cd PythonAPI/carla/dist/ pip install carla-0.9.15-cp37-cp37m-manylinux_2_27_x86_64.whl (maybe your filename is different)