Closed i-kj closed 9 months ago
Solution: Ensure the correct .egg file is in the PYTHONPATH. In my case I had 0.9.13 .egg file in the PYTHONPATH as a part of my previous installation. Since I installed 0.9.14 now, whenever I run the API, it will pick up 0.9.13 .egg file as long as I either replace or append the PYTHONPATH with the new egg file. Since I also wanted 0.9.13 version, I chose append option.
Run the following command in the terminal to append:
_export PYTHONPATH=$PYTHONPATH:/path/to/carla/PythonAPI/carla/dist/carla-0.9.14-py3.8-linux-x8664.egg
If you want to replace a path:
export PYTHONPATH=/new/path
Please adjust the /path/to/carla/ to your actual CARLA path.
I built CARLA from source following the instructions on the official build page. However, when I run the generate_traffic.py script from the PythonAPI/examples directory, I encounter a version mismatch warning and a segmentation fault error:
My system is using Python 3.8.10, and the .egg file in PythonAPI/carla/dist is carla-0.9.14-py3.8-linux-x86_64.egg. The script generate_traffic.py accesses the .egg file as follows:
Any assistance in resolving these issues would be greatly appreciated!