From a074679fdc5cca62896476ab688cd62491de91fa Mon Sep 17 00:00:00 2001 From: juan Date: Wed, 10 Oct 2018 17:35:06 +0200 Subject: [PATCH 1/2] File 'install_dependencies': change all the occurrences of the variable name 'is_installed_libjpeg8-dev' to 'is_installed_libjpeg8_dev' so the bash does not take it as a substraction --- install_dependencies | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install_dependencies b/install_dependencies index 15459a28..6e407da6 100755 --- a/install_dependencies +++ b/install_dependencies @@ -13,7 +13,7 @@ repo_dir=`pwd` is_installed_django=False is_installed_python_smbus=False is_installed_python_opencv=False -is_installed_libjpeg8-dev=False +is_installed_libjpeg8_dev=False if [ "$(whoami)" != "root" ] ; then echo -e "You must run this script as root." @@ -65,7 +65,7 @@ function print_result(){ echo -e "Failed" fi echo -e "libjpeg8-dev \c" - if $is_installed_libjpeg8-dev; then + if $is_installed_libjpeg8_dev; then echo -e "Success" else echo -e "Failed" @@ -123,7 +123,7 @@ fi echo -e "\nInstalling libjpeg8-dev \n" if sudo apt-get install libjpeg8-dev -y; then echo -e " Successfully installed libjpeg8-dev \n" - is_installed_libjpeg8-dev=true + is_installed_libjpeg8_dev=true else echo -e " Failed to installed libjpeg8-dev \n" echo -e " Do you want to skip this? \c" @@ -172,7 +172,7 @@ echo -e "complete\n" # Enable I2C1 # ################################### # Add lines to /boot/config.txt -echo -e "Enalbe I2C \n" +echo -e "Enable I2C \n" egrep -v "^#|^$" /boot/config.txt > config.txt.temp # pick up all uncomment configrations if grep -q 'dtparam=i2c_arm=on' config.txt.temp; then # whether i2c_arm in uncomment configrations or not echo -e ' Seem i2c_arm parameter already set, skip this step \n' @@ -193,4 +193,4 @@ if [ $? = 1 ]; then else echo -e "Exiting..." exit -fi \ No newline at end of file +fi From 6d84fed23eb96f2de0c500b64e96cfd6d46a707c Mon Sep 17 00:00:00 2001 From: juan Date: Thu, 11 Oct 2018 17:50:55 +0200 Subject: [PATCH 2/2] Add requirements.txt with necessary python packages to be installed with pip --- requirements.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..f4922c7e --- /dev/null +++ b/requirements.txt @@ -0,0 +1,8 @@ +certifi==2018.8.24 +chardet==3.0.4 +idna==2.7 +pkg-resources==0.0.0 +PyQt5==5.11.3 +PyQt5-sip==4.19.12 +requests==2.19.1 +urllib3==1.23