carla-simulator / scenario_runner

Traffic scenario definition and execution engine
https://carla-scenariorunner.readthedocs.io/en/latest/
MIT License
500 stars 353 forks source link

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

Open jakobfrosch opened 7 months ago

jakobfrosch commented 7 months ago

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):

romanmatus commented 4 months ago

Hi, did you figure out ?

whatgit commented 3 months ago

Same problem here

lei3li commented 2 months ago

same problem here, did anyone find the solution?

Enginerd0 commented 4 days ago

i also have this issue