IntelRealSense / librealsense

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

Error opencv_viewer_example.py #11894

Open pat19218 opened 1 year ago

pat19218 commented 1 year ago

Required Info
Camera Model { T265 / D415 }
Firmware Version (Open RealSense Viewer --> librealsense version: 2.54.1)
Operating System & Version {Debian GNU/Linux 11 (bullseye)
Kernel Version (Linux Only) Linux 6.1.21-v8+
Platform Raspberry Pi 4
SDK Version { legacy / 2.54.1 }
Language {python }
Segment {Robot/others }

Issue Description

I've installed Realsense, then installed the python wrapper, by running "pip install pyrrealsense2". I have run the example 'python-tutorial-1-depth.py' which works without any problem but when trying to run any other example I get this error: $ python opencv_viewer_example.py Traceback (most recent call last):

File "/home/rover/librealsense/wrappers/python/examples/opencv_viewer_example.py", line 45, in frames = pipeline.wait_for_frames() RuntimeError: Frame didn't arrive within 5000

niknadzirie commented 7 months ago

You cannot use pip install pyrealsense2 when dealing with ARM processor, you can try use conda instead, conda install -c conda-forge librealsense=2.54.2=py39*

make sure create python env first and activate the env, try to use python3.9