IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.56k stars 4.82k forks source link

RuntimeError: No device connected #8688

Open korin-lf opened 3 years ago

korin-lf commented 3 years ago

Required Info
Camera Model T265
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version Ubuntu 20.04
Kernel Version (Linux Only) 5.4.0-70-generic
Platform PC
SDK Version
Language python
Segment {Robot/Smartphone/VR/AR/others }

Issue Description

pipe.start(cfg) RuntimeError: No device connected

though realsense-viewer show the camera properly and modinfo uvcvideo | grep "version:" includes realsense string

so what can be done to run the examples? thanks

ISim000nI commented 3 years ago

Had the same problem. Easiest solution would be (under the assumption that your code is flawless) to make sure that the realsense-viewer is closed and if the error should still occur simply disconnect the camera for 10 seconds.