Hi,
While writing our own setup script to spawn cars and pedestrians in the simulator, we encountered this issue when trying to import the SpawnActor, or any module under carla.command
Our setup script is based on the /carla/PythonAPI/examples/generate_traffic.py one.
Any suggestion?
CARLA version: 0.9.14
Platform/OS: Ubuntu 20.04
Problem you have experienced: ModuleNotFoundError: No module named 'carla.libcarla.command'
What you expected to happen: to import the module
Steps to reproduce:
Install carla python from pypi: and try to import a command
pip3 install carla==0.9.14
python3
> from carla.command import SpawnActor
File "/root/utils/prepare-world.py", line 8, in <module>
from carla.command import SpawnActor, SetAutopilot, FutureActor
File "/usr/local/lib/python3.8/dist-packages/carla/command.py", line 8, in <module>
from .libcarla.command import *
ModuleNotFoundError: No module named 'carla.libcarla.command'