New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_rclpy_pybind11.cpython-310-x86_64-linux-gnu.so failed to be imported while being present on the system #1144
Comments
What is the output of |
|
Ah, I didn't read closely enough, this is likely the culprit:
Do you have |
Further, what does your environment look like?
|
I have
Env when using the binary installation:
|
|
I'm not seeing anything obvious. Can you also run |
|
The issue persists after upgrading ros-humble apt package to |
I'm pretty stumped here. I suppose as a next step, you could look at each of the dependent shared libraries and make sure that they can correctly resolve their dependencies via |
I'm interested in this issue because it's almost impossible as the Could you run the command |
@iuhilnehc-ynos Here's the strace of python3 importing rclpy: |
According to Please revert it with |
@iuhilnehc-ynos Thanks for the suggestion but I haven't set the setuid bit..
|
Wow, so there are other cases can make the __libc_enable_secure get true and then call Besides the manually setting suid for the @squizz617 Could you show the mount options for the device? |
I also have the same problem, for me the command import rclpy was not working in pycharm and after some messing around I found that we need to add the interpreter paths in pycharm. after that I ended up this error and by following this beautiful thread, Im looking for a way forward. but when I run the code with just the python command PS: I was following a udemy tutorial on ROS2 |
@DRAGON-BOOSTERR May you elaborate on how you solved the problem? I'm having the same problem too 😭 |
@chenyenru yeah here is the stackover flow page that I raised the issue and answered myself |
Thank you! I was able to solve it by deactivating my anaconda environment (don't know why but that way my Python interpreter finds |
@chenyenru @squizz617 Hey guys I think i found a short term fix for this issue! As said before I was having problems with IDEs not recognising the |
I was able to include extra paths in the However, when I tried to compile it on the IDE, it still showed that |
I got the exact issue reported by OP. |
I could resolve this problem by removing all packages of using ros2 distribution and install again. sudo apt remove ros-rolling-*
sudo apt install ros-rolling-desktop-full |
According to this, |
I had a same problem. These two lines are helped me out: Also, on your .bashrc file try to source ros directory at the end after all lines. |
I finally managed to solve the problem and wrote a blog post about it in Korean. https://du-sungchan-24k.tistory.com/37 In summary, you need to directly inject this into your pycharm.sh script. . /opt/ros/humble/setup.sh' '/home/{USER_NAME}/.local/share/JetBrains/Toolbox/apps/{pycharm_version}/bin/pycharm.sh'. '/home/{USER_NAME}/.cache/JetBrains/RemoteDev/dist/{cached_pycharm_version}/bin/pycharm.sh'. |
I am having a similar error. I faced with same error on Fedora 39 and Ubuntu 24.04 Noble |
Bug report
Required Info:
ros-humble-rclpy/jammy,now 3.3.8-2jammy.20230623.051015 amd64 [installed,automatic]
76212669
rclpy
Steps to reproduce issue
Expected behavior
rclpy
successfully imported.Actual behavior
Import failure.
Additional information
I'm not sure what's causing this issue. A ROS 2 scripts on my machine that worked before suddenly stopped working, and it turned out to be a import failure. Also, the trobleshooting guide in the error message seems to be only for Windows.
Thank you.
The text was updated successfully, but these errors were encountered: