欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ubuntu carla/libcarla.so: undefined symbol: _PyThreadState_Current

程序员文章站 2022-05-26 23:42:09
...

问题描述

Traceback (most recent call last):
  File "/opt/carla-ros-bridge/melodic/lib/carla_ros_bridge/bridge.py", line 24, in <module>
    import carla
  File "<frozen zipimport>", line 259, in load_module
  File "/home/u123/CARLA_0.9.9/PythonAPI/carla/dist/carla-0.9.9-py2.7-linux-x86_64.egg/carla/__init__.py", line 8, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/home/u123/CARLA_0.9.9/PythonAPI/carla/dist/carla-0.9.9-py2.7-linux-x86_64.egg/carla/libcarla.py", line 7, in <module>
  File "/home/u123/CARLA_0.9.9/PythonAPI/carla/dist/carla-0.9.9-py2.7-linux-x86_64.egg/carla/libcarla.py", line 6, in __bootstrap__
  File "/home/u123/anaconda3/lib/python3.8/imp.py", line 342, in load_dynamic
    return _load(spec)
ImportError: /home/u123/.cache/Python-Eggs/carla-0.9.9-py2.7-linux-x86_64.egg-tmp/carla/libcarla.so: undefined symbol: _PyThreadState_Current

百度半天没找到问题怎么解决,甚至找不到类似得问题
随后仔细一看,发现是anconda的问题
可以看到执行python的路径大部分都是py2.7
但是到最后一个突然跳到3.8
ubuntu carla/libcarla.so: undefined symbol: _PyThreadState_Current然后3.8前面还有一个anconda3
呵呵

conda deactivate

走你