Source: numpy
Version: 1:1.26.4+ds-9
Severity: important
Tags: ftbfs
User: debian-pyt...@lists.debian.org
Usertags: python3.12

Hi Maintainer

numpy FTBFS with Python 3.12 as the default version (i.e. with
python3-defaults/3.12.1-1 from experimental).

I've copied what I hope is the relevant part of the log below.

Regards
Graham


LANG=C sphinx-build -b html -T --keep-going -d build/doctrees   source
build/html
Running Sphinx v7.2.6
/usr/lib/python3/dist-packages/breathe/project.py:116:
RemovedInSphinx80Warning: Sphinx 8 will drop support for representing
paths as strings. Use "pathlib.Path" or "os.fspath" instead.
  self._default_build_dir = os.path.dirname(app.doctreedir.rstrip(os.sep))
1.26 1.26.4
[autosummary] generating autosummary for: benchmarking.rst,
dev/alignment.rst, dev/depending_on_numpy.rst,
dev/development_advanced_debugging.rst,
dev/development_environment.rst, dev/development_workflow.rst,
dev/gitwash/configure_git.rst, dev/gitwash/development_setup.rst,
dev/gitwash/dot2_dot3.rst, dev/gitwash/following_latest.rst, ...,
user/how-to-verify-bug.rst, user/howtos_index.rst, user/index.rst,
user/install.rst, user/misc.rst, user/numpy-for-matlab-users.rst,
user/quickstart.rst, user/theory.broadcasting.rst,
user/troubleshooting-importerror.rst, user/whatisnumpy.rst
WARNING: Failed to import numpy.distutils.misc_util.
Possible hints:
* AttributeError: module 'numpy' has no attribute 'distutils'
* ModuleNotFoundError: No module named 'numpy.distutils'

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sphinx/ext/autosummary/generate.py",
line 503, in generate_autosummary_docs
    name, obj, parent, modname = import_by_name(entry.name)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/sphinx/ext/autosummary/__init__.py",
line 655, in import_by_name
    raise ImportExceptionGroup('no module named %s' % ' or
'.join(tried), exceptions)
sphinx.ext.autosummary.ImportExceptionGroup: no module named
numpy.distutils.ccompiler

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sphinx/events.py", line 97, in emit
    results.append(listener.handler(self.app, *args))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/sphinx/ext/autosummary/__init__.py",
line 814, in process_generate_options
    generate_autosummary_docs(genfiles, suffix=suffix, base_path=app.srcdir,
  File "/usr/lib/python3/dist-packages/sphinx/ext/autosummary/generate.py",
line 508, in generate_autosummary_docs
    name, obj, parent, modname = import_ivar_by_name(entry.name)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/sphinx/ext/autosummary/__init__.py",
line 712, in import_ivar_by_name
    real_name, obj, parent, modname = import_by_name(name, prefixes)
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/sphinx/ext/autosummary/__init__.py",
line 655, in import_by_name
    raise ImportExceptionGroup('no module named %s' % ' or
'.join(tried), exceptions)
sphinx.ext.autosummary.ImportExceptionGroup: no module named numpy.distutils

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sphinx/cmd/build.py", line 293,
in build_main
    app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/sphinx/application.py", line
271, in __init__
    self._init_builder()
  File "/usr/lib/python3/dist-packages/sphinx/application.py", line
342, in _init_builder
    self.events.emit('builder-inited')
  File "/usr/lib/python3/dist-packages/sphinx/events.py", line 108, in emit
    raise ExtensionError(__("Handler %r for event %r threw an exception") %
sphinx.errors.ExtensionError: Handler <function
process_generate_options at 0x7f03020f05e0> for event 'builder-inited'
threw an exception (exception: no module named numpy.distutils)

Extension error (sphinx.ext.autosummary):
Handler <function process_generate_options at 0x7f03020f05e0> for
event 'builder-inited' threw an exception (exception: no module named
numpy.distutils)
make[2]: *** [Makefile:154: html-build] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/doc'
make[1]: *** [debian/rules:86: override_dh_auto_build-indep] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:72: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Reply via email to