Re: Please help fixing build time test (Was: Bug#996921: RFA: unifrac)
Am Wed, Nov 16, 2022 at 08:25:29PM +0100 schrieb Étienne Mollier:
> ModuleNotFoundError: No module named 'bp._bp'
>
> looks to be caused by python3-iow not being built for python3.11
> yet:
>
> $ python3.10 -c 'import bp' ; echo $?
> 0
>
> $ python3.11 -c 'import bp' ; echo $?
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "/usr/lib/python3/dist-packages/bp/__init__.py", line 8, in <module>
> from ._bp import BP
> ModuleNotFoundError: No module named 'bp._bp'
> 1
Ahhh, that's a different one and should be fixed now. The real issue
with autopkgtest is:
autopkgtest [20:00:40]: test run-unit-test: [-----------------------
Test 4 -- Unifrac python tests
unifrac (unittest.loader._FailedTest.unifrac) ... ERROR
======================================================================
ERROR: unifrac (unittest.loader._FailedTest.unifrac)
----------------------------------------------------------------------
ImportError: Failed to import test module: unifrac
Traceback (most recent call last):
File "/usr/lib/python3.11/unittest/loader.py", line 440, in _find_test_path
package = self._get_module_from_name(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/unittest/loader.py", line 350, in _get_module_from_name
__import__(name)
File "/tmp/autopkgtest.FVEVf1/tree/unifrac/__init__.py", line 30, in <module>
from unifrac._api import ssu, faith_pd, ssu_to_file, ssu_inmem
ModuleNotFoundError: No module named 'unifrac._api'
----------------------------------------------------------------------
Ran 1 test in 0.000s
FAILED (errors=1)
autopkgtest [20:00:42]: test run-unit-test: -----------------------]
Kind regards
Andreas.
--
http://fam-tille.de
Reply to: