Closed DNicholai closed 8 months ago
Dear David,
thanks for reporting this flaw. The error you are demonstrating indicates that the Pushbullet module for mqttwarn might not have been made ready for Python 3 yet. We will have to improve that.
With kind regards, Andreas.
Dear Andreas,
Thank you for your quick and informed reply.
I am upgrading the docker version in the hopes that it might bring some (admittedly unexpected) benefit.
In the meantime I'll happily continue using my non-docker based install of mqttwarn which still works great :)
Cdt, David
Hi again,
I've just verified that the underlying PushbulletPythonLibrary
package does not support Python 3.
pip install PushbulletPythonLibrary
>>> import pushbullet.pushbullet
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/amo/dev/daq-tools/sources/mqttwarn/.venv311/lib/python3.11/site-packages/pushbullet/pushbullet.py", line 36, in <module>
from urlparse import urljoin
ModuleNotFoundError: No module named 'urlparse'
In the meantime I'll happily continue using my non-docker based install of mqttwarn which still works great.
Excellent. May I ask if you are still using this in a Python 2 environment - like, what does python -V
say?
$ python -V
Python 2.7.16
With kind regards, Andreas.
It will make sense to switch to a more modern client wrapper library, like one of those:
Hello again.
Python on the working install (hasn't been updated in a while) is running the following version :
Python 2.7.9
Dear David,
GH-676 will fix the problem by modernizing the Pushbullet service plugin. Major improvements are:
a) Works now with Python 3.
b) Will not need any external dependencies, thus will be available through OCI image mqttwarn-standard
.
c) Now obtains a modern target address descriptor, based on a dictionary instead of a list, see GH-628. [^1]
You will find corresponding examples how to install the preview version within the PR description. We will be happy about corresponding feedback, if that works for you or not.
With kind regards, Andreas.
[^1]: Please note this change retains backwards-compatibility to the previous configuration style, so you should be able to re-use your existing configuration 1:1. However, we encourage to use the modern configuration style, like outlined in the updated documentation.
mqttwarn 0.35.0 has been released, including this fix, so I am closing this ticket.
I'm having an issue with the pushbullet plugin running on docker - I'm using the full version with all plugins.
Docker version is : 19.03.15, build 99e3ed8919
I'm launching docker using the following command:
And the output from terminal is as follows: