Open Daraan opened 5 months ago
Hi, it would be interesting to know if the same problem appears if you install the Carla package with pip.
pip install $CARLA_ROOT/PythonAPI/carla/dist/carla-0.9.15-cp310-cp310-linux-x86_64.whl
or
path/to/python -m pip install $CARLA_ROOT/PythonAPI/carla/dist/carla-0.9.15-cp310-cp310-linux-x86_64.whl
Thank you for the reply. I realized some things:
yes installing the wheel file and verified that it access not the egg file throws the same error
I made a new conda python3.10 envionment, installed the wheel and pygame: same error
I used a different environment, which uses the same egg file, no error
Below are the pip freeze outputs
.
Again two different observations
I tested it with the pip package and it worked. After testing it with a .whl file, I got the same error message, but the order of carla/pygame didn't matter.
Try this commands
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install --only-upgrade libstdc++6
For me it worked after upgrading this package
I am using the current
dev
version of the simulator and the PythonAPI with Python 3.10Since a few weeks I sometimes run into the error:
Code to reproduce(?) with python 3.10
Important: Add the carla.egg to the
PYTHONPATH
I could not reproduce this with the Python 3.7 egg file.
Temporary Solution:
Carla needs to be imported before pygame.