Error installing script

Hi

I got an error trying to installing the script:

kjenset@brewpi:~$ git clone https://github.com/BrewPi/brewpi-tools.git ~/brewpi-tools
Cloning into ‘/home/kjenset/brewpi-tools’…
remote: Counting objects: 394, done.
remote: Compressing objects: 100% (6/6), done.
Receiving objects: 100% (394/394), 112.55 KiB | 198 KiB/s, done.
remote: Total 394 (delta 2), reused 0 (delta 0), pack-reused 388
Resolving deltas: 100% (238/238), done.
kjenset@brewpi:~$ sudo ~/brewpi-tools/install.sh
[sudo] password for kjenset:

Checking for Internet connection…
Success!

To accept the default answer, just press Enter.
The default is capitalized in a Yes/No question: [Y/n]
or shown between brackets for other questions: [default]

Checking whether this script is up to date…

/home/kjenset/brewpi-tools is up-to-date.

Disk usage is 3%, free disk space is 108G. Enough to install BrewPi

The time is currently set to ma. 23. mars 13:30:40 +0100 2015. Is this correct? [Y/n]y

*** This script will first ask you where to install the brewpi python scripts and the web interface
Hitting ‘enter’ will accept the default option in [brackets] (recommended).

Any data in the following location will be ERASED during install!
Where would you like to install BrewPi? [/home/brewpi]: y
Installing script in /home/brewpi

Any data in the following location will be ERASED during install!
What should be the path to your web directory for brewpi? [/var/www]: y
Installing web interface in /var/www
Web directory is NOT empty, are you SURE you want to use this path? [y/N] y
Ok, we warned you!

***** Installing/updating required packages… *****

Reading package lists… Done
Building dependency tree
Reading state information… Done
python-pip is already the newest version.
apache2 is already the newest version.
build-essential is already the newest version.
git-core is already the newest version.
libapache2-mod-php5 is already the newest version.
php5 is already the newest version.
php5-cgi is already the newest version.
php5-cli is already the newest version.
php5-common is already the newest version.
python-dev is already the newest version.
The following packages were automatically installed and are no longer required:
gir1.2-gstreamer-0.10 libcairomm-1.0-1 libglibmm-2.4-1c2a libatkmm-1.6-1 libsigc+±2.0-0c2a libpangomm-1.4-1
Use ‘apt-get autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

***** Installing/updating required python packages via pip… *****

Downloading/unpacking pyserial
Downloading pyserial-2.7.tar.gz (122Kb): 122Kb downloaded
Running setup.py egg_info for package pyserial

Downloading/unpacking psutil
Downloading psutil-2.2.1.tar.gz (223Kb): 223Kb downloaded
Running setup.py egg_info for package psutil

warning: no previously-included files matching '*' found under directory 'docs/_build'

Downloading/unpacking simplejson
Downloading simplejson-3.6.5.tar.gz (73Kb): 73Kb downloaded
Running setup.py egg_info for package simplejson

Downloading/unpacking configobj
Downloading configobj-5.0.6.tar.gz
Running setup.py egg_info for package configobj

Downloading/unpacking gitpython
Downloading GitPython-0.3.6.tar.gz (353Kb): 353Kb downloaded
Running setup.py egg_info for package gitpython
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_requirements’
warnings.warn(msg)

warning: no files found matching 'README'

Downloading/unpacking six (from configobj)
Downloading six-1.9.0.tar.gz
Running setup.py egg_info for package six

no previously-included directories found matching 'documentation/_build'

Downloading/unpacking gitdb>=0.6.4 (from gitpython)
Downloading gitdb-0.6.4.tar.gz (400Kb): 400Kb downloaded
Running setup.py egg_info for package gitdb

Downloading/unpacking smmap>=0.8.5 (from gitdb>=0.6.4->gitpython)
Downloading smmap-0.9.0.tar.gz
Running setup.py egg_info for package smmap

Installing collected packages: pyserial, psutil, simplejson, configobj, gitpython, six, gitdb, smmap
Found existing installation: pyserial 2.7
Uninstalling pyserial:
Successfully uninstalled pyserial
Running setup.py install for pyserial
changing mode of build/scripts-2.7/miniterm.py from 644 to 755

changing mode of /usr/local/bin/miniterm.py to 755

Found existing installation: psutil 2.2.1
Uninstalling psutil:
Successfully uninstalled psutil
Running setup.py install for psutil
building ‘_psutil_linux’ extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DPSUTIL_VERSION=221 -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-i686-2.7/psutil/_psutil_linux.o
psutil/_psutil_linux.c: In function ‘init_psutil_linux’:
psutil/_psutil_linux.c:571:5: warning: overflow in implicit constant conversion [-Woverflow]
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-i686-2.7/psutil/_psutil_linux.o -o build/lib.linux-i686-2.7/_psutil_linux.so
building ‘_psutil_posix’ extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c psutil/_psutil_posix.c -o build/temp.linux-i686-2.7/psutil/_psutil_posix.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-i686-2.7/psutil/_psutil_posix.o -o build/lib.linux-i686-2.7/_psutil_posix.so

warning: no previously-included files matching '*' found under directory 'docs/_build'

Found existing installation: simplejson 3.6.5
Uninstalling simplejson:
Successfully uninstalled simplejson
Running setup.py install for simplejson
building ‘simplejson._speedups’ extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c simplejson/_speedups.c -o build/temp.linux-i686-2.7/simplejson/_speedups.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-i686-2.7/simplejson/_speedups.o -o build/lib.linux-i686-2.7/simplejson/_speedups.so

Found existing installation: configobj 5.0.6
Uninstalling configobj:
Successfully uninstalled configobj
Running setup.py install for configobj

Found existing installation: GitPython 0.3.6
Uninstalling GitPython:
Successfully uninstalled GitPython
Running setup.py install for gitpython
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_requirements’
warnings.warn(msg)

warning: no files found matching 'README'

Found existing installation: six 1.9.0
Uninstalling six:
Successfully uninstalled six
Running setup.py install for six

no previously-included directories found matching 'documentation/_build'

Found existing installation: gitdb 0.6.4
Uninstalling gitdb:
Successfully uninstalled gitdb
Running setup.py install for gitdb
building ‘gitdb._perf’ extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Igitdb -I/usr/include/python2.7 -c gitdb/_fun.c -o build/temp.linux-i686-2.7/gitdb/_fun.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Igitdb -I/usr/include/python2.7 -c gitdb/_delta_apply.c -o build/temp.linux-i686-2.7/gitdb/_delta_apply.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-i686-2.7/gitdb/_fun.o build/temp.linux-i686-2.7/gitdb/_delta_apply.o -o build/lib.linux-i686-2.7/gitdb/_perf.so

Found existing installation: smmap 0.9.0
Uninstalling smmap:
Successfully uninstalled smmap
Running setup.py install for smmap

Successfully installed pyserial psutil simplejson configobj gitpython six gitdb smmap
Cleaning up…

***** Done processing BrewPi dependencies *****

***** Creating and configuring user accounts… *****
User ‘brewpi’ already exists, skipping…
usermod: user ‘pi’ does not exist

*** ERROR ERROR ERROR ERROR ERROR ***

See above lines for error message
Setup NOT completed

kjenset@brewpi:~$

I’m using Elementary Os and NOT Raspberry Pi!!

Please help

Regards
Kristian

Our install script is really intended to be used on a Raspberry Pi.

The error is on this line:

The line adds the pi user to the brewpi group and the line below adds the pi user to the www-data group.
You can take out those 2 lines, or change the pi to kjenset.