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
How do i install Pyrealsense2-aarch64 into my Raspberry pi 4 8Gb version #12886
Comments
Hi @Sharath-MRNoBoDy Until recently the aarch64 Arm version of the pyrealsense2 pip packages only worked for Python 3.7 to 3.9 and you are using Python 3.10. Using an unsupported Python 3 version with pip install would likely cause the message ERROR: No matching distribution found for pyrealsense2-aarch64 Since version 2.55.1 of the SDK was released a week ago (April 21 2024), Python 3.10 has been supported. Have you attempted installation of the SDK and pyrealsense2 wrapper since 2.55.1 and the new aarch64 file were released, please? |
yes i had tried to install this pyrealsense2 package but it still not able to resolve this issue on the RPI 4B |
RuntimeError: Couldn't resolve requests is not related to the SDK or Python version. It occurs when a stream resolution / FPS combination has been requested that the camera cannot currently provide. If a valid resolution / FPS has been defined in a script then a common reason for it is if the camera's USB connection type is being mis-detected as USB 2.1 instead of 3.1 or 3.2, as the supported configurations are more limited on a 2.1 connection. A way to test for this possibility would be to set your streams to 640x480 and 30 FPS in your config instructions, as this configuration will work with both USB 2.1 and 3.1 / 3.2. If 640x480 works then it is likely that your camera connection is being detected as USB 2.1 when running the script. |
@MartyG-RealSense I have specified to the same frame specs as you have mentioned but iam not able to fetch the live feed
I am trying to fetch 3 feed from the camera of RBG , Dept and Infrared |
Do you have any other programs running that are using the depth and RGB streams when you run your script? |
@MartyG-RealSense no , just the program getting the RGB, Dept, and Infrared stream |
What happens if you comment out the infrared stream and just access depth and color on your Pi? |
Even though I comment the NIR(Infrared) feed and other related snips
But the same Code Snippet is able to show the RGB and Dept Feed when I connect the camera into the PC and run the code. |
Does the script run if you remove the word cfg from the brackets of the pipe start line so that the script ignores the cfg lines and applies the camera's default configuration for each stream instead? If the script does run with cfg removed, does the script work if you put cfg back in the brackets and remove the spaces before the ; semi-colon line end symbol that you have on the depth and infrared instructions?
|
If I do that change then it shows this error |
When removing cfg from the brackets, does the AttributeError still occur if you change the import pyrealsense2 as rs line to the one below?
|
When doing all this iam back to ground zero with a fresh boot to raspberry pi os i tried to build the wrapper from the here but getting all types of error from proxy server(connecting with the network team) to
I followed the guide from here
Why am I seeing the warnings for GPG error and E: The repository 'http://archive.ubuntu.com/ubuntu jammy InRelease' is not signed. |
The distribution_linux.md package installation instructions should not be used with computers with an Arm architecture such as Raspberry Pi as they are designed for use with x86 / x64 architecture computers such as desktop and laptop PCs. A method of installing librealsense on Raspberry Pi that historically works well for Pi is libuvc backend. This method can be performed with a simple build script at the link below. https://github.com/IntelRealSense/librealsense/blob/master/doc/libuvc_installation.md |
Hi @MartyG-RealSense
|
Hi @Sharath-MRNoBoDy The pip install pyrealsense2 command does not work on Raspberry Pi, unfortunately. The wrapper must be built from source code instead. The easiest way to do this on Pi may be to edit the libuvc backend procedure's build script to add commands to build the pyrealsense2 wrapper at the same time that librealsense is built. Change line 46 from this:
to this:
|
I tried the command u have mentioned and its still not able to install the same |
A RealSense user at #11506 (comment) provided a detailed guide about how they set up librealsense and pyrealsense2 on a Pi 4 with Ubuntu. |
Products that iam using are as follows
Camera | Intel Realsense camera d457
OS | Ubuntu raspberry pi bookworm
Platform | Raspberry pi 4b 8gm version
kernel | 5.15.0-1053-raspi ..... aarch64 GNU/Linux
I was able to follow the IntelRealsense SDK tutorial that is available here .
I am able to view the camera from the realsense Veiwer and SDK.
Now comes the error i get by installing pyrealsense2-aarch64 it throws a error saying
I have install
python 3.10.12
PIP 22.0.2
The text was updated successfully, but these errors were encountered: