Code Monkey home page Code Monkey logo

Comments (8)

DNicholai avatar DNicholai commented on June 12, 2024 1

Dear Andreas,

As mentioned in GH-676 -- confirmed as working, thanks so much ^^

Best regards,
David

from mqttwarn.

amotl avatar amotl commented on June 12, 2024

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.

from mqttwarn.

DNicholai avatar DNicholai commented on June 12, 2024

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

from mqttwarn.

amotl avatar amotl commented on June 12, 2024

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.

from mqttwarn.

amotl avatar amotl commented on June 12, 2024

It will make sense to switch to a more modern client wrapper library, like one of those:

from mqttwarn.

DNicholai avatar DNicholai commented on June 12, 2024

Hello again.

Python on the working install (hasn't been updated in a while) is running the following version :

Python 2.7.9

from mqttwarn.

amotl avatar amotl commented on June 12, 2024

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.

Footnotes

  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.

from mqttwarn.

amotl avatar amotl commented on June 12, 2024

mqttwarn 0.35.0 has been released, including this fix, so I am closing this ticket.

from mqttwarn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.