question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Apprise fails under Python 3.5

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
clach04commented, Jun 2, 2021

@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.

1reaction
amotlcommented, Jun 2, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found