-
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
RealSense D435 SDK run under Python Anaconda environment #1657
Comments
Can you try compiling pyrealsense2 with anaconda as the target? |
This is how I've compiled |
@lramati can you elaborate more details about pointing pybind11 at anaconda python executabe in cmake? |
@TheMikeyR how do i compile in Windows platform, as example you shown above i believe that using Linux platform right? |
@mohdazly my bad didn't notice you've listed windows as platform. I don't know how to compile it in the windows platform. |
[Realsense Customer Engineering Team Comment] After compiling python folder finish(check the attached image), you should see output files under Debug/Release folder as attachment, few things to do as below :
Done. |
@RealSense-Customer-Engineering @carypai Thank you for your answer. I already did all the methods as mentioned above, still encouter the same problem. Apparently, I manually copy file from RealSense SDK 2.0 (pyrealsense2.py & realsense2.dll) which is installed in my PC into site-packages under my anaconda virtual environment, what I had discovered that, it is only can be run well under Python v2.7 but for v3.5 and 3.6 the same problem are triggered. I just want to confirm that, is it RealSense SDK 2.0 only support Python 2.7 or both Python 2 & 3? |
[Realsense Customer Engineering Team Comment] Please see the answers below:
|
@RealSense-Customer-Engineering @carypai |
@carypai & @RealSense-Customer-Engineering thank you so much for your guidance. I managed to run RealSense SDK 2.0 under my anaconda virtual environment for both python 2 & 3.
As refer to @RealSense-Customer-Engineering
There are 2 methods on copying the
OR
To test that your SDK files are working well:-
Below picture shown the list of python sample projects for RealSense Hereby I close the issues as I already find the solutions. Thank you. |
Hello, Selecting Windows SDK version 10.0.10586.0 to target Windows 10.0.17134. Configuring incomplete, errors occurred! |
Everybody! Are you understanding above all? |
Issue Description
Is it possible to use Intel RealSense SDK Python wrappers under Python Anaconda environment?
I already followed all instruction as stated on github here https://github.com/IntelRealSense/librealsense/tree/master/wrappers/python
But i'm facing problem when i tried to run sample python project ("opencv_viewer_example.py) under my virtual anaconda environment as stated below:-
Traceback (most recent call last):
File "opencv_viewer_example.py", line 8, in
import pyrealsense2 as rs
ImportError: Module use of python36.dll conflicts with this version of Python.
Do you have any idea about this problem?
The text was updated successfully, but these errors were encountered: