View my account

Can not use the camera with python

Comments

5 comments

  • MartyG

    May I please check the instruction that you used to try to install Python?  You said that you used  sudo apt-get  install python-dev.  The word 'python' is used twice in the installation command on the install instructions page though.  Did you input it like this:

    sudo apt-get install python python-dev

    0
    Comment actions Permalink
  • Shota Matsumura

    Sorry... I was mistake.

    I try to use sudo apt-get install python python-dev but it was not solved.

    It is the same phenomenon.

    0
    Comment actions Permalink
  • MartyG

    Someone else who encountered this error with python.h fixed it by providing an include path.

    https://github.com/IntelRealSense/librealsense/issues/980#issuecomment-357846712

    0
    Comment actions Permalink
  • Shota Matsumura

    Thank you MartyG.

    I investigate how to provide an include path.

    Sorry for not understanding it at all.

    I start from Building From Source to build the environment, do I need to do from Instlation?

    0
    Comment actions Permalink
  • MartyG

    It would probably be easier to build using PyPy with a pip instruction.  Though building from source is a good idea if you are installing on a piece of hardware that is not a typical PC.

    I went through your kindly provided log image again.  You use the command sudo make -j4 ... this lacks the install  instruction that follows the make -j4 command in the instructions.

    Another way to write the install instruction would be:

    sudo make -j4 && sudo make install

    In step 4 of the source installation guide after this step, it recommends updating your PYTHONPATH environment variable to add the path to the pyrealsense library


    export PYTHONPATH=$PYTHONPATH:/usr/local/lib

    0
    Comment actions Permalink

Please sign in to leave a comment.