From 6a7c444dbd0fff1e6aa2171fda584db8d1c48780 Mon Sep 17 00:00:00 2001 From: radio24 Date: Wed, 24 Jan 2024 22:53:28 +0100 Subject: [PATCH] Fix: opencv-python-headless hangs when installed with pip --- install/run_install.sh | 3 +++ install/run_install_on_debian.sh | 3 +++ install/run_install_on_ubuntu.sh | 3 +++ requirements.txt | 1 - 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/install/run_install.sh b/install/run_install.sh index 29f4ea4e..2709d9c7 100755 --- a/install/run_install.sh +++ b/install/run_install.sh @@ -668,6 +668,9 @@ if [ -f "$PYTHON_LIB_PATH/EXTERNALLY-MANAGED" ] ; then sudo rm "$PYTHON_LIB_PATH/EXTERNALLY-MANAGED" fi +# NEW v.0.5.4: opencv-python-headless hangs when installed with pip +check_install_packages "python3-opencv" + # NEW v.0.5.3: New way to install and check Python requirements # Important: mechanize 0.4.8 cannot correctly be installed under Raspberry Pi OS # the folder /usr/local/lib/python3.9/distpackages/mechanize is missing diff --git a/install/run_install_on_debian.sh b/install/run_install_on_debian.sh index 335a83d9..fccf6b4c 100755 --- a/install/run_install_on_debian.sh +++ b/install/run_install_on_debian.sh @@ -670,6 +670,9 @@ if [ -f "$PYTHON_LIB_PATH/EXTERNALLY-MANAGED" ] ; then rm "$PYTHON_LIB_PATH/EXTERNALLY-MANAGED" fi +# NEW v.0.5.4: opencv-python-headless hangs when installed with pip +check_install_packages "python3-opencv" + # NEW v.0.5.3: New way to install and check Python requirements # Important: mechanize 0.4.8 cannot correctly be installed under Raspberry Pi OS # the folder /usr/local/lib/python3.9/distpackages/mechanize is missing diff --git a/install/run_install_on_ubuntu.sh b/install/run_install_on_ubuntu.sh index aeb81513..47bc6abf 100755 --- a/install/run_install_on_ubuntu.sh +++ b/install/run_install_on_ubuntu.sh @@ -717,6 +717,9 @@ if [ -f "$PYTHON_LIB_PATH/EXTERNALLY-MANAGED" ] ; then sudo rm "$PYTHON_LIB_PATH/EXTERNALLY-MANAGED" fi +# NEW v.0.5.4: opencv-python-headless hangs when installed with pip +check_install_packages "python3-opencv" + # NEW v.0.5.3: New way to install and check Python requirements # Important: mechanize 0.4.8 cannot correctly be installed under Raspberry Pi OS # the folder /usr/local/lib/python3.9/distpackages/mechanize is missing diff --git a/requirements.txt b/requirements.txt index d9e674d6..c1da072e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -21,7 +21,6 @@ gunicorn iniconfig mechanize==0.4.7 numpy -opencv-python-headless paramiko peewee peewee-migrate