--- Begin Message ---
Source: python-aioinflux
Version: 0.9.0-4
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20220917 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> debian/rules binary
> dh binary --with python3 --buildsystem=pybuild
> dh_update_autotools_config -O--buildsystem=pybuild
> dh_autoreconf -O--buildsystem=pybuild
> dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:240: python3.10 setup.py config
> running config
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:240: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioinflux/build/aioinflux
> copying aioinflux/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioinflux/build/aioinflux
> copying aioinflux/iterutils.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioinflux/build/aioinflux
> copying aioinflux/client.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioinflux/build/aioinflux
> copying aioinflux/compat.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioinflux/build/aioinflux
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioinflux/build/aioinflux/serialization
> copying aioinflux/serialization/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioinflux/build/aioinflux/serialization
> copying aioinflux/serialization/mapping.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioinflux/build/aioinflux/serialization
> copying aioinflux/serialization/dataframe.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioinflux/build/aioinflux/serialization
> copying aioinflux/serialization/common.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioinflux/build/aioinflux/serialization
> copying aioinflux/serialization/usertype.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioinflux/build/aioinflux/serialization
> running egg_info
> creating aioinflux.egg-info
> writing aioinflux.egg-info/PKG-INFO
> writing dependency_links to aioinflux.egg-info/dependency_links.txt
> writing requirements to aioinflux.egg-info/requires.txt
> writing top-level names to aioinflux.egg-info/top_level.txt
> writing manifest file 'aioinflux.egg-info/SOURCES.txt'
> reading manifest file 'aioinflux.egg-info/SOURCES.txt'
> adding license file 'LICENSE'
> writing manifest file 'aioinflux.egg-info/SOURCES.txt'
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild pybuild:300: mkdir -p /tmp/tmp.3TsrPHp5d4 ; sed
> "s%@TEMPDIR@%/tmp/tmp.3TsrPHp5d4%" debian/test.conf.in >
> /tmp/tmp.3TsrPHp5d4/influxdb.conf ; start-stop-daemon --start --background
> --pidfile /tmp/tmp.3TsrPHp5d4/influxdb.pid --exec /usr/bin/influxd -- -config
> /tmp/tmp.3TsrPHp5d4/influxdb.conf -pidfile /tmp/tmp.3TsrPHp5d4/influxdb.pid
> I: pybuild base:240: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioinflux/build; python3.10 -m pytest
> --ignore=tests/test_dataframe.py
> ============================= test session starts
> ==============================
> platform linux -- Python 3.10.7, pytest-7.1.2, pluggy-1.0.0+repack
> rootdir: /<<PKGBUILDDIR>>, configfile: pytest.ini
> plugins: asyncio-0.19.0
> asyncio: mode=strict
> collected 48 items
>
> tests/test_cache.py::test_cache SKIPPED (Redis dependencies not avai...) [
> 2%]
> tests/test_client.py::test_repr
> -------------------------------- live log call
> ---------------------------------
> 2022-09-17 19:40:05 | aioinflux | INFO: <async_generator object client at
> 0x7f2dc73cfe40>
> PASSED [
> 4%]
> tests/test_client.py::test_ping
> -------------------------------- live log setup
> --------------------------------
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> FAILED [
> 6%]
> tests/test_client.py::test_write_simple FAILED [
> 8%]
> tests/test_client.py::test_write_string FAILED [
> 10%]
> tests/test_client.py::test_write_tagless FAILED [
> 12%]
> tests/test_client.py::test_write_special_values FAILED [
> 14%]
> tests/test_client.py::test_write_with_custom_measurement
> -------------------------------- live log call
> ---------------------------------
> 2022-09-17 19:40:05 | aioinflux | INFO: [{'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'time': datetime.datetime(2022, 9, 17, 19, 40, 5,
> 759180), 'fields': {'fi\neld_k\\ey': 47, 'quote': '"', 'value':
> 0.6213991571133627}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'time': '2022-09-17 19:40:05.759201', 'fields':
> {'fi\neld_k\\ey': 117, 'quote': '"', 'value': 0.15037957141157288}}, {'tags':
> {'tag key with spšces': 'tag,value,with"commas"'}, 'time':
> datetime.datetime(2022, 9, 17, 19, 40, 5, 759207), 'fields':
> {'fi\neld_k\\ey': 187, 'quote': '"', 'value': 0.8804256090208612}}, {'tags':
> {'tag key with spšces': 'tag,value,with"commas"'}, 'time':
> datetime.datetime(2022, 9, 17, 19, 40, 5, 759211), 'fields':
> {'fi\neld_k\\ey': 29, 'quote': '"', 'value': 0.101457863250488}}, {'tags':
> {'tag key with spšces': 'tag,value,with"commas"'}, 'time': '2022-09-17
> 19:40:05.759216', 'fields': {'fi\neld_k\\ey': 172, 'quote': '"', 'value':
> 0.5135952717480896}}]
> FAILED [
> 16%]
> tests/test_client.py::test_write_without_timestamp
> -------------------------------- live log call
> ---------------------------------
> 2022-09-17 19:40:05 | aioinflux | INFO: [{'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 157, 'quote': '"',
> 'value': 0.08276737074045826}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 44, 'quote': '"',
> 'value': 0.6627030206561314}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 86, 'quote': '"',
> 'value': 0.5916090341690353}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 56, 'quote': '"',
> 'value': 0.7249702291317253}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 154, 'quote': '"',
> 'value': 0.74382102099246}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 113, 'quote': '"',
> 'value': 0.9428800452241415}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 136, 'quote': '"',
> 'value': 0.7519769580833728}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 17, 'quote': '"',
> 'value': 0.2719889467328689}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 115, 'quote': '"',
> 'value': 0.8872148831159554}}]
> FAILED [
> 18%]
> tests/test_client.py::test_write_non_string_identifier_and_tags FAILED [
> 20%]
> tests/test_client.py::test_write_to_non_default_db FAILED [
> 22%]
> tests/test_client.py::test_write_to_non_default_rp FAILED [
> 25%]
> tests/test_client.py::test_simple_query FAILED [
> 27%]
> tests/test_client.py::test_chunked_query FAILED [
> 29%]
> tests/test_client.py::test_empty_chunked_query FAILED [
> 31%]
> tests/test_client.py::test_create_database FAILED [
> 33%]
> tests/test_client.py::test_drop_database FAILED [
> 35%]
> tests/test_client.py::test_drop_measurement FAILED [
> 37%]
> tests/test_client.py::test_show_databases FAILED [
> 39%]
> tests/test_client.py::test_show_measurements FAILED [
> 41%]
> tests/test_client.py::test_show_users FAILED [
> 43%]
> tests/test_client.py::test_show_series FAILED [
> 45%]
> tests/test_client.py::test_show_retention_policies FAILED [
> 47%]
> tests/test_client.py::test_show_tag_keys FAILED [
> 50%]
> tests/test_client.py::test_show_field_keys FAILED [
> 52%]
> tests/test_client.py::test_show_tag_values FAILED [
> 54%]
> tests/test_client.py::test_show_continuous_queries FAILED [
> 56%]
> tests/test_client.py::test_chunked_query_error FAILED [
> 58%]
> tests/test_client.py::test_invalid_data_write FAILED [
> 60%]
> tests/test_client.py::test_invalid_client_mode
> -------------------------------- live log call
> ---------------------------------
> 2022-09-17 19:40:05 | aioinflux | ERROR: <ExceptionInfo ValueError('Invalid
> running mode') tblen=3>
> PASSED [
> 62%]
> tests/test_client.py::test_no_default_database_warning
> -------------------------------- live log call
> ---------------------------------
> 2022-09-17 19:40:05 | aioinflux | ERROR: WarningsChecker(record=True)
> PASSED [
> 64%]
> tests/test_client.py::test_invalid_output_format FAILED [
> 66%]
> tests/test_client.py::test_invalid_query FAILED [
> 68%]
> tests/test_client.py::test_statement_error FAILED [
> 70%]
> ------------------------------ live log teardown
> -------------------------------
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
>
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
>
> tests/test_iter.py::test_iterpoints_with_parser
> -------------------------------- live log setup
> --------------------------------
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> FAILED [
> 72%]
> tests/test_iter.py::test_aiter_point FAILED [
> 75%]
> tests/test_iter.py::test_iter_point_namedtuple FAILED [
> 77%]
> ------------------------------ live log teardown
> -------------------------------
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
>
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
>
> tests/test_serialization.py::test_timestamp_timezone_parsing PASSED [
> 79%]
> tests/test_serialization.py::test_invalid_timestamp_parsing SKIPPED [
> 81%]
> tests/test_serialization.py::test_invalid_timestamp_parsing2
> -------------------------------- live log call
> ---------------------------------
> 2022-09-17 19:40:05 | aioinflux | ERROR: <ExceptionInfo ValueError("Invalid
> character while parsing year ('f', Index: 0)") tblen=2>
> PASSED [
> 83%]
> tests/test_usertype.py::test_decorator
> -------------------------------- live log setup
> --------------------------------
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> FAILED [
> 85%]
> tests/test_usertype.py::test_functional
> -------------------------------- live log call
> ---------------------------------
> 2022-09-17 19:40:05 | aioinflux | DEBUG: b'a,host=b running=False,users=5i 2'
> PASSED [
> 87%]
> tests/test_usertype.py::test_datestr
> -------------------------------- live log call
> ---------------------------------
> 2022-09-17 19:40:05 | aioinflux | DEBUG: b'a,host=b running=False,users=5i
> 1533741753000000000'
> PASSED [
> 89%]
> tests/test_usertype.py::test_datetime
> -------------------------------- live log call
> ---------------------------------
> 2022-09-17 19:40:05 | aioinflux | DEBUG: b'a,host=b running=False,users=5i
> 1663443605995643000'
> PASSED [
> 91%]
> tests/test_usertype.py::test_placeholder
> -------------------------------- live log call
> ---------------------------------
> 2022-09-17 19:40:05 | aioinflux | DEBUG: b'MyPoint _=true 0'
> PASSED [
> 93%]
> tests/test_usertype.py::test_extra_tags PASSED [
> 95%]
> tests/test_usertype.py::test_rm_none
> -------------------------------- live log call
> ---------------------------------
> 2022-09-17 19:40:06 | aioinflux | DEBUG: b'a,host=b running=True 2'
> 2022-09-17 19:40:06 | aioinflux | DEBUG: b'a,host=b users=1i 2'
> PASSED [
> 97%]
> tests/test_usertype.py::test_schema_error PASSED
> [100%]
> ------------------------------ live log teardown
> -------------------------------
> 2022-09-17 19:40:06 | asyncio | DEBUG: Using selector: EpollSelector
>
>
> =================================== FAILURES
> ===================================
> __________________________________ test_ping
> ___________________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_ping(client):
> > r = await client.ping()
> E AttributeError: 'async_generator' object has no attribute 'ping'
>
> tests/test_client.py:14: AttributeError
> ------------------------------ Captured log setup
> ------------------------------
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> ______________________________ test_write_simple
> _______________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_write_simple(client):
> > assert await client.write(utils.random_points(100))
> E AttributeError: 'async_generator' object has no attribute 'write'
>
> tests/test_client.py:24: AttributeError
> ______________________________ test_write_string
> _______________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_write_string(client):
> point = 'cpu_load_short,host=server02,region=us-west value=0.55
> 1422568543702900257'
> > assert await client.write(point)
> E AttributeError: 'async_generator' object has no attribute 'write'
>
> tests/test_client.py:30: AttributeError
> ______________________________ test_write_tagless
> ______________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_write_tagless(client):
> point = b'cpu_load_short value=0.55 1423568543000000000'
> > assert await client.write(point)
> E AttributeError: 'async_generator' object has no attribute 'write'
>
> tests/test_client.py:36: AttributeError
> __________________________ test_write_special_values
> ___________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_write_special_values(client):
> point = utils.random_point()
> point['tags']['boolean_tag'] = True
> point['tags']['none_tag'] = None
> point['tags']['blank_tag'] = ''
> point['fields']['boolean_field'] = False
> point['fields']['none_field'] = None
> point['fields']['backslash'] = "This is a backslash: \\"
> point['measurement'] = '"quoā”ļøes and emoji"'
> with pytest.warns(UserWarning) as e:
> > assert await client.write(point)
> E AttributeError: 'async_generator' object has no attribute 'write'
>
> tests/test_client.py:50: AttributeError
> ______________________ test_write_with_custom_measurement
> ______________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_write_with_custom_measurement(client):
> points = [p for p in utils.random_points(5)]
> for p in points:
> _ = p.pop('measurement')
> logger.info(points)
> with pytest.raises(ValueError):
> > assert await client.write(points)
> E AttributeError: 'async_generator' object has no attribute 'write'
>
> tests/test_client.py:61: AttributeError
> ------------------------------ Captured log call
> -------------------------------
> 2022-09-17 19:40:05 | aioinflux | INFO: [{'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'time': datetime.datetime(2022, 9, 17, 19, 40, 5,
> 759180), 'fields': {'fi\neld_k\\ey': 47, 'quote': '"', 'value':
> 0.6213991571133627}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'time': '2022-09-17 19:40:05.759201', 'fields':
> {'fi\neld_k\\ey': 117, 'quote': '"', 'value': 0.15037957141157288}}, {'tags':
> {'tag key with spšces': 'tag,value,with"commas"'}, 'time':
> datetime.datetime(2022, 9, 17, 19, 40, 5, 759207), 'fields':
> {'fi\neld_k\\ey': 187, 'quote': '"', 'value': 0.8804256090208612}}, {'tags':
> {'tag key with spšces': 'tag,value,with"commas"'}, 'time':
> datetime.datetime(2022, 9, 17, 19, 40, 5, 759211), 'fields':
> {'fi\neld_k\\ey': 29, 'quote': '"', 'value': 0.101457863250488}}, {'tags':
> {'tag key with spšces': 'tag,value,with"commas"'}, 'time': '2022-09-17
> 19:40:05.759216', 'fields': {'fi\neld_k\\ey': 172, 'quote': '"', 'value':
> 0.5135952717480896}}]
> _________________________ test_write_without_timestamp
> _________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_write_without_timestamp(client):
> points = [p for p in utils.random_points(9)]
> for p in points:
> _ = p.pop('time')
> _ = p.pop('measurement')
> logger.info(points)
> > assert await client.write(points,
> > measurement='yet_another_measurement')
> E AttributeError: 'async_generator' object has no attribute 'write'
>
> tests/test_client.py:74: AttributeError
> ------------------------------ Captured log call
> -------------------------------
> 2022-09-17 19:40:05 | aioinflux | INFO: [{'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 157, 'quote': '"',
> 'value': 0.08276737074045826}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 44, 'quote': '"',
> 'value': 0.6627030206561314}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 86, 'quote': '"',
> 'value': 0.5916090341690353}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 56, 'quote': '"',
> 'value': 0.7249702291317253}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 154, 'quote': '"',
> 'value': 0.74382102099246}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 113, 'quote': '"',
> 'value': 0.9428800452241415}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 136, 'quote': '"',
> 'value': 0.7519769580833728}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 17, 'quote': '"',
> 'value': 0.2719889467328689}}, {'tags': {'tag key with spšces':
> 'tag,value,with"commas"'}, 'fields': {'fi\neld_k\\ey': 115, 'quote': '"',
> 'value': 0.8872148831159554}}]
> __________________ test_write_non_string_identifier_and_tags
> ___________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_write_non_string_identifier_and_tags(client):
> point = dict(tags={1: 2},
> fields={3: 4})
> with pytest.warns(UserWarning):
> > assert await client.write(point, measurement='my_measurement')
> E AttributeError: 'async_generator' object has no attribute 'write'
>
> tests/test_client.py:85: AttributeError
> _________________________ test_write_to_non_default_db
> _________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_write_to_non_default_db(client):
> points = [p for p in utils.random_points(5)]
> > await client.create_database(db='temp_db')
> E AttributeError: 'async_generator' object has no attribute
> 'create_database'
>
> tests/test_client.py:94: AttributeError
> _________________________ test_write_to_non_default_rp
> _________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_write_to_non_default_rp(client):
> > db = client.db
> E AttributeError: 'async_generator' object has no attribute 'db'
>
> tests/test_client.py:105: AttributeError
> ______________________________ test_simple_query
> _______________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_simple_query(client):
> > resp = await client.query('SELECT * FROM test_measurement')
> E AttributeError: 'async_generator' object has no attribute 'query'
>
> tests/test_client.py:120: AttributeError
> ______________________________ test_chunked_query
> ______________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_chunked_query(client):
> > resp = await client.query('SELECT * FROM test_measurement',
> chunked=True, chunk_size=10)
> E AttributeError: 'async_generator' object has no attribute 'query'
>
> tests/test_client.py:126: AttributeError
> ___________________________ test_empty_chunked_query
> ___________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_empty_chunked_query(client):
> > resp = await client.query('SELECT * FROM fake', chunked=True,
> > chunk_size=10)
> E AttributeError: 'async_generator' object has no attribute 'query'
>
> tests/test_client.py:137: AttributeError
> _____________________________ test_create_database
> _____________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_create_database(client):
> > resp = await client.create_database(db='mytestdb')
> E AttributeError: 'async_generator' object has no attribute
> 'create_database'
>
> tests/test_client.py:152: AttributeError
> ______________________________ test_drop_database
> ______________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_drop_database(client):
> > resp = await client.drop_database(db='mytestdb')
> E AttributeError: 'async_generator' object has no attribute
> 'drop_database'
>
> tests/test_client.py:158: AttributeError
> ____________________________ test_drop_measurement
> _____________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_drop_measurement(client):
> measurement = utils.random_string()
> > assert await client.write(f'{measurement} foo=1')
> E AttributeError: 'async_generator' object has no attribute 'write'
>
> tests/test_client.py:165: AttributeError
> _____________________________ test_show_databases
> ______________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_show_databases(client):
> > r = await client.show_databases()
> E AttributeError: 'async_generator' object has no attribute
> 'show_databases'
>
> tests/test_client.py:171: AttributeError
> ____________________________ test_show_measurements
> ____________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_show_measurements(client):
> > r = await client.show_measurements()
> E AttributeError: 'async_generator' object has no attribute
> 'show_measurements'
>
> tests/test_client.py:178: AttributeError
> _______________________________ test_show_users
> ________________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_show_users(client):
> > r = await client.show_users()
> E AttributeError: 'async_generator' object has no attribute 'show_users'
>
> tests/test_client.py:185: AttributeError
> _______________________________ test_show_series
> _______________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_show_series(client):
> > r = await client.show_series()
> E AttributeError: 'async_generator' object has no attribute
> 'show_series'
>
> tests/test_client.py:192: AttributeError
> _________________________ test_show_retention_policies
> _________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_show_retention_policies(client):
> > r = await client.show_retention_policies()
> E AttributeError: 'async_generator' object has no attribute
> 'show_retention_policies'
>
> tests/test_client.py:202: AttributeError
> ______________________________ test_show_tag_keys
> ______________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_show_tag_keys(client):
> > r = await client.show_tag_keys()
> E AttributeError: 'async_generator' object has no attribute
> 'show_tag_keys'
>
> tests/test_client.py:209: AttributeError
> _____________________________ test_show_field_keys
> _____________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_show_field_keys(client):
> > r = await client.show_field_keys()
> E AttributeError: 'async_generator' object has no attribute
> 'show_field_keys'
>
> tests/test_client.py:219: AttributeError
> _____________________________ test_show_tag_values
> _____________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_show_tag_values(client):
> > r = await client.show_tag_values('host')
> E AttributeError: 'async_generator' object has no attribute
> 'show_tag_values'
>
> tests/test_client.py:229: AttributeError
> _________________________ test_show_continuous_queries
> _________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_show_continuous_queries(client):
> > r = await client.show_continuous_queries()
> E AttributeError: 'async_generator' object has no attribute
> 'show_continuous_queries'
>
> tests/test_client.py:239: AttributeError
> ___________________________ test_chunked_query_error
> ___________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_chunked_query_error(client):
> with pytest.raises(InfluxDBError) as e:
> > resp = await client.query('INVALID QUERY', chunked=True,
> > chunk_size=10)
> E AttributeError: 'async_generator' object has no attribute 'query'
>
> tests/test_client.py:251: AttributeError
> ___________________________ test_invalid_data_write
> ____________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_invalid_data_write(client):
> with pytest.raises(InfluxDBWriteError) as e:
> # Plain invalid data
> > await client.write(utils.random_string())
> E AttributeError: 'async_generator' object has no attribute 'write'
>
> tests/test_client.py:260: AttributeError
> __________________________ test_invalid_output_format
> __________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> def test_invalid_output_format(client):
> with pytest.raises(ValueError) as e:
> > client.output = utils.random_string()
> E AttributeError: 'async_generator' object has no attribute 'output'
>
> tests/test_client.py:290: AttributeError
> ______________________________ test_invalid_query
> ______________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_invalid_query(client):
> with pytest.raises(InfluxDBError) as e:
> > await client.query('NOT A VALID QUERY')
> E AttributeError: 'async_generator' object has no attribute 'query'
>
> tests/test_client.py:301: AttributeError
> _____________________________ test_statement_error
> _____________________________
>
> client = <async_generator object client at 0x7f2dc73cfe40>
>
> @pytest.mark.asyncio
> async def test_statement_error(client):
> with pytest.raises(InfluxDBError) as e:
> > await client.query('SELECT * FROM my_measurement', db='fake_db')
> E AttributeError: 'async_generator' object has no attribute 'query'
>
> tests/test_client.py:308: AttributeError
> ---------------------------- Captured log teardown
> -----------------------------
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> _________________________ test_iterpoints_with_parser
> __________________________
>
> iter_client = <async_generator object iter_client at 0x7f2dc7168e40>
>
> @pytest.mark.asyncio
> async def test_iterpoints_with_parser(iter_client):
> > r = await iter_client.query("SELECT * FROM cpu_load LIMIT 3")
> E AttributeError: 'async_generator' object has no attribute 'query'
>
> tests/test_iter.py:8: AttributeError
> ------------------------------ Captured log setup
> ------------------------------
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> _______________________________ test_aiter_point
> _______________________________
>
> iter_client = <async_generator object iter_client at 0x7f2dc7168e40>
>
> @pytest.mark.asyncio
> async def test_aiter_point(iter_client):
> > resp = await iter_client.query('SELECT * from cpu_load',
> > chunked=True, chunk_size=10)
> E AttributeError: 'async_generator' object has no attribute 'query'
>
> tests/test_iter.py:19: AttributeError
> __________________________ test_iter_point_namedtuple
> __________________________
>
> iter_client = <async_generator object iter_client at 0x7f2dc7168e40>
>
> @pytest.mark.asyncio
> async def test_iter_point_namedtuple(iter_client):
> from collections import namedtuple
> nt = namedtuple('cpu_load', ['time', 'direction', 'host', 'region',
> 'value'])
>
> > resp = await iter_client.query('SELECT * from cpu_load')
> E AttributeError: 'async_generator' object has no attribute 'query'
>
> tests/test_iter.py:32: AttributeError
> ---------------------------- Captured log teardown
> -----------------------------
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> ________________________________ test_decorator
> ________________________________
>
> client = <async_generator object client at 0x7f2dc7169d40>
>
> @pytest.mark.asyncio
> async def test_decorator(client):
> @lineprotocol
> class MyPoint(NamedTuple):
> measurement: aioinflux.MEASUREMENT
> time: aioinflux.TIMEINT
> host: aioinflux.TAG
> running: aioinflux.BOOL
> users: aioinflux.INT
> cpu_load: aioinflux.FLOAT
> cpu_load_level: aioinflux.ENUM
> cpu_load_level_tag: aioinflux.TAGENUM
> running_cost: aioinflux.DECIMAL
> uuid: aioinflux.STR
>
> p = MyPoint(
> measurement="dp",
> time=1500,
> host="us1",
> running=True,
> users=1000,
> cpu_load=99.5,
> cpu_load_level=CpuLoad.HIGH,
> cpu_load_level_tag=CpuLoad.LOW,
> running_cost=Decimal('3.54'),
> uuid=str(uuid.uuid4()),
> )
> assert p
> assert hasattr(p, 'to_lineprotocol')
> > assert await client.write(p)
> E AttributeError: 'async_generator' object has no attribute 'write'
>
> tests/test_usertype.py:51: AttributeError
> ------------------------------ Captured log setup
> ------------------------------
> 2022-09-17 19:40:05 | asyncio | DEBUG: Using selector: EpollSelector
> =============================== warnings summary
> ===============================
> tests/testing_utils.py:24
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioinflux/build/tests/testing_utils.py:24:
> DeprecationWarning: invalid escape sequence '\e'
> 'fi\neld_k\ey': random.randint(0, 200),
>
> tests/conftest.py:9
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioinflux/build/tests/conftest.py:9:
> PytestDeprecationWarning: @pytest.yield_fixture is deprecated.
> Use @pytest.fixture instead; they are the same.
> @pytest.yield_fixture(scope='module')
>
> .pybuild/cpython3_3.10_aioinflux/build/tests/test_client.py::test_invalid_client_mode
>
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioinflux/build/aioinflux/client.py:120:
> DeprecationWarning: There is no current event loop
> self._loop = loop or asyncio.get_event_loop()
>
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info
> ============================
> FAILED tests/test_client.py::test_ping - AttributeError: 'async_generator'
> ob...
> FAILED tests/test_client.py::test_write_simple - AttributeError:
> 'async_gener...
> FAILED tests/test_client.py::test_write_string - AttributeError:
> 'async_gener...
> FAILED tests/test_client.py::test_write_tagless - AttributeError:
> 'async_gene...
> FAILED tests/test_client.py::test_write_special_values - AttributeError:
> 'asy...
> FAILED tests/test_client.py::test_write_with_custom_measurement -
> AttributeEr...
> FAILED tests/test_client.py::test_write_without_timestamp - AttributeError:
> '...
> FAILED tests/test_client.py::test_write_non_string_identifier_and_tags -
> Attr...
> FAILED tests/test_client.py::test_write_to_non_default_db - AttributeError:
> '...
> FAILED tests/test_client.py::test_write_to_non_default_rp - AttributeError:
> '...
> FAILED tests/test_client.py::test_simple_query - AttributeError:
> 'async_gener...
> FAILED tests/test_client.py::test_chunked_query - AttributeError:
> 'async_gene...
> FAILED tests/test_client.py::test_empty_chunked_query - AttributeError:
> 'asyn...
> FAILED tests/test_client.py::test_create_database - AttributeError:
> 'async_ge...
> FAILED tests/test_client.py::test_drop_database - AttributeError:
> 'async_gene...
> FAILED tests/test_client.py::test_drop_measurement - AttributeError:
> 'async_g...
> FAILED tests/test_client.py::test_show_databases - AttributeError:
> 'async_gen...
> FAILED tests/test_client.py::test_show_measurements - AttributeError:
> 'async_...
> FAILED tests/test_client.py::test_show_users - AttributeError:
> 'async_generat...
> FAILED tests/test_client.py::test_show_series - AttributeError:
> 'async_genera...
> FAILED tests/test_client.py::test_show_retention_policies - AttributeError:
> '...
> FAILED tests/test_client.py::test_show_tag_keys - AttributeError:
> 'async_gene...
> FAILED tests/test_client.py::test_show_field_keys - AttributeError:
> 'async_ge...
> FAILED tests/test_client.py::test_show_tag_values - AttributeError:
> 'async_ge...
> FAILED tests/test_client.py::test_show_continuous_queries - AttributeError:
> '...
> FAILED tests/test_client.py::test_chunked_query_error - AttributeError:
> 'asyn...
> FAILED tests/test_client.py::test_invalid_data_write - AttributeError:
> 'async...
> FAILED tests/test_client.py::test_invalid_output_format - AttributeError:
> 'as...
> FAILED tests/test_client.py::test_invalid_query - AttributeError:
> 'async_gene...
> FAILED tests/test_client.py::test_statement_error - AttributeError:
> 'async_ge...
> FAILED tests/test_iter.py::test_iterpoints_with_parser - AttributeError:
> 'asy...
> FAILED tests/test_iter.py::test_aiter_point - AttributeError:
> 'async_generato...
> FAILED tests/test_iter.py::test_iter_point_namedtuple - AttributeError:
> 'asyn...
> FAILED tests/test_usertype.py::test_decorator - AttributeError:
> 'async_genera...
> ============= 34 failed, 12 passed, 2 skipped, 3 warnings in 0.38s
> =============
> E: pybuild pybuild:379: test: plugin distutils failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_aioinflux/build; python3.10 -m pytest
> --ignore=tests/test_dataframe.py
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.10
> returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2022/09/17/python-aioinflux_0.9.0-4_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220917;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220917&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
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!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
--- End Message ---