-
Notifications
You must be signed in to change notification settings - Fork 182
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
Apprise fails under Python 3.5 #456
Comments
Dear @clach04, thanks for reporting this and for providing a complete configuration in order to be able to reproduce your observations. When using Python 3.9.0b5, it seems to work flawlessly:
I am using the token from https://www.siteguarding.com/en/how-to-get-telegram-bot-api-token, so the With kind regards, |
Indeed, when using Python 3.5, it reports the same thing you have been able to observe.
|
I just found caronc/apprise#273, which adds Python asyncio integration to Apprise 0.8.8 in order to send notifications asynchronously. @caronc says:
#462 implements that. |
@amotl thanks for the mention. I'll look into this one and see what I can figure out. Edit: I can't reproduce this issue; I've identified the steps I've taken to reproduce this in the issue (cross referenced below). Can you spot anything I'm doing differently? |
Thanks @amotl for the detailed reply and fix!. Python 3.9 is really new and not available on all platforms yet, so good to know that's an option for the future :-) I'm deploying on a Raspberry Pi (and other SBCs) and 3.5 is the latest available without manually building Python. I've not had a chance to pull down the latest code to see the new fix (not sure when I'll have time). Your workaround was super easy and fast to apply:
Worked a treat 👍 I'm excited about Apprise as it means I can code a single notification plugin and have it available to both mqttwarn and regular python code that's using Apprise - nice work! |
Hi again, we do not longer run tests on Python 3.5. Thank you very much for your efforts on this back then! @clach04: I also believe you are satisfied with the workaround you discovered? Feel free to reopen when appropriate. With kind regards, |
@amotl Apologies for not responding sooner, I either missed or forgot the request to test with headrev code :-( Yes, I'm happy with original workaround. I do have a project that I'd like to start that would use this (not sure when I'll get time to start though....) where I'll make sure I use headrevs. If I hit any issues I'll be sure to open a ticket and cross reference to this. |
I made a quick apprise-telegram listener and this works with Python2 but fails with Python 3.5.3 (default Raspbian).
on
apobj.notify()
call.config extract:
test:
The text was updated successfully, but these errors were encountered: