From 6935162404139718187a7330d86cf22d3cf61266 Mon Sep 17 00:00:00 2001 From: wolfy Date: Sun, 10 Apr 2022 18:32:46 -0600 Subject: [PATCH] Update ubuntu-20.04-install.sh --- scripts/installers/ubuntu-20.04-install.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/installers/ubuntu-20.04-install.sh b/scripts/installers/ubuntu-20.04-install.sh index 13b35403e..3c0157ab7 100755 --- a/scripts/installers/ubuntu-20.04-install.sh +++ b/scripts/installers/ubuntu-20.04-install.sh @@ -61,6 +61,7 @@ function install_arm_requirements() { python3-wheel \ python-psutil \ python3-pyudev \ + python3-testresources \ abcde \ eyed3 \ atomicparsley \ @@ -154,6 +155,15 @@ function setup_config_files() { chown -R arm:arm /etc/arm/ } +function install_python_requirements { + ##### Install the python tools and requirements + echo -e "${RED}Installing up python requirements${NC}" + cd /opt/arm + # running pip with sudo can result in permissions errors, run as arm + sudo -u arm pip3 install --upgrade pip wheel setuptools psutil pyudev + sudo -u arm pip3 install --ignore-installed --prefer-binary -r requirements.txt +} + function setup_autoplay() { ##### Add new line to fstab, needed for the autoplay to work. echo -e "${RED}Adding fstab entry and creating mount points${NC}" @@ -216,6 +226,7 @@ else fi setup_config_files +install_python_requirements setup_autoplay setup_syslog_rule install_armui_service