PyRealsense2 library installation error in Jetson nano
Hello,
I have been trying to install PyRealSense2 in jetson nano using pip commands. I have gone through the related posts in the community and Youtube tutorials by Jetson Hack none of them helped me much in this. I installed Librealsense2.0 SDK in jetson using jetson hacks tutorial which worked perfectly. Intel viewer was working fine with the SDK installed.
If I want to access the camera using the python library Pyrealsense2 it is not working as expected. I need any sample tutorial or any other documentation(Sample codes) to work on this product. The issue raised only with the python while CPP and others are working fine.
The Python version used was 2.7
The jetpack image version is 18.04(Linux Tegra-4.9.14)
We are working on a real-time AI product using depth camera D415 and D435.
Thank you. Any help would be really appreciated in this issue.
-
Others have not been able to install Pyrealsense2 on Nano with pip either, unfortunately. The advice for Nano is always to compile from source. Advice for Nano from a RealSense support team member was to follow the instructions in the link below, and execute it in Python 3.
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python
-
I researched the issue and couldn't find any indication that special instructions were needed for 18.04.
An 18.04 user was given a list of steps to check through by a RealSense support team member and they confirmed that the process worked for them.
https://github.com/IntelRealSense/librealsense/issues/2496#issuecomment-433154751
-
I Have followed the steps in the attched link for build from source
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python
I entered below steps from above link
- sudo apt-get update && sudo apt-get upgrade
- sudo apt-get dist-upgrade
- sudo apt-get install python3 python3-dev
next step is getting attached image error
can you please guide me
-
Though there are a lot of example programs in C++ language, I realised that you likely would prefer examples in Python. A selection of Python examples with source code are available in the link below:
https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python/examples
-
Hi Ckamda If you have a Jetson and are trying to install librealsense and the Python bindings, you may find the instructions in the link below useful. They recently worked for a Jetson Nano user.
https://github.com/IntelRealSense/librealsense/issues/6964#issuecomment-665650908
-
Given that SDK 2.37.0 is a pre-release (not a stable final version), could you try downloading the zip for 2.36.0 and extracting the librealsense folder inside it please? Then create and go to the build directory whilst in the librealsense folder with mkdir build && cd build and repeat the CMake instruction. Thanks!
-
The build seems to be breaking on CUDA support this time, saying that CMake version 3.8 or newer is required for building with CUDA. Do you have a recent version of CUDA installed please?
It may also be worth trying building without the BUILD_WITH_CUDA statement to confirm whether CUDA is the sole cause of the build breaking.
-
Good Morning MartyG, Thanks very much for the help.
over the weekend, I tried that but it didn't work, but I was able to install and atleast import the library in python 2.7. but I couldn't successfully import it on python3.
even still after importing on python 2.7, it didn't recognize my D435i, and neither did intel realsense viewer.
-
I was able to install it following the instructions listed here:
https://github.com/IntelRealSense/librealsense/issues/5275#issuecomment-555830996
Please sign in to leave a comment.
Comments
20 comments