Skip to content

Commit

Permalink
Fix Install issue for Creality K1 (#78)
Browse files Browse the repository at this point in the history
* Fix Install issue for Creality K1

This PR fix Pillow installation issue with Creality K1 Series.

* Update install.sh
  • Loading branch information
Guilouz authored May 19, 2024
1 parent 7b21a5f commit 2d7f0b2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"


#
Expand Down Expand Up @@ -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."
Expand Down

0 comments on commit 2d7f0b2

Please sign in to comment.