question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

undefined symbol: PyUnicode_AsUTF8String

See original GitHub issue

Hi Guys,

I am facing the below issue while running roslaunch carla_ros_bridge client.launch.

I have updated the PYTHONPATH as mentioned in the RlEADME and also I am getting success if I run python -c 'import carla;print("Success")'.

Traceback (most recent call last):
  File "/home/user/ros/catkin_ws_for_carla/src/src/carla_ros_bridge/client.py", line 14, in <module>
    import carla
  File "/home/kishor/Carla_Sim/PythonAPI/carla-0.9.2-py3.5-linux-x86_64.egg/carla/__init__.py", line 7, in <module>
    
  File "/home/kishor/Carla_Sim/PythonAPI/carla-0.9.2-py3.5-linux-x86_64.egg/carla/libcarla.py", line 7, in <module>
  File "/home/kishor/Carla_Sim/PythonAPI/carla-0.9.2-py3.5-linux-x86_64.egg/carla/libcarla.py", line 6, in __bootstrap__
ImportError: /home/kishor/.cache/Python-Eggs/carla-0.9.2-py3.5-linux-x86_64.egg-tmp/carla/libcarla.cpython-35m-x86_64-linux-gnu.so: undefined symbol: PyUnicode_AsUTF8String
[carla_ros_bridge-2] process has died [pid 23024, exit code 1, cmd /home/kishor/ros/catkin_ws_for_carla/src/src/carla_ros_bridge/client.py __name:=carla_ros_bridge __log:=/home/kishor/.ros/log/bf8f277e-1f0b-11e9-8882-e4b97a000225/carla_ros_bridge-2.log].
log file: /home/kishor/.ros/log/bf8f277e-1f0b-11e9-8882-e4b97a000225/carla_ros_bridge-2*.log

Previously I had faced the similar issue, I was able to fix and posted the fix here. But now I am not able to see the post.

Could you please help me to fix the issue.

Thank you, KK

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fabianoborilcommented, Jan 23, 2019

I am not sure, but isn’t ROS using Python2 by default? Try setting the PYTHONPATH to point to the egg file for Python 2.7. Does it help?

0reactions
revikiran1991commented, Feb 11, 2020

@fpasch Sorry. I did not realize I was posting in carla-ros-bridge support. Thank you for your patience.

Read more comments on GitHub >

github_iconTop Results From Across the Web

undefined symbol: PyUnicode_AsUTF8String #479 - GitHub
Hi, when I try to do import tensorflow I receive the following error: Traceback (most recent call last): File " ", line 1, ......
Read more >
Undefined symbol in libboost - c++ - Stack Overflow
In .so file I see the following symbol undefined @Ubuntu-1204-precise-64-minimal:/usr/local/lib$ nm libboost_python.so.1.57.0 | grep ...
Read more >
Bug #1531166 “undefined symbol: PyUnicode_AsUTF8String”
rapid-photo-downloader aborts start on openSuSE Tumbleweed with this message on the commandline: ImportError: /usr/lib64/libboost_python.so.1.59.0: ...
Read more >
682575 – yum update produces undefined symbol ...
Description of problem: yum update produces undefined symbol PyUnicodeUCS4_AsUTF8String Version-Release number of selected component (if ...
Read more >
FS#49715 : undefined symbol: PyUnicode_AsUTF8String
Description: When I am building network-manager-applet, it failed: CC libnm_gtk_la-nm-wifi-dialog.lo. CC libnm_gtk_la-nm-wireless-dialog.lo
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found