GithubHelp home page GithubHelp logo

Comments (8)

brmarkus avatar brmarkus commented on June 12, 2024

Others seems to have the same finding, like under "https://discuss.luxonis.com/d/1999-debian-bookworm-oak-1".

from depthai.

camchaney avatar camchaney commented on June 12, 2024

Awesome, thanks. I followed this but got another error:

error: externally-managed-environment

This environment is externally managed

To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

Failed installing dependencies. Could be a bug in the installer or unsupported platform. Open a bug report over at https://github.com/luxonis/depthai - exited with status 1 at line 120

from depthai.

LaudixGit avatar LaudixGit commented on June 12, 2024

Attempting to configure a Raspberry Pi 5
Linux RPi5 6.1.0-rpi6-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.58-1+rpt2 (2023-10-27) aarch64 GNU/Linux
Fresh install on USB drive, then run apt update and apt upgrade.

Same error as OP when installing dependencies. Output:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Nov 27 05:44:11 2023
inc@RPi5:~ $ sudo wget -qO- https://docs.luxonis.com/install_dependencies.sh | bash
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
Hit:4 http://archive.raspberrypi.com/debian bookworm InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libtbb2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libtbbmalloc2:armhf libtbbmalloc2

E: Package 'libtbb2' has no installation candidate
E: Unable to locate package libdc1394-22-dev

Failed installing dependencies. Could be a bug in the installer or unsupported platform. Open a bug report over at http                                                                                                                               s://github.com/luxonis/depthai - exited with status 100 at line 118

I am reporting the bug as directed by the script.

from depthai.

brmarkus avatar brmarkus commented on June 12, 2024

Did you try one of the notes mentioned above in this thread?

from depthai.

LaudixGit avatar LaudixGit commented on June 12, 2024

Nope. This script is failing as-is and I reported it as such.
(so the next person looking will know the script has not been repaired yet)

from depthai.

jnpm avatar jnpm commented on June 12, 2024

Awesome, thanks. I followed this but got another error:

error: externally-managed-environment

This environment is externally managed

To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.

If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed.

For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification.

Failed installing dependencies. Could be a bug in the installer or unsupported platform. Open a bug report over at https://github.com/luxonis/depthai - exited with status 1 at line 120

I have the same issue. Have you resolved it?

from depthai.

katerina-stemberova avatar katerina-stemberova commented on June 12, 2024

error: externally-managed-environment

I believe I have a solution for this issue. The problem arises when pip is told to upgrade itself at the end of the installation of the dependencies. If pip was installed as an OS package (which seems to be the case at least with default Python installations on Debian), it will throw the error because it's not supposed to install/manage packages system-wide. Since we just want it to upgrade itself (and not install anything), I just added an alternative command for doing so using apt-get in environments that are externally managed (in the "non-external" ones it will run the original command).

@camchaney @jnpm would you mind testing the updated script? Just download the file and run it locally (bash install_dependencies.sh). It works nicely for me, but it would be good to get a confirmation to avoid the "works on my machine" effect :)

For reference: this behavior was implemented in Python 3.10.

from depthai.

katerina-stemberova avatar katerina-stemberova commented on June 12, 2024

The newest version of the script should also fix the issue with installation of the "libtbb2" package.

@camchaney @LaudixGit feel free to test (download the file and run it locally - bash install_dependencies.sh)

from depthai.

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.