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

ScenarioRunner environment variables and Python paths for Carla in Docker Container #1030

Open
jakobfrosch opened this issue Nov 14, 2023 · 4 comments

Comments

@jakobfrosch
Copy link

Describe our question or idea
I want to run Carla Scenario Runner with an Apollo Carla bridge in which it is necessary that Carla runs in a Docker container. Now I still want to run Scenario Runner and am (probably) failing to set the environment variables.
According to the instructions, the variables should be initialized as follows:

export CARLA_ROOT=/path/to/your/carla/installation
export SCENARIO_RUNNER_ROOT=/path/to/your/scenario/runner/installation
export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/carla/dist/carla-<VERSION>.egg
export PYTHONPATH=$PYTHONPATH:${CARLA_ROOT}/PythonAPI/carla

The question, however, is what is the /path/to/your/carla/installation when it runs in the Docker container?
In the running Carla container it is /home/carla.
Expected behavior
Scenario runner runs after executing python3.7 scenario_runner.py --scenario FollowLeadingVehicle_1 --reloadWorld

Current error:
AttributeError: module 'tensorflow' has no attribute 'contrib'

Desktop (please complete the following information):

  • OS: Ubuntu 22.04.2 LTS
  • CARLA Version: CARLA 0.9.14
  • Python version: 3.7
  • Version: 0.9.13
@romanmatus
Copy link

Hi, did you figure out ?

@whatgit
Copy link

whatgit commented Mar 25, 2024

Same problem here

@lei3li
Copy link

lei3li commented Apr 17, 2024

same problem here, did anyone find the solution?

@Enginerd0
Copy link

i also have this issue

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

5 participants