Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The run_bridge.py file was not run successfully. #17

Open
Jay2Coomzz opened this issue Feb 3, 2021 · 3 comments
Open

The run_bridge.py file was not run successfully. #17

Jay2Coomzz opened this issue Feb 3, 2021 · 3 comments

Comments

@Jay2Coomzz
Copy link

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?

@wangzhensuo
Copy link

use python3

@Jay2Coomzz
Copy link
Author

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)

@marcusvinicius178
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants