View my account

setting up D435i to work in Windows 10 and Python 3.7

Comments

6 comments

  • MartyG

    Hi Lrobinson746  The RealSense Python wrapper can work with Python 3.7.  You can install it using PyPi (a "pip install") or build the wrapper from source code with CMake. 

    Are you familiar with using pip, please?

    0
    Comment actions Permalink
  • Lrobinson746

    As mentioned in my first comment I have instaled pyrealsense2 successfully in Python 3.7 using the command

      pip install pyrealsense2

    but still get the error message when trying torun the line in my code

      import pyrealsense2 as rs 

    What am I doing wrong?

    Error message

    LL load failed while importing pyrealsense2: The specified module could not be found
    0
    Comment actions Permalink
  • MartyG

    The opening comment does not mention pip. 

    It may be worth looking at Intel's Jupyter example programs for Python as a reference.

    https://github.com/IntelRealSense/librealsense/tree/jupyter/notebooks

    If you require further information, I recommend visiting the RealSense GitHub website at the link below and posting there by clicking on the New Issue button. 

    https://github.com/IntelRealSense/librealsense/issues 

    Please include the name tag @dorodnic in your message, as Dorodnic the RealSense SDK Manager is the author of the Jupyter example programs and will be best suited to advise you about setting up pyrealsense2 programs in Jupyter.

    0
    Comment actions Permalink
  • Lrobinson746

    Thanks for your help.  I finally realised what was wrong.  I was running a jupyter notebook in a python3.7 virtual environment but jupyter was picking up python 3.8.  I have now fixed this and have the realsense distance  to object sample code running.  Once again thanks for your help - I can get now cracking on some deep learning vision projects for robotics.

    0
    Comment actions Permalink
  • MartyG

    You are very welcome.  Thanks very much for the update - good luck with your projects!

    0
    Comment actions Permalink
  • Parthkevadiya100

    Can you please specify, how you fixed the issue? It will be a great help.

    0
    Comment actions Permalink

Please sign in to leave a comment.