Bug#911861: python-hbmqtt FTBFS with Python 3.7

2019-03-03 Thread Stein Magnus Jodal
Control: tags 911861 + fixed-upstream

The FTBFS on Python 3.7 has been fixed upstream since 0.9.3, ref.
https://github.com/beerfactory/hbmqtt/commit/31888f8e691b0c51d61fc1a201ff99daa7a0eb8e

Before packaging the latest release, I'd like upstream to fix
https://github.com/beerfactory/hbmqtt/issues/166, so we don't have to
patch around it to avoid reintroducing #897691.

-jodal


signature.asc
Description: PGP signature


Bug#911861: python-hbmqtt FTBFS with Python 3.7

2018-10-25 Thread Helmut Grohne
Source: python-hbmqtt
Version: 0.9.2-2
Severity: serious
Tags: ftbfs

python-hbmqtt fails to build from source with Python 3.7 as it tries to
use "async" as a variable name:

| ==
| ERROR: Failure: SyntaxError (invalid syntax (manager.py, line 16))
| --
| Traceback (most recent call last):
|   File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
| raise self.exc_val.with_traceback(self.tb)
|   File "/usr/lib/python3/dist-packages/nose/loader.py", line 417, in 
loadTestsFromName
| addr.filename, addr.module)
|   File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in 
importFromPath
| return self.importFromDir(dir_path, fqname)
|   File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in 
importFromDir
| mod = load_module(part_fqname, fh, filename, desc)
|   File "/usr/lib/python3.7/imp.py", line 234, in load_module
| return load_source(name, filename, file)
|   File "/usr/lib/python3.7/imp.py", line 171, in load_source
| module = _load(spec)
|   File "", line 696, in _load
|   File "", line 677, in _load_unlocked
|   File "", line 728, in exec_module
|   File "", line 219, in _call_with_frames_removed
|   File 
"/<>/.pybuild/cpython3_3.7_hbmqtt/build/tests/plugins/test_persistence.py",
 line 10, in 
| from hbmqtt.plugins.manager import BaseContext
|   File 
"/<>/.pybuild/cpython3_3.7_hbmqtt/build/hbmqtt/plugins/manager.py",
 line 16
| from asyncio import async as ensure_future
| ^
| SyntaxError: invalid syntax
| 
| --
| Ran 38 tests in 0.056s
| 
| FAILED (errors=3)
| E: pybuild pybuild:338: test: plugin distutils failed with: exit code=1: cd 
/<>/.pybuild/cpython3_3.7_hbmqtt/build; python3.7 -m nose -v -I 
test_manager.py
| dh_auto_test: pybuild --test -i python{version} -p "3.7 3.6" returned exit 
code 13
| make: *** [debian/rules:13: build] Error 25
| dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Helmut