From 2d7f0b292f69c26ba0506a4e4069e7939dd28ba0 Mon Sep 17 00:00:00 2001 From: Cyril Guislain Date: Sun, 19 May 2024 07:33:34 +0200 Subject: [PATCH] Fix Install issue for Creality K1 (#78) * Fix Install issue for Creality K1 This PR fix Pillow installation issue with Creality K1 Series. * Update install.sh --- install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index a2c7b00..d2c581f 100755 --- a/install.sh +++ b/install.sh @@ -76,7 +76,8 @@ PKGLIST="python3 python3-pip virtualenv curl" # For the Creality OS, we only need to install these. # We don't override the default name, since that's used by the Moonraker installer # Note that we DON'T want to use the same name as above (not even in this comment) because some parsers might find it. -CREALITY_DEP_LIST="python3 python3-pip" +SONIC_PAD_DEP_LIST="python3 python3-pip" +CREALITY_DEP_LIST="python3 python3-pillow python3-pip" # @@ -212,13 +213,15 @@ install_or_update_system_dependencies() # On the K1, the only we thing we ensure is that virtualenv is installed via pip. if [[ -f /opt/bin/opkg ]] then + opkg update || true opkg install ${CREALITY_DEP_LIST} fi pip3 install --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host=files.pythonhosted.org --no-cache-dir virtualenv elif [[ $IS_SONIC_PAD_OS -eq 1 ]] then # The sonic pad always has opkg installed, so we can make sure these packages are installed. - opkg install ${CREALITY_DEP_LIST} + opkg update || true + opkg install ${SONIC_PAD_DEP_LIST} pip3 install virtualenv else log_important "You might be asked for your system password - this is required to install the required system packages."