Source: python-biom-format Version: 2.1.12-3 Severity: important Tags: ftbfs sid trixie User: debian-pyt...@lists.debian.org Usertags: python3.12
Hi Maintainer python-biom-format FTBFS with Python 3.12 as a supported version. I've copied below what I hope is the relevant part of the log. Regards Graham =================================== FAILURES =================================== _______________________ TestSummarizeTable.test_default ________________________ self = <biom.tests.test_cli.test_summarize_table.TestSummarizeTable testMethod=test_default> def test_default(self): """ TableSummarizer functions as expected """ > result = _summarize_table(self.biom1) /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_biom-format/build/biom/tests/test_cli/test_summarize_table.py:30: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ table = 14 x 9 <class 'biom.table.Table'> with 30 nonzero entries (23% dense) qualitative = False, observations = False def _summarize_table(table, qualitative=False, observations=False): lines = [] locale.setlocale(locale.LC_ALL, '') if observations: table = table.transpose() min_counts, max_counts, median_counts, mean_counts, counts_per_samp =\ compute_counts_per_sample_stats(table, qualitative) num_observations = len(table.ids(axis='observation')) counts_per_sample_values = list(counts_per_samp.values()) if table.metadata() is None: sample_md_keys = ["None provided"] else: sample_md_keys = table.metadata()[0].keys() if table.metadata(axis='observation') is None: observation_md_keys = ["None provided"] else: observation_md_keys = table.metadata(axis='observation')[0].keys() num_samples = len(table.ids()) if observations: # as this is a transpose of the original table... lines.append('Num samples: ' + locale.format('%d', num_observations, grouping=True)) lines.append('Num observations: ' + locale.format('%d', num_samples, grouping=True)) else: > lines.append('Num samples: ' + locale.format('%d', num_samples, grouping=True)) E AttributeError: module 'locale' has no attribute 'format'. Did you mean: '_format'? /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_biom-format/build/biom/cli/table_summarizer.py:88: AttributeError