pyrealsense2 on Nanopi
Good day to all. I tried to install pyrealsense2 on nanoPi to read freames from camera model L515
The OS installed is Description: Ubuntu 20.04.2 LTS
I tried to install pyrealsense2 with pip3 - got error, so I build it from source
Then I tried to start simple python script from examples
export_ply_example.py
And received following error
Traceback (most recent call last):
File "test.py", line 24, in <module>
pipe.start(config)
RuntimeError: No device connected
Camera is connected, I can read frames through openCV
dmesg shows me:
[ 8313.494353] input: Intel(R) RealSense(TM) 515: Int as /devices/platform/usb@fe900000/fe900000.dwc3/xhci-hcd.1.auto/usb8/8-1/8-1:1.0/input/input2
[ 8313.494935] uvcvideo: Found UVC 1.50 device Intel(R) RealSense(TM) 515 (8086:0b64)
[ 8313.496297] uvcvideo: Unable to create debugfs 8-2 directory.
[ 8313.496656] uvcvideo 8-1:1.4: Entity type for entity Processing 10 was not initialized!
[ 8313.496661] uvcvideo 8-1:1.4: Entity type for entity Extension 11 was not initialized!
[ 8313.496666] uvcvideo 8-1:1.4: Entity type for entity Camera 9 was not initialized!
[ 8313.496849] usbcore: registered new interface driver uvcvideo
[ 8313.496853] USB Video Class driver (1.1.1)
What is wrong? How can I fix it?
-
Hello Alexeyp,
Thank you for contacting us.
Can you please try to apply udev rules and then check it?
https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md#prerequisitessudo cp config/99-realsense-libusb.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules && udevadm trigger
Regards,
Zulkifli Halim
Intel Customer Support -
CMakeOutput.log
Performing C++ SOURCE FILE Test COMPILER_SUPPORTS_CXX11 succeeded with the following output:
Change Dir: /home/pi/librealsense/build/CMakeFiles/CMakeTmpRun Build Command(s):/usr/bin/make cmTC_95040/fast && /usr/bin/make -f CMakeFiles/cmTC_95040.dir/build.make CMakeFiles/cmTC_95040.dir/build
make[1]: Entering directory '/home/pi/librealsense/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_95040.dir/src.cxx.o
/usr/bin/c++ -DCOMPILER_SUPPORTS_CXX11 -std=c++11 -o CMakeFiles/cmTC_95040.dir/src.cxx.o -c /home/pi/librealsense/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_95040
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_95040.dir/link.txt --verbose=1
/usr/bin/c++ -DCOMPILER_SUPPORTS_CXX11 -rdynamic CMakeFiles/cmTC_95040.dir/src.cxx.o -o cmTC_95040
make[1]: Leaving directory '/home/pi/librealsense/build/CMakeFiles/CMakeTmp'
Source file was:
int main() { return 0; }
Performing C++ SOURCE FILE Test COMPILER_SUPPORTS_CXX0X succeeded with the following output:
Change Dir: /home/pi/librealsense/build/CMakeFiles/CMakeTmpRun Build Command(s):/usr/bin/make cmTC_50134/fast && /usr/bin/make -f CMakeFiles/cmTC_50134.dir/build.make CMakeFiles/cmTC_50134.dir/build
make[1]: Entering directory '/home/pi/librealsense/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_50134.dir/src.cxx.o
/usr/bin/c++ -DCOMPILER_SUPPORTS_CXX0X -std=c++0x -o CMakeFiles/cmTC_50134.dir/src.cxx.o -c /home/pi/librealsense/build/CMakeFiles/CMakeTmp/src.cxx
Linking CXX executable cmTC_50134
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_50134.dir/link.txt --verbose=1
/usr/bin/c++ -DCOMPILER_SUPPORTS_CXX0X -rdynamic CMakeFiles/cmTC_50134.dir/src.cxx.o -o cmTC_50134
make[1]: Leaving directory '/home/pi/librealsense/build/CMakeFiles/CMakeTmp'
Source file was:
int main() { return 0; } -
Thank you
I am following this guide
https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md#prerequisites
And got
File "./export_ply_example.py", line 24, in <module>
pipe.start(config)
RuntimeError: No device connected
Please sign in to leave a comment.
Comments
8 comments