The first error occurs because your user probably does not have permission to bind to the port specified in the config. Port <= 1024 on Linux requires root privileges. So you need to run "sudo /home/pi/domoboard/bin/python /home/pi/domoboard/server.py -d -c /home/pi/domoboard/example2.conf -d".sander815 wrote:why am i getting these errors?
pi@raspberrypi:~/domoboard $ /home/pi/domoboard/bin/python /home/pi/domoboard/server.py -d -c /home/pi/domoboard/example2.conf -d
Error when starting the Flask server: [Errno 13] Permission denied
and if i run it like this
pi@raspberrypi:~/domoboard $ python /home/pi/domoboard/server.py -d -c /home/pi/domoboard/test.conf
Traceback (most recent call last):
File "/home/pi/domoboard/server.py", line 4, in <module>
from flaskext.auth import Auth, AuthUser, login_required, logout
ImportError: No module named auth
The second error occurs because you installed Domoboard within an virtualenv. The auth module is only installed within this virtualenv. Go into your virtualenv with:
cd /<path>/domoboard/
source bin/activate
When calling python (with sudo), it should work.