scenario_runner icon indicating copy to clipboard operation
scenario_runner copied to clipboard

ScenarioRunner environment variables and Python paths for Carla in Docker Container

Open jakobfrosch opened this issue 1 year ago • 4 comments

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

jakobfrosch avatar Nov 14 '23 20:11 jakobfrosch

Hi, did you figure out ?

romanmatus avatar Mar 05 '24 14:03 romanmatus

Same problem here

whatgit avatar Mar 25 '24 14:03 whatgit

same problem here, did anyone find the solution?

lei3li avatar Apr 17 '24 07:04 lei3li

i also have this issue

Enginerd0 avatar Jul 04 '24 00:07 Enginerd0