Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/issue 17/client py requirements #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions install_dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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'
Expand All @@ -193,4 +193,4 @@ if [ $? = 1 ]; then
else
echo -e "Exiting..."
exit
fi
fi
8 changes: 8 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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