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

Web server won't start following apt upgrade #136

Open
DervMan opened this issue Oct 16, 2023 · 2 comments
Open

Web server won't start following apt upgrade #136

DervMan opened this issue Oct 16, 2023 · 2 comments

Comments

@DervMan
Copy link

DervMan commented Oct 16, 2023

I've been using this brilliant solution for quite a few years. It's running on a PI and I've never had an issue before. However! I recently apt upgraded the Raspbian OS and now controller.py won't start up. Here's some additional info

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster

Here's the error when loading via the cli

root@pi:/home/pi/garage-door-controller# python controller.py
Unhandled error in Deferred:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1267, in run
    self.mainLoop()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1276, in mainLoop
    self.runUntilCurrent()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 902, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/task.py", line 239, in __call__
    d = defer.maybeDeferred(self.f, *self.a, **self.kw)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 151, in maybeDeferred
    result = f(*args, **kw)
  File "controller.py", line 152, in status_check
    self.send_msg(door, title, message)
  File "controller.py", line 166, in send_msg
    for alert in self.alert_type:
exceptions.TypeError: 'NoneType' object is not iterable

I've pulled a clean version using the install guide and currently have the default config file having also tried the previous (working) config.

Any suggestions/thoughts as to what's failing?

Thanks

@Gilles94500
Copy link

Gilles94500 commented Oct 17, 2023 via email

@DervMan
Copy link
Author

DervMan commented Oct 17, 2023

I've reinstalled raspbian on the PI and that comes with Python3. Looking at the forum that won't work with this code. It's a real shame as this software is brilliant. I'm not going to spend anymore time on this and instead look for an altertive tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants