-
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
RuntimeError: No device connected error after install librealsense 2.38 #7480
Comments
Hi @malith1992 It may be related to the earlier case about D455 and the Python wrapper that you reported in September 2020 regarding Windows. Issues regarding Raspberry Pi were also mentioned by another RealSense user on that discussion. This led to a couple of other issues being linked: I have passed your latest Jetson-related case to Intel so that they can consider it as part of their investigations Thanks very much for the report! |
The earlier case #7283 has been solved. This is a new case. Both cameras not connected after I install Librealsense 2.38 python wrapper on Jetson Nano. Even the realsense-viewer is not detecting the devices. |
This may still be related to the Python wrapper if you have installed it and if the camera was being detected before the wrapper was installed. I have seen a couple of recent cases where the camera was detected without problems until the Python wrapper was installed, and then the camera was not detectable in both pyrealsense2 and in the RealSense Viewer. |
Is there any update about the issue ? |
Hi @malith1992 I was awaiting a response to the comment that I posted 7 days previously and was going to do a follow-up with you today but you asked first. :) I mentioned your case within Intel on October 2 but do not yet have an update. I will follow up on it. Thanks for the reminder and for your patience. |
I am having this same issue with a Jetson nano running 18.04 and librealsense V2.39 built from source. T265 devices show up fine in the
|
Hi @Michael-Equi I am not able to handle cases where use of T265 is involved, as another RealSense team member is responsible for those cases. Could you re-post your question as a new case please using the New Issue button on the front page of the forum please, and include 'T265' in the message title? Thanks! https://github.com/IntelRealSense/librealsense/issues |
Hi @MartyG-RealSense, the issue is not with the T265 which connects fine. The camera that I am having trouble with is the D435i. |
Okay @Michael-Equi If T265 is not discussed at all and the focus of the case is limited solely to D435i then I can handle your issue. I am off-shift now and will look at your problem when I return on Monday. Thank you very much. |
Ok, I just mentioned the T265 to provide context that might help solve the issue with the D435i but if that is not needed then yes this is entirely an issue about the D435i. |
I meet the same issue which T256 works but D435 doesn't work. Have you solved this problem? |
@Michael-Equi @SUN-GE I will need some further time to explore this issue. I appreciate your patience! |
Thanks very much everyone for your patience on this case. The conclusions that my research of past cases reached were that the best chance of success is to build librealsense from distribution packages instead of from source code. Another RealSense team member suggests to first remove traces of any previous package installations that may have been performed, and then use Intel's official package installation guide for Jetson. This admittedly does not address the problem of installing the Python wrapper on a Nano with a librealsense built from packages though, since pyrealsense2 pip packages can not be used on Arm devices. |
Hi @MartyG-RealSense, thanks for the reply. When I install Librealsense from Debian packages it works fine but it only installs version V2.35 and I have requirements that necessitate the use of V2.38 and above (partly because of https://github.com/IntelRealSense/realsense-ros/tree/eloquent). This is why I had to build from source. |
Hi @Michael-Equi I checked with Intel today whether there was any method I had not heard of for installing the Python wrapper on a Jetson with package-built librealsense. I just received confirmation that the SDK should be built from source if you want to be able to build the Python wrapper from source, since pip is not an option on Arm. |
What specific steps should I take to accomplish this? Do the instructions for building from source not also result in the python wrapper being built from source as well? |
When building the Python wrapper from source, you have the choice of:
Option 1 When building librealsense from source with CMake, you can add the flag -DBUILD_PYTHON_BINDINGS:bool=true to the CMake build instruction to build the Python wrapper too. If you have both Python 2.7 and a version of Python 3 (such as Python 3.7) installed on your computer then you should also add a flag called -DPYTHON_EXECUTABLE=/usr/bin/python3 to tell CMake which Python version you will be using pyrealsense2 with. A CMake build statement to build librealsense and the Python wrapper together from source with the RSUSB installation method (no patching required) may therefore look something like the one below. It builds librealsense with the Python wrapper, the example programs, with CUDA support and as a Release type build that is more optimized in its running. cmake ../ -DFORCE_RSUSB_BACKEND=ON -DBUILD_PYTHON_BINDINGS:bool=true -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCMAKE_BUILD_TYPE=release -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=true -DBUILD_WITH_CUDA:bool=true To empasize again, you do not need to kernel-patch librealsense when using DFORCE_RSUSB_BACKEND=ON A previous version of these instructions for use with Jetson Nano can be found ere: Option 2 If you wish to build the Python wrapper from source separately after librealsense has already been built from source, you should use the guide at the link below: |
That worked, thank you! |
Great news, thanks for the update! Is it okay to close this case now if you are satisifed with the outcome? |
As long as that solves the problem for @SUN-GE and @malith1992. |
Ah yes, the case was originated by @malith1992 - thanks for pointing that out! @malith1992 and @SUN-GE Does the advice posted earlier help to resolve your own RuntimeError problem, please? |
I have followed the steps and it works perfectly. Thank you for taking care of this issue. @MartyG-RealSense |
Great to hear @malith1992 - thanks very much for the update! |
I have used realsense-ros to make it work. And I will try to follow the step as you suggested. Thanks for your help. |
Thanks @SUN-GE ! |
Issue Description
I have build librealsense 2.38 from source using the instructions given in the https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python/ because I wanted to use D455 camera on it. Now both the D435i and D455 cameras are not working. It give the following error message when I run this example https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/opencv_viewer_example.py
I have run rs-enumerate-devices, but it give me this message
The text was updated successfully, but these errors were encountered: