bkbilly / AlarmPI

🚨 Home Security Intrusion Detection for Raspberry PI or any other linux OS
http://bkbilly.github.io/AlarmPI/
MIT License
105 stars 13 forks source link

cannot import name 'run_with_reloader' from 'werkzeug.serving', rpi os bullseye 32 bit #24

Closed CristianEduardMihai closed 2 years ago

CristianEduardMihai commented 2 years ago

OS Version Distributor ID: Raspbian Description: Raspbian GNU/Linux 11 (bullseye) Release: 11 Codename: bullseye

AlarmPI version 8106769d83c1f1d697173c5e352e4e3cb3d5c4ec *Latest, just installed

Error Logs

 No such file
instead, I will show the output of `sudo systemctl status alarmpi`

image

Configuration

{
    "http": {
        "enable": false,
        "host": "",
        "https": true,
        "password": "",
        "port": 443,
        "username": "test1"
    },
    "mail": {
        "enable": false,
        "messageBody": "Alert",
        "messageSubject": "Home Security",
        "password": "",
        "recipients": [],
        "smtpPort": 587,
        "smtpServer": "smtp.gmail.com",
        "username": ""
    },
    "mqtt": {
        "authentication": false,
        "command_topic": "home/alarm2/set",
        "enable": false,
        "host": "",
        "password": "",
        "port": 1883,
        "state_topic": "home/alarm2",
        "username": "",
        "homeassistant": false
    },
    "sensors": {
    },
    "serene": {
        "enable": false,
        "http_start": "",
        "http_stop": "",
        "pin": 14
    },
    "settings": {
        "alarmState": "disarmed",
        "timezone": "Europe/Athens",
        "trim": 1000
    },
    "voip": {
        "domain": "",
        "enable": false,
        "numbersToCall": [],
        "password": "",
        "timesOfRepeat": "",
        "username": ""
    }
}
CristianEduardMihai commented 2 years ago

Made it work!

sudo pip3 uninstall flask
sudo pip3 uninstall flask-socketio
sudo pip3 uninstall flask-login

sudo pip3 install flask
sudo pip3 install flask-socketio
sudo pip3 install flask-login

Thanks to this answer