-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Jetson Nano pyrelasense has not attribute pipeline #13453
Comments
Hi @harshal-14 When pyrealsense2 is built from source code, after building of the wrapper is completed the .so files will usually be found in the librealsense > build > wrappers > python directory of the librealsense source code folder. I note that you used the libuvc backend instructions, which use the 'libuvc_installation.sh' build script. This script downloads the librealsense source code and places a folder called librealsense-master on the computer. If you modified line 46 of the libuvc script to include the flag |
|
Thanks for checking the wrappers > python folder. For some RealSense users in the past, amending their 'import pyrealsense2 as rs' line to the one below has resolved the AttributeError: module 'pyrealsense2' has no attribute 'pipeline' error.
|
Hi Marty, thanks for your prompt reply, however this doesn't solve the problem.
ModuleNotFoundError: No module named 'pyrealsense2.pyrealsense2' |
Usually, installing the pyrealsense2 wrapper from packages instead of source code with the command pip install pyrealsense2 does not work on Jetson boards even though pip install of the wrapper supports devices with Arm architecture like Jetson. It would be worth trying just to eliminate the possibility of whether it will work or not though. |
If I installed through pip then it shows even if device is connected and detected by realsense-viewer, lsusb it gives the following error:
|
Is the camera also not detected if the test script below is used?
|
If I installed doing
then it shows camera not detected. But if I uninstall this one, and then try it shows
|
Having no .so files in the wrapper build folder makes it difficult to achieve a solution, unfortunately. An installation method that has not apparently been tried yet is to use the librealsense + pyrealsense2 source code procedure at #6964 (comment) which was designed specifically for Jeton Nano. As the instructions were written a while ago, step 7 refers to Python 3.6 instead of a recent Python version such as 3.12. If you only have one Python version installed on your computer though, you should be able to skip step 7 as setting the PYTHONPATH parameter would be unnecessary. The PYTHONPATH is to tell the computer which Python version to use if, for example, you had Python 2 and Python 3 installed on the same computer. |
Hi @harshal-14 Do you require further assistance with this case, please? Thanks! |
Yes I tried all above steps, but nothing seems to work. Do you have any other solution in mind? |
You previously succeded in building the librealsense SDK with the 'libuvc backend' procedure that you described at #13445 (comment) When editing line 46 of the libuvc_installation.sh scrpt, where you used the following CMake build instruction:
Have you tried adding the -DBUILD_PYTHON_BINDINGS:bool=true command for building the Python wrapper at the same time that librealsense is built?
You do not need to use the -DFORCE_RSUSB_BACKEND=TRUE flag if you have already included -DFORCE_LIBUVC=true |
Hi @harshal-14 Do you require further assistance with this case, please? Thanks! |
Case closed due to no further comments received. |
Hi,
I built everything based on this method
, however I cannot find the pyrealsense to work with even a basic python script.
I get this error
Upon digging I found this is a common issue on Jetson devices #13080 but I don't find the *.so files for pyrealsense. What am I doing wrong?
The text was updated successfully, but these errors were encountered: