luxonis / depthai

DepthAI Python API utilities, examples, and tutorials.
https://docs.luxonis.com
MIT License
938 stars 232 forks source link

[BUG] {exited with status 1 at line 210, Ubuntu 22.04 64-bit} #1197

Closed Jai-GAY closed 2 months ago

Jai-GAY commented 2 months ago

Describe the bug

sudo wget -qO- https://docs.luxonis.com/install_depthai.sh | bash
Running Linux installer.
Downloading demo app.
Cloning into '/home/pi/Luxonis/depthai'...
Updating files:  12% (60/499)
Updating files: 100% (499/499), done.
Already on 'main'
Your branch is up to date with 'origin/main'.
Already up to date.
Creating python virtual environment in /home/pi/Luxonis/venv
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt install python3.10-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: /home/pi/Luxonis/venv/bin/python3

Failed installing depthai. 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 210

setup.txt

brmarkus commented 2 months ago

The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command.

apt install python3.10-venv

You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment.

Have you tried to install it, like with sudo apt install python3.10-venv (or apt install python3.10-venv depending on your user accoung privileges) and then try the installation again?

Wondering why the install script install_depthai.sh wouldn't install the Python virtual environment package as it obviously uses it...

Jai-GAY commented 2 months ago

yes, did the fix and redo install_depthai.sh

sudo apt install python3.10-venv
sudo wget -qO- https://docs.luxonis.com/install_depthai.sh | bash