You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've built a venv in Poetry using python 3.10. The pyproject.toml is pasted below. Using a venv not with poetry the script runs totally fine. We have to use poetry because it's required for a different aspect of our project.
When I attempt to run poetry run python test.py I get this error:
Traceback (most recent call last):
File "/home/jetson/Desktop/Team24/test.py", line 4, in <module>
import pyrealsense2 as rs # Intel RealSense cross-platform open-source API
File "/home/jetson/.cache/pypoetry/virtualenvs/team24-BRnwo3QM-py3.10/lib/python3.10/site-packages/pyrealsense2/__init__.py", line 2, in <module>
from .pyrealsense2 import *
ImportError: /usr/lib/aarch64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/jetson/.cache/pypoetry/virtualenvs/team24-BRnwo3QM-py3.10/lib/python3.10/site-packages/pyrealsense2/pyrealsense2.cpython-310-aarch64-linux-gnu.so)
I've tried to update the GLIBCXX to be 3.4.30 but every time I do and I check with strings /usr/lib/aarch64-linux-gnu/libstdc++.so.6 | grep GLIBCXX it only goes up to GLIBCXX_3.4.28 followed by a debug file.
Has anybody else dealt with this issue? I can't seem to figure out why it runs in a separate venv but not in poetry venv. The venv uses python3.8.10 but some of the other packages need a newer version. Anybody have thoughts?
The text was updated successfully, but these errors were encountered:
Hi @cmrooney135 There is very little information available regarding using pyrealsense2 with poetry, unfortunately.
A case from June 2024 at #12811 (comment) took the approach of installing pyrealsense2 and poetry version 1.7.1 within a Docker container, though they installed on a Raspberry Pi board instead of a Jetson.
Researching non-RealSense cases that produced the ``GLIBCXX_3.4.30' not found` error, some people received the message if their computer had a problem with a component called libstdc++6.
An approach that worked for one user was to update libstdc++6 with the commands below.
I've built a venv in Poetry using python 3.10. The pyproject.toml is pasted below. Using a venv not with poetry the script runs totally fine. We have to use poetry because it's required for a different aspect of our project.
When I attempt to run
poetry run python test.py
I get this error:I've tried to update the GLIBCXX to be 3.4.30 but every time I do and I check with
strings /usr/lib/aarch64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
it only goes up to GLIBCXX_3.4.28 followed by a debug file.Has anybody else dealt with this issue? I can't seem to figure out why it runs in a separate venv but not in poetry venv. The venv uses
python3.8.10
but some of the other packages need a newer version. Anybody have thoughts?The text was updated successfully, but these errors were encountered: