You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd ~/carla_apollo_bridge
python examples/run_bridge.py
Should I use Python 2?
However, the following error occurs:
(1)ImportError: No module named carla
(2)If I installed carla through pip,the following error also occurs:
free(): invalid pointer
Aborted (core dumped)
How should I solve it?
The text was updated successfully, but these errors were encountered:
use python3
If I use Python 3, it will lack a lot of dependencies. If the dependency is installed, it also causes the following error:
ImportError: dynamic module does not define module export function (PyInit__cyber_init)
Hi @Jay2Coomzz probably you are facing the same issue I have experienced. To solve this you need to follow this:
In USAGE section a pyton error will occur in carla-apollo container, when trying to run the scripts. To solve this, I used the approach from here: carla-simulator/carla#1466 . It will help:
• locate .egg-files in carla_apollo_bridge/carla-python0.9.6/carla/dist/
• change/install python version in conda enviroment which fits closest to an .egg-file (for me carla-0.9.6-py3.5-linux-x86_64.egg -> 3.5)
• delete all other .egg-files (just for tidiness)
• extract your .egg-file, e.g. carla-0.9.6-py3.5-linux-x86_64
• create setup.py inside the folder (carla-0.9.6-py3.5-linux-x86_64) with the following content:
from distutils.core import setup
setup(name='carla',
version='0.9.6', #doesn't matter I guess
py_modules=['carla'],
)
• then you can install the carla-python-package via pip:
pip install -e ~/carla_apollo_bridge/carla-python-0.9.6/carla/dist/carla-0.9.6-py3.5-linux-x86_64
That solved it for me. I don't even need the egg-path-appending-stuff, w
run in carla-apollo container:
cd ~/carla_apollo_bridge
python examples/run_bridge.py
Should I use Python 2?
However, the following error occurs:
(1)ImportError: No module named carla
(2)If I installed carla through pip,the following error also occurs:
free(): invalid pointer
Aborted (core dumped)
How should I solve it?
The text was updated successfully, but these errors were encountered: