carla-apollo icon indicating copy to clipboard operation
carla-apollo copied to clipboard

Error when running bridge.py inside container. "ImportError: No module named carla_bridge.carla_proto.proto.carla_geometry_pb2"

Open angelomorgado opened this issue 2 years ago • 0 comments

i followed the README tutorial, however an error popped up as mentioned in the title.

This is the steps i followed: (With the container fully configured)

# I entered the container's bash
docker exec -ti carla-cyber bash

# Changed the IP for the correct one
root@89c641962cdc:/apollo# vim /apollo/cyber/setup.bash
root@89c641962cdc:/apollo# source ~/.bashrc

# Went to the correct dir and ran the bridge.py
root@89c641962cdc:/apollo# cd /apollo/cyber/carla_bridge
root@89c641962cdc:/apollo/cyber/carla_bridge# python carla_cyber_bridge/bridge.py
WARNING: Logging before InitGoogleLogging() is written to STDERR
I1116 11:58:50.405441    48 cyber_time_wrap.cc:338] [] init _cyber_time
I1116 11:58:50.432199    48 cyber_timer_wrap.cc:164] [] init _cyber_timer
I1116 11:58:50.460456    48 cyber_parameter_wrap.cc:639] [] init _cyber_parameter
Traceback (most recent call last):
  File "carla_cyber_bridge/bridge.py", line 34, in <module>
    from carla_cyber_bridge.actor import Actor
  File "/apollo/cyber/carla_bridge/carla_cyber_bridge/actor.py", line 13, in <module>
    import carla_common.transforms as trans
  File "/apollo/cyber/carla_bridge/carla_common/transforms.py", line 25, in <module>
    from cyber.carla_bridge.carla_proto.proto.carla_geometry_pb2 import Twist, Accel
ImportError: No module named carla_bridge.carla_proto.proto.carla_geometry_pb2

Has this happened to anyone else?

angelomorgado avatar Nov 16 '23 12:11 angelomorgado