--- Begin Message ---
Source: pyzabbix
Version: 0.7.4-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201027 ftbfs-bullseye
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> debian/rules build
> dh /usr/share/openstack-pkg-tools/pkgos.make --buildsystem=pybuild --with
> python3
> dh: error: Unknown sequence /usr/share/openstack-pkg-tools/pkgos.make (choose
> from: binary binary-arch binary-indep build build-arch build-indep clean
> install install-arch install-indep)
> dh build --buildsystem=pybuild --with python3
> dh_update_autotools_config -O--buildsystem=pybuild
> dh_autoreconf -O--buildsystem=pybuild
> dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:217: python3.9 setup.py config
> running config
> I: pybuild base:217: python3.8 setup.py config
> running config
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:217: /usr/bin/python3.9 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pyzabbix/build/pyzabbix
> copying pyzabbix/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pyzabbix/build/pyzabbix
> I: pybuild base:217: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyzabbix/build/pyzabbix
> copying pyzabbix/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pyzabbix/build/pyzabbix
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild pybuild:284: cp -r /<<PKGBUILDDIR>>/tests
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pyzabbix/build/
> I: pybuild base:217: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pyzabbix/build; python3.9 -m unittest
> discover -v tests
> test_host_delete (test_api.TestPyZabbix) ...
> /usr/lib/python3/dist-packages/httpretty/core.py:485: ResourceWarning:
> unclosed file <_io.BufferedRandom name=4>
> self.fd = FakeSockFile()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /usr/lib/python3/dist-packages/httpretty/core.py:485: ResourceWarning:
> unclosed file <_io.BufferedRandom name=5>
> self.fd = FakeSockFile()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ERROR
> test_host_get (test_api.TestPyZabbix) ...
> /usr/lib/python3/dist-packages/httpretty/core.py:485: ResourceWarning:
> unclosed file <_io.BufferedRandom name=6>
> self.fd = FakeSockFile()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /usr/lib/python3/dist-packages/httpretty/core.py:485: ResourceWarning:
> unclosed file <_io.BufferedRandom name=7>
> self.fd = FakeSockFile()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ERROR
> test_login (test_api.TestPyZabbix) ...
> /usr/lib/python3/dist-packages/httpretty/core.py:485: ResourceWarning:
> unclosed file <_io.BufferedRandom name=8>
> self.fd = FakeSockFile()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /usr/lib/python3/dist-packages/httpretty/core.py:485: ResourceWarning:
> unclosed file <_io.BufferedRandom name=9>
> self.fd = FakeSockFile()
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ERROR
>
> ======================================================================
> ERROR: test_host_delete (test_api.TestPyZabbix)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/httpretty/core.py", line 1638, in
> wrapper
> return test(*args, **kw)
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pyzabbix/build/tests/test_api.py",
> line 96, in test_host_delete
> result = zapi.host.delete("22982", "22986")
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pyzabbix/build/pyzabbix/__init__.py",
> line 155, in fn
> return self.parent.do_request(
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pyzabbix/build/pyzabbix/__init__.py",
> line 100, in do_request
> response = self.session.post(
> File "/usr/lib/python3/dist-packages/requests/sessions.py", line 578, in
> post
> return self.request('POST', url, data=data, json=json, **kwargs)
> File "/usr/lib/python3/dist-packages/requests/sessions.py", line 530, in
> request
> resp = self.send(prep, **send_kwargs)
> File "/usr/lib/python3/dist-packages/requests/sessions.py", line 643, in
> send
> r = adapter.send(request, **kwargs)
> File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in
> send
> resp = conn.urlopen(
> File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 670,
> in urlopen
> httplib_response = self._make_request(
> File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 426,
> in _make_request
> six.raise_from(e, None)
> File "<string>", line 3, in raise_from
> File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421,
> in _make_request
> httplib_response = conn.getresponse()
> File "/usr/lib/python3.9/http/client.py", line 1343, in getresponse
> response = self.response_class(self.sock, method=self._method)
> File "/usr/lib/python3.9/http/client.py", line 245, in __init__
> self.fp = sock.makefile("rb")
> File "/usr/lib/python3/dist-packages/httpretty/core.py", line 438, in
> makefile
> if t.isAlive():
> AttributeError: 'Thread' object has no attribute 'isAlive'
>
> ======================================================================
> ERROR: test_host_get (test_api.TestPyZabbix)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/httpretty/core.py", line 1638, in
> wrapper
> return test(*args, **kw)
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pyzabbix/build/tests/test_api.py",
> line 60, in test_host_get
> result = zapi.host.get()
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pyzabbix/build/pyzabbix/__init__.py",
> line 155, in fn
> return self.parent.do_request(
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pyzabbix/build/pyzabbix/__init__.py",
> line 100, in do_request
> response = self.session.post(
> File "/usr/lib/python3/dist-packages/requests/sessions.py", line 578, in
> post
> return self.request('POST', url, data=data, json=json, **kwargs)
> File "/usr/lib/python3/dist-packages/requests/sessions.py", line 530, in
> request
> resp = self.send(prep, **send_kwargs)
> File "/usr/lib/python3/dist-packages/requests/sessions.py", line 643, in
> send
> r = adapter.send(request, **kwargs)
> File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in
> send
> resp = conn.urlopen(
> File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 670,
> in urlopen
> httplib_response = self._make_request(
> File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 426,
> in _make_request
> six.raise_from(e, None)
> File "<string>", line 3, in raise_from
> File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421,
> in _make_request
> httplib_response = conn.getresponse()
> File "/usr/lib/python3.9/http/client.py", line 1343, in getresponse
> response = self.response_class(self.sock, method=self._method)
> File "/usr/lib/python3.9/http/client.py", line 245, in __init__
> self.fp = sock.makefile("rb")
> File "/usr/lib/python3/dist-packages/httpretty/core.py", line 438, in
> makefile
> if t.isAlive():
> AttributeError: 'Thread' object has no attribute 'isAlive'
>
> ======================================================================
> ERROR: test_login (test_api.TestPyZabbix)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/httpretty/core.py", line 1638, in
> wrapper
> return test(*args, **kw)
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pyzabbix/build/tests/test_api.py",
> line 22, in test_login
> zapi.login('mylogin', 'mypass')
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pyzabbix/build/pyzabbix/__init__.py",
> line 70, in login
> self.auth = self.user.login(user=user, password=password)
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pyzabbix/build/pyzabbix/__init__.py",
> line 155, in fn
> return self.parent.do_request(
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pyzabbix/build/pyzabbix/__init__.py",
> line 100, in do_request
> response = self.session.post(
> File "/usr/lib/python3/dist-packages/requests/sessions.py", line 578, in
> post
> return self.request('POST', url, data=data, json=json, **kwargs)
> File "/usr/lib/python3/dist-packages/requests/sessions.py", line 530, in
> request
> resp = self.send(prep, **send_kwargs)
> File "/usr/lib/python3/dist-packages/requests/sessions.py", line 643, in
> send
> r = adapter.send(request, **kwargs)
> File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in
> send
> resp = conn.urlopen(
> File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 670,
> in urlopen
> httplib_response = self._make_request(
> File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 426,
> in _make_request
> six.raise_from(e, None)
> File "<string>", line 3, in raise_from
> File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 421,
> in _make_request
> httplib_response = conn.getresponse()
> File "/usr/lib/python3.9/http/client.py", line 1343, in getresponse
> response = self.response_class(self.sock, method=self._method)
> File "/usr/lib/python3.9/http/client.py", line 245, in __init__
> self.fp = sock.makefile("rb")
> File "/usr/lib/python3/dist-packages/httpretty/core.py", line 438, in
> makefile
> if t.isAlive():
> AttributeError: 'Thread' object has no attribute 'isAlive'
>
> ----------------------------------------------------------------------
> Ran 3 tests in 0.009s
>
> FAILED (errors=3)
> E: pybuild pybuild:352: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pyzabbix/build; python3.9 -m unittest
> discover -v tests
> dh_auto_test: error: pybuild --test -i python{version} -p "3.9 3.8" returned
> exit code 13
The full build log is available from:
http://qa-logs.debian.net/2020/10/27/pyzabbix_0.7.4-1_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
--- End Message ---