Skip to content
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

RuntimeError: No device connected #962

Closed
Benz-Tracxpoint opened this issue Dec 31, 2017 · 6 comments
Closed

RuntimeError: No device connected #962

Benz-Tracxpoint opened this issue Dec 31, 2017 · 6 comments

Comments

@Benz-Tracxpoint
Copy link

Required Info
Camera Model D400
Firmware Version
Operating System & Version Ubuntu 16.04
Kernel Version (Linux Only)
SDK Version 2

Following Compilation of the SDK with its python Wrapper I try to run the following code:

    pipeline = rs.pipeline()
    config = rs.config()
    config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 30)
    config.enable_stream(rs.stream.color, 640, 480, rs.format.bgr8, 30)
    cfg = pipeline.start(config)

but the following error keeps showing even-though the device is connected:

  File "rs_tools.py", line 85, in <module>
    record_aligned_rgbd_to_disk_dirs(baseDir,True,True)
  File "rs_tools.py", line 20, in record_aligned_rgbd_to_disk_dirs
    cfg = pipeline.start(config)
RuntimeError: No device connected

As mentioned above, the Device is connected, and the same code worked for us on a windows operation system

any ideas what are we missing?

@dorodnic
Copy link
Contributor

dorodnic commented Dec 31, 2017

Hi @Benz-Tracxpoint
Please see the troubleshooting WIKI. Does the system recognise the device (shows it under lsusb | grep 8086)?
In addition, please post the dmesg logs when connecting the device.

@Benz-Tracxpoint
Copy link
Author

Benz-Tracxpoint commented Dec 31, 2017

Hן Sergey,
Yes it recognizes it :

Bus 002 Device 005: ID 8086:0b07 Intel Corp.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

@Benz-Tracxpoint
Copy link
Author

dmesg:

[ 5239.077008] usb 2-1: USB disconnect, device number 3
[ 5240.948783] usb 2-1: new SuperSpeed USB device number 4 using xhci_hcd
[ 5240.969600] usb 2-1: New USB device found, idVendor=8086, idProduct=0b07
[ 5240.969607] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5240.969612] usb 2-1: Product: Intel(R) RealSense(TM) 430
[ 5240.969616] usb 2-1: Manufacturer: Intel(R) RealSense(TM) 430
[ 5240.969619] usb 2-1: SerialNumber: 725213020435

@ev-mp
Copy link
Collaborator

ev-mp commented Jan 1, 2018

Hi @Benz-Tracxpoint ,
Did you follow the linux installation chapter to set the required patches and permissions?
If so - please run 'rs-enumerate-devices' and post here.

@Benz-Tracxpoint
Copy link
Author

Hi,
I was finally able to get it work after following this tutorial as well: https://software.intel.com/sites/products/realsense/sdk/getting_started.html#Setting_Up_Your_C_Development

@alexander-soare
Copy link

When I ran into this issue, a sudo apt update after the step of adding the librealsense server to the repo list did the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants