Code Monkey home page Code Monkey logo

Comments (31)

MartyG-RealSense avatar MartyG-RealSense commented on June 9, 2024

Hi @jiaqizheng2000 Have you installed the librealsense SDK on your Linux 11 (Bullseye) computer, please?

from librealsense.

jiaqizheng2000 avatar jiaqizheng2000 commented on June 9, 2024

Yes, I have installed it following https://dev.intelrealsense.com/docs/compiling-librealsense-for-linux-ubuntu-guide#prerequisites

from librealsense.

jiaqizheng2000 avatar jiaqizheng2000 commented on June 9, 2024

and I can open it by command realsense-viewer, and see the image

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 9, 2024

Is your Python program a pyrealsense2 one? If it is, have you installed the RealSense pyrealsense2 wrapper after you installed librealsense?

On a PC computer you can install the pyrealsense2 wrapper with the command pip install pyrealsense2

from librealsense.

jiaqizheng2000 avatar jiaqizheng2000 commented on June 9, 2024

I have installed pyrealsense2

from librealsense.

jiaqizheng2000 avatar jiaqizheng2000 commented on June 9, 2024

is there some problem with VERSION="11 (bullseye)"? Do I need to change to Buster? Will it work?

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 9, 2024

The Raspberry Pi version of Bullseye does not work with RealSense, while Buster does.

I do not know whether the Debian Bullseye has the same problem though.

from librealsense.

jiaqizheng2000 avatar jiaqizheng2000 commented on June 9, 2024

ok, I will try The Raspberry Pi version of Buster to see whether it works. Could you send me a guidance or just need to do the same process as before.

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 9, 2024

There is an installation guide at the link below, though it is old and so you may need to edit the deb9u1 part of the command below so it is deb10u1 (Buster) instead.

gcc version 6.3.0 20170516 (Raspbian 6.3.0-18+rpi1+deb9u1)

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

from librealsense.

jiaqizheng2000 avatar jiaqizheng2000 commented on June 9, 2024

ok, thank you very much, I will try it tomorrow

from librealsense.

jiaqizheng2000 avatar jiaqizheng2000 commented on June 9, 2024

E: Unable to locate package libglui-dev
E: Unable to locate package libglui2c2

There are two errors when I install the package, I just skip them, does they matter?

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 9, 2024

I believe that these packages are related to GLFW graphics support and are installed when using Ubuntu 18. 20 and 22. So they may not be necessary on your Debian based installation.

from librealsense.

jiaqizheng2000 avatar jiaqizheng2000 commented on June 9, 2024

Ok,thanks.

And I also have some issues with protobuf.
when I run ./autogen.sh, it shows as below.

  • autoreconf -f -i -Wall,no-obsolete
    configure.ac:30: error: possibly undefined macro: AC_PROG_LIBTOOL
    If this token and others are legitimate, please use m4_pattern_allow.
    See the Autoconf documentation.
    autoreconf: /usr/bin/autoconf failed with exit status: 1

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 9, 2024

The protobuf version in the instructions is very old because the guide is old. Using protobuf v3.14.0 instead of v3.5.1 may work better for you.

from librealsense.

jiaqizheng2000 avatar jiaqizheng2000 commented on June 9, 2024

ok, and I have installed pyrealsense2 following the guide, but when I import pyrealsense2, it still shows no module named pyrealsense2

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 9, 2024

Does it make a difference if you use import pyrealsense2.pyrealsense2 as rs instead of import pyrealsense2 as rs

from librealsense.

jiaqizheng2000 avatar jiaqizheng2000 commented on June 9, 2024

No, it doesn't work. And I saw some online guide said that need to move some *.so、so.2、so.2.50、so.2.50.0 file to /usr/lib/python3 from librealsense/build/wrappers/python, but I didn't see them when I have done pyrealsense2 installation.

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 9, 2024

Do you have any files with the ending .so in the build/wrappers/python folder, please?

As you are using Python 3, the pyrealsense2.so file will have a complex auto-generated filename based on the Python 3 version that you are using. So if Python 3.7 was being used then the pyrealsense2.so file might have a filename like pyrealsense2.cpython-37m-arm-linux-gnueabihf.so

from librealsense.

jiaqizheng2000 avatar jiaqizheng2000 commented on June 9, 2024

No,I didn't find any files ending with .so in the librealsense/build/wrappers/python folder

from librealsense.

jiaqizheng2000 avatar jiaqizheng2000 commented on June 9, 2024

1
2

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 9, 2024

If you run pip install pyrealsense2 again and then try your manage.py program, do you still get the segmentation fault?

from librealsense.

jiaqizheng2000 avatar jiaqizheng2000 commented on June 9, 2024

when I run pip install pyrealsense2, or pip3 install pyrealsense2, it will raise the error:

Could not find a version that satisfies the requirement pyrealsense2 (from versions: )
No matching distribution found for pyrealsense2

image

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 9, 2024

Which Python 3 version are you using, please? That pip install error could occur if a Python 3 version older than 3.7 (such as 3.6) was being used.

from librealsense.

jiaqizheng2000 avatar jiaqizheng2000 commented on June 9, 2024

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 9, 2024

Is your computer a desktop / laptop PC or does it use Arm architecture? If it is based on Arm then the minimum Python requirement for pip install would be 3.9 instead of 3.7.

from librealsense.

jiaqizheng2000 avatar jiaqizheng2000 commented on June 9, 2024

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 9, 2024

I've had previous reports that the Arm files of pip install pyrealsense2 work with Arm in general but not Raspberry Pi in particular, so that may be the reason why pip install is not working for you. In that case, building pyrealsense2 from source code would be the only option, unfortunately.

You have already tried building the wrapper from source on your Pi, but it is not clear why the .so files are not being generated in the build/wrappers/python folder. You do not seem to be doing anything incorrect.

from librealsense.

jiaqizheng2000 avatar jiaqizheng2000 commented on June 9, 2024

Ok,thanks for your kind help.

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 9, 2024

Hi @jiaqizheng2000 Do you require further assistance with this case, please? Thanks!

from librealsense.

jiaqizheng2000 avatar jiaqizheng2000 commented on June 9, 2024

No,thanks

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 9, 2024

You are very welcome. Thanks very much for the update!

from librealsense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.