-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Compiling pyrealsense2 binding in 'OFF' directory #11931
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
Comments
Hi @HerrmannM Does it make a difference if you use -DBUILD_PYTHON_BINDINGS:bool=true (adding the 'bool' command) You could also try a more basic CMake instruction to see whether one of your build flags may be affecting the installation of pyrealsense2.
|
Hi @MartyG-RealSense and thank you for you quick reply! I tried both, did not make a difference. root@23df1f4fb82c:/usr/local# ls OFF/
pybackend2.cpython-310-x86_64-linux-gnu.so pyrealsense2.cpython-310-x86_64-linux-gnu.so pyrsutils.cpython-310-x86_64-linux-gnu.so
pybackend2.cpython-310-x86_64-linux-gnu.so.2 pyrealsense2.cpython-310-x86_64-linux-gnu.so.2.54 pyrsutils.cpython-310-x86_64-linux-gnu.so.2.54
pybackend2.cpython-310-x86_64-linux-gnu.so.2.54.1 pyrealsense2.cpython-310-x86_64-linux-gnu.so.2.54.1 pyrsutils.cpython-310-x86_64-linux-gnu.so.2.54.1 Note that the 2.53.1 release installed the bindings in the system dist-packages root@c59c7693a896:/usr/lib/python3/dist-packages# ls pyrealsense2/
pybackend2.cpython-310-x86_64-linux-gnu.so pybackend2.cpython-310-x86_64-linux-gnu.so.2.53.1 pyrealsense2.cpython-310-x86_64-linux-gnu.so.2.53
pybackend2.cpython-310-x86_64-linux-gnu.so.2 pyrealsense2.cpython-310-x86_64-linux-gnu.so pyrealsense2.cpython-310-x86_64-linux-gnu.so.2.53.1 |
I have highlighted your case to my Intel RealSense colleagues to seek their advice. Thanks very much for your patience! |
Thanks! |
My colleagues were able to replicate the issue that you experienced with 2.54.1 and we will discuss it. |
After discussion, an internal Intel ticket has been created so that the issue can be investigated. I have added an Enhancement label to this case to signify that it should be kept open whilst the internal report is active, but you do not need to take further action. Thanks again for your report of the issue! |
@HerrmannM I think we found the cause.
I installed 2.53.1 and it looks same.
I can access all attributes and modules. Is it the same for you? |
Hi @HerrmannM Could you provide feedback about the advice provided by @Nir-Az in the comment above, please? Thanks! |
Fix merged: See #11959 Please update if it fix your issue, sorry for the inconvenience :) |
Thanks for the fix! Cheers, |
Hi, I tested with the current dev branch (https://github.com/IntelRealSense/librealsense/tree/7b4adccdb61887e0a6b2f032289c48ebf10fcd07 for the specific commit) and it indeed built the binding where expected. On our production side of things, we'll wait for a new release tag to update :) Cheers, |
It's excellent news that the fix worked for you. Thanks very much for the update. As the fix was merged into the SDK and your issue was resolved, I will close this case. Thanks again! |
I am having a similar issue with dusty-nv/jetson-containers#281 (comment) is the fix to just update the import as
Thank you |
Apologies for the delay, I just changed job and I don't have access to the code anymore. Cheers, |
This is still happening in 2.54.2 |
Please try development branch and update |
@Nir-Az Thanks for the quick reply, indeed it works as expected in latest development branch. Are there any plans to release a stable release with this fix? |
It will take some time as we are currently working on a set of features and bug fixes for the release, but it is coming :) |
When compiling with the following flags:
RUN cmake \ -DCMAKE_INSTALL_PREFIX=/opt/realsense2\ -DCMAKE_BUILD_TYPE=Release\ -DFORCE_RSUSB_BACKEND=true\ -DBUILD_EXAMPLES=false\ -DBUILD_TOOLS=true\ -DBUILD_EASYLOGGINGPP=true\ -DBUILD_WITH_TM2=false\ -DBUILD_GLSL_EXTENSIONS=false\ -DIMPORT_DEPTH_CAM_FW=false\ -DBUILD_PYTHON_BINDINGS=true\ -DPYTHON_EXECUTABLE=/usr/bin/python3.10\ .. RUN make RUN make install
Creates a folder '/opt/realsense2' with the following content
`
/opt/realsense2# ls *
OFF:
pybackend2.cpython-310-x86_64-linux-gnu.so pybackend2.cpython-310-x86_64-linux-gnu.so.2.54.1 pyrealsense2.cpython-310-x86_64-linux-gnu.so.2.54 pyrsutils.cpython-310-x86_64-linux-gnu.so pyrsutils.cpython-310-x86_64-linux-gnu.so.2.54.1
pybackend2.cpython-310-x86_64-linux-gnu.so.2 pyrealsense2.cpython-310-x86_64-linux-gnu.so pyrealsense2.cpython-310-x86_64-linux-gnu.so.2.54.1 pyrsutils.cpython-310-x86_64-linux-gnu.so.2.54
bin:
rs-convert rs-embed rs-enumerate-devices rs-fw-logger rs-fw-update rs-record rs-terminal
include:
librealsense2
lib:
cmake librealsense-file.a librealsense2.so librealsense2.so.2.54 librealsense2.so.2.54.1 librsutils.a pkgconfig
`
i.e. the python bindings are put in an 'OFF' folder. I suspect a CMake bug (a switch ON/OFF put in a path?) but could not find it.
The text was updated successfully, but these errors were encountered: