View my account

self.pipeline.start(config)

Comments

5 comments

  • MartyG

    Hi Sergio Delgado Heras

    To run the script measure_new.py you need to have installed the RealSense SDK's Python compatibility wrapper pyrealsense2.  As a starting point in investigating your case, can you first confirm whether you have installed pyrealsense2, please?

     

    Also, are you using Windows or Linux?

     

    0
    Comment actions Permalink
  • Sergio Delgado Heras

    Hi MartyG

    Yes, I have already installed pyrealsense2, with this output:

    Collecting pyrealsense2
    Using cached https://files.pythonhosted.org/packages/7e/6c/4ef325cc7261c8c83dc86f09058553b030ef2a9760b952520db0e9e11e02/pyrealsense2-2.50.0.3812-cp27-cp27mu-manylinux1_x86_64.whl
    Installing collected packages: pyrealsense2
    Successfully installed pyrealsense2-2.50.0.3812
    You are using pip version 8.1.1, however version 22.1 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.

    (The command 'pip install --upgrade pip' is not working)

    I am using Linux, and I managed to run the following program that uses  'pipeline.start(config)'

    https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/python-tutorial-1-depth.py 

    Thank you in advance.

    0
    Comment actions Permalink
  • MartyX Grover

    It looks as though pip install --upgrade pip upgrades the 'pip install' mechanism.  That is not part of the RealSense SDK though, but just a method that can be used to install pyrealsense2.  I am not aware of the pip version number having an influence on whether pyrealsense2 can be successfully installed with pip install pyrealsense2 and as you mentioned, you have already been able to install pyrealsense2.  So the pip version is likely not a factor in your particular problem.

    0
    Comment actions Permalink
  • Sergio Delgado Heras

    Hi MartyG

    It is nice to know that is not because of the pip install, then, I just have problems with the self.pipeline.start(config), I tried to run a code with pipeline.start(config) and it was successful.

    Do you know which can be the root of the problem?

    0
    Comment actions Permalink
  • MartyX Grover

    Adding self. to instructions is usually not compulsory.  A small number of RealSense Python users find though that their program will not work without it, whilst you have the opposite situation (your program does not work with it).  I do not know the reason for this.  If your particular program works well without self. then I do not see any harm in removing it.

    0
    Comment actions Permalink

Please sign in to leave a comment.