Bug#1024859: cctbx: (autopkgtest) needs update for python3.11: initialization of scitbx_linalg_ext raised unreported exception

Graham Inggs ginggs at debian.org
Sat Dec 24 12:33:58 GMT 2022


Control: tags -1 + ftbfs

With #1025658 fixed in boost1.74, the autopkgtest of cctbx now fails as follows:

Testing dxtbx with python3.10:
============================= test session starts ==============================
platform linux -- Python 3.10.9, pytest-7.1.2, pluggy-1.0.0+repack
rootdir: /tmp/autopkgtest-lxc.1endj91b/downtmp/autopkgtest_tmp
plugins: mock-3.8.2, dials-data-2.4.0
collected 745 items / 2 skipped

tests/test_FormatCBFFull.py ss                                           [  0%]
tests/test_beam.py .                                                     [  0%]
tests/test_beamline_definitions.py ..                                    [  0%]
tests/test_compression.py .                                              [  0%]
tests/test_crystal_model_equivalence.py .                                [  0%]
tests/test_datablock.py ssssss                                           [  1%]
tests/test_dataset_as_flex.py Fatal Python error: Segmentation fault


I suspected a rebuild might solve this, but cctbx now FTBFS with:

Processing: "/build/1st/cctbx-2022.9+ds2+~3.11.2+ds1/scitbx/libtbx_refresh.py"
  Generating C++ header files in:
    "/build/1st/cctbx-2022.9+ds2+~3.11.2+ds1/.pybuild/cpython3_3.11/build_/include/scitbx/array_family"
  Generating C++ files in:
    "/build/1st/cctbx-2022.9+ds2+~3.11.2+ds1/.pybuild/cpython3_3.11/build_/include/scitbx/array_family/boost_python"
  Using fable to convert scitbx/lbfgs.f
Updating entry points for scitbx
  1 entries for entry point pytest_randomly.random_seeder
Traceback (most recent call last):
  File "/build/1st/cctbx-2022.9+ds2+~3.11.2+ds1/libtbx/configure.py",
line 34, in <module>
    if not run():
           ^^^^^
  File "/build/1st/cctbx-2022.9+ds2+~3.11.2+ds1/libtbx/configure.py",
line 29, in run
    libtbx.env_config.cold_start(sys.argv)
  File "/build/1st/cctbx-2022.9+ds2+~3.11.2+ds1/libtbx/env_config.py",
line 3042, in cold_start
    env.refresh()
  File "/build/1st/cctbx-2022.9+ds2+~3.11.2+ds1/libtbx/env_config.py",
line 2264, in refresh
    module.process_libtbx_refresh_py()
  File "/build/1st/cctbx-2022.9+ds2+~3.11.2+ds1/libtbx/env_config.py",
line 2585, in process_libtbx_refresh_py
    exec(to_str(fh.read()), global_vars)
  File "<string>", line 25, in <module>
  File "/build/1st/cctbx-2022.9+ds2+~3.11.2+ds1/libtbx/pkg_utils.py",
line 242, in define_entry_points
    setuptools.setup(
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line
86, in setup
    _install_setup_requires(attrs)
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line
78, in _install_setup_requires
    dist.parse_config_files(ignore_option_errors=True)
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 862,
in parse_config_files
    self._parse_config_files(filenames=inifiles)
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 704,
in _parse_config_files
    filenames = self.find_config_files()
                ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py",
line 337, in find_config_files
    files = [str(path) for path in self._gen_paths() if os.path.isfile(path)]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py",
line 337, in <listcomp>
    files = [str(path) for path in self._gen_paths() if os.path.isfile(path)]
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py",
line 346, in _gen_paths
    sys_dir = pathlib.Path(sys.modules['distutils'].__file__).parent
                           ~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'distutils'



More information about the debian-science-maintainers mailing list