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

pyrealsense2 #13087

Open
mrortach opened this issue Jun 25, 2024 · 2 comments
Open

pyrealsense2 #13087

mrortach opened this issue Jun 25, 2024 · 2 comments

Comments

@mrortach
Copy link

mrortach commented Jun 25, 2024

\yolov10modelx\librealsense\wrappers\python> & C:/python.exe d://testtir.py
Traceback (most recent call last):
File "\testtir.py", line 1, in
import pyrealsense2 as rs
***init.py", line 2, in
from .pyrealsense2 import *
ImportError: DLL load failed while importing pyrealsense2: Belirtilen modül bulunamadı (The specified module was not found).

init py

py libs (pyd/so) should be copied to pyrealsense2 folder
from ._version import version

image

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jun 25, 2024

Hi @mrortach I recall that you are building the pyrealsense2 wrapper from source code because you need to use it with Python 3.12 and it is not yet supported by the 'pip install pyrealsense2' package installation method. Python 3.12 support will be added in the next librealsense SDK release after 2.55.1, as announced at #13072

You currently need to build the wrapper from source code for 3.12 and experienced this error message py libs (pyd/so) should be copied to pyrealsense2 folder. The Python wrapper documentation at the link below advises in its Windows instructions to copy the two files realsense2.dll and pyrealsense2.pyd into the same directory that your pyrealsense2 program script is in.

https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python#windows

If you have installed the full RealSense SDK using the Intel.RealSense.SDK-WIN10 installer file then you can find a pre-built realsense2.dll at the location below:

C: > Program Files (x86) > Intel RealSense SDK 2.0 > bin > x64

This folder also contains a pre-built pyrealsense2.pyd file but it is only compatible with Python 3.7, so you will need to use the pyrealsense2.pyd file generated for Python 3.12 after you have built the wrapper.

@eufrizz
Copy link

eufrizz commented Jun 25, 2024

My PR #13079 should fix this by actually installing pyrealsense2

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

3 participants