[Python-modules-team] Bug#911861: python-hbmqtt FTBFS with Python 3.7
Helmut Grohne
helmut at subdivi.de
Thu Oct 25 16:36:28 BST 2018
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 "<frozen importlib._bootstrap>", line 696, in _load
| File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
| File "<frozen importlib._bootstrap_external>", line 728, in exec_module
| File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
| File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_hbmqtt/build/tests/plugins/test_persistence.py", line 10, in <module>
| from hbmqtt.plugins.manager import BaseContext
| File "/<<PKGBUILDDIR>>/.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 /<<PKGBUILDDIR>>/.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
More information about the Python-modules-team
mailing list