Apprise fails under Python 3.5
See original GitHub issueI made a quick apprise-telegram listener and this works with Python2 but fails with Python 3.5.3 (default Raspbian).
ERROR [mqttwarn.services.apprise-telegram] Error sending message to n/a: There is no current event loop in thread 'Thread-2'.
on apobj.notify()
call.
config extract:
[config:apprise-telegram]
module = 'apprise'
baseuri = 'tgram://TOKENS GO HERE'
; Surrogate for satisfying machinery.
targets = {
'n/a' : [''],
}
[apprise-test]
topic = apprise/#
targets = apprise-telegram
format = Alarm from {device}: {payload}
title = Alarm from {device}
[apprise__telegram]
targets = apprise-telegram
test:
echo '{"device": "foobar", "payload": "this is the payload"}' | mosquitto_pub -t 'apprise/foo' -l
echo 'this is the payload' | mosquitto_pub -t 'apprise__telegram' -l
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Error compiling on Raspberry Pi · Issue #91 - GitHub
Compiling stops with an error __ Distributor ID: Raspbian ... /apprise-0.0.9-py2.py3-none-any.whl Collecting apscheduler>=3.5.1 (from -r ...
Read more >python 3.5.2 built from source fails to install completely on Mac ...
I am on Mac OS X 10.11.6 trying to build and install Python 3.5.2 from source. I only have system Python 2.7.10 ,...
Read more >Dbus-python Dependency (any version) does not work
Hi, I recently added a small feature to my program (apprise) that requires the dbus library to be present for unit testing.
Read more >0.101: Airly, Apprise, Sinch, Solar-Log, Microsoft Teams - Blog
We had a total of 1318 PRs merged in the last month. ... Looking at your log it mentions something about python 3.5,...
Read more >pip: sys.stderr.write(f"ERROR: {exc}") with Python 3.5 [duplicate]
f-strings were introduced in Python 3.6. · And how can I repare this ? · reinstall Python · More correctly: upgrade Python3, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
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, Andreas.