Public bug reported:

Ubuntu 19.04 ships with python 3.7 and hbmqtt 0.9.2, but they are not
compatible.

If trying to instal python3-hbmqtt, you get this:

$ sudo apt-get install python3-hbmqtt
[...]
Setting up python3-hbmqtt (0.9.2-2) ...
  File "/usr/lib/python3/dist-packages/hbmqtt/broker.py", line 29
    from asyncio import async as ensure_future
                            ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/hbmqtt/client.py", line 26
    from asyncio import async as ensure_future
                            ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/hbmqtt/mqtt/protocol/client_handler.py", 
line 21
    from asyncio import async as ensure_future
                            ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/hbmqtt/mqtt/protocol/handler.py", line 38
    from asyncio import async as ensure_future
                            ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/hbmqtt/plugins/manager.py", line 16
    from asyncio import async as ensure_future
                            ^
SyntaxError: invalid syntax

  File "/usr/lib/python3/dist-packages/hbmqtt/plugins/sys/broker.py", line 12
    from asyncio import async as ensure_future
                            ^
SyntaxError: invalid syntax

dpkg: error processing package python3-hbmqtt (--configure):
 installed python3-hbmqtt package post-installation script subprocess returned 
error exit status 1
Errors were encountered while processing:
 python3-hbmqtt
E: Sub-process /usr/bin/dpkg returned an error code (1)

To fix the issue, the following commit from hbmqtt repository is
required:

https://github.com/beerfactory/hbmqtt/commit/31888f8e691b0c51d61fc1a201ff99daa7a0eb8e

** Affects: python-hbmqtt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842281

Title:
  hbmqtt 0.9.2 does not support python 3.7

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-hbmqtt/+bug/1842281/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to