View my account

Pip3 error with pyrealsense2

Comments

46 comments

  • Mhmh6086

    you mean i should install it again following this link :   https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.mdnk

     

    because in the link that you sent there is no instruction to follow only said to install realsense2-utils package which is this link :https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.mdnk

     

    right ?

    0
    Comment actions Permalink
  • MartyG

    The situation is at risk of becoming confusing.  If you are on an x86 PC with Ubuntu now, and you have found that the camera was not detected when you tried the RSUSB installation method before, then start again from the beginning with this method that you linked to:

    https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md

    If you are getting a lot of errors then it may be best to assume that there is something that has gone fundamentally wrong with the librealsense setup and remove it and start the installation again.

    0
    Comment actions Permalink
  • Mhmh6086

    Hi , i followed the link and as you can see no connection :(((((((

     

     

     

     

     

    0
    Comment actions Permalink
  • MartyG

    Okay, what was the installation method that has got you the best results so far out of all that you have tried?

    0
    Comment actions Permalink
  • Mhmh6086

    with all i got the same results :(((((

    0
    Comment actions Permalink
  • MartyG

    If every single method of installation that you try does not work then it makes me wonder whether there is a problem with your camera's firmware driver. You can test in Ubuntu whether the camera can be detected at all with the command rs-enumerate-devices

    https://github.com/IntelRealSense/librealsense/tree/master/tools/enumerate-devices 

    0
    Comment actions Permalink
  • Mhmh6086

    you are right , no device is detected and it return : is it plugged in ?

    Just to let you know that the camera work fine with windows pc

    0
    Comment actions Permalink
  • MartyG

    If it works fine with a Windows PC then that would suggest that the camera's firmware driver is okay, as that is stored inside the camera and not on the computer.  So the firmware is carried within the camera to whatever computer you attach it to.  The USB cable is also likely to be okay.  It certainly seems to be a Linux-specific issue.

    A member of the RealSense team suggests a clean-up method in the link below for cleaning up the remains of previous package installations and then testing the camera again:

    https://github.com/IntelRealSense/librealsense/issues/4916#issuecomment-534517200 

    0
    Comment actions Permalink
  • Mhmh6086

    https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md

    in step4 when i run ./scripts/patch-realsense-ubuntu-lts.sh then there is an error at the end :

    Building dependency tree
    Reading state information... Done
    bc is already the newest version (1.07.1-2).
    build-essential is already the newest version (12.4ubuntu1).
    git is already the newest version (1:2.17.1-1ubuntu0.7).
    linux-headers-generic is already the newest version (4.15.0.118.105).
    The following packages were automatically installed and are no longer required:
    dkms librealsense2 librealsense2-gl librealsense2-net linux-hwe-5.4-headers-5.4.0-42
    Use 'sudo apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Package required libusb-1.0-0-dev: - found
    Package required libssl-dev: - found
    Create patches workspace in ubuntu-bionic-hwe-5.4 folder

    Package required libelf-dev: - found
    Package required elfutils: - found
    Package required bison: - found
    Package required flex: - found
    fatal: read error: Connection reset by peer
    Fetching Ubuntu LTS tag to the local kernel sources folder
    fatal: You need to specify a tag name.

    0
    Comment actions Permalink
  • MartyG

    Does the error fatal: read error: Connection reset by peer occur again if you re-run the patch instruction?

    0
    Comment actions Permalink
  • Mhmh6086

    yes i re-run the ./scripts/patch-realsense-ubuntu-lts.sh ,

    have the same error

    0
    Comment actions Permalink
  • MartyG

    And I am sure you have already tried wiping everything including Ubuntu and doing a completely fresh install.

    0
    Comment actions Permalink
  • Mhmh6086

    you don't mean to reinstall the Ubuntu, right?

    i cleaned following the link you sent me, isnt it something related to librealsense server because it is giving the connection error 

    0
    Comment actions Permalink
  • MartyG

    The usual Ubuntu 18.04 LTS (not Ubuntu Server) is the the best choice of Ubuntu OS for using the camera with a PC.  You can confirm that you are using the 64-bit version of Ubuntu 18.04 LTS, yes?

    0
    Comment actions Permalink
  • Mhmh6086

    yes , Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-48-generic x86_64)

    it is ubuntu 18.04.5 not 18.04.0

    0
    Comment actions Permalink
  • MartyG

    You could try updating the firmware of the camera on your Windows computer if you are not already using the 5.12.7.100 firmware version.

    0
    Comment actions Permalink

Please sign in to leave a comment.