Bug#1055702: pycuda ftbfs with Python 3.12

Andreas Beckmann anbe at debian.org
Fri Nov 10 13:22:50 GMT 2023


On 10/11/2023 10.43, Andreas Beckmann wrote:
> Do you have the buildlog with the failure available, as building with 
> python3.12 is currently non-trivial ;-)

https://launchpadlibrarian.net/696984549/buildlog_ubuntu-noble-amd64.pycuda_2022.2.2~dfsg-2build2_BUILDING.txt.gz

[...]
running build_ext
---------------------------------------------------------------------------
Sorry, your build failed. Try rerunning configure.py with different options.
---------------------------------------------------------------------------
Traceback (most recent call last):
   File "/<<PKGBUILDDIR>>/setup.py", line 270, in <module>
     main()
   File "/<<PKGBUILDDIR>>/setup.py", line 190, in main
     setup(
   File "/<<PKGBUILDDIR>>/aksetup_helper.py", line 24, in setup
     setup(*args, **kwargs)
   File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 107, in setup
     return distutils.core.setup(**attrs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 185, in setup
     return run_commands(dist)
            ^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands
     dist.run_commands()
   File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 969, in run_commands
     self.run_command(cmd)
   File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1233, in run_command
     super().run_command(command)
   File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
     cmd_obj.run()
   File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py", line 131, in run
     self.run_command(cmd_name)
   File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 318, in run_command
     self.distribution.run_command(command)
   File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1233, in run_command
     super().run_command(command)
   File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
     cmd_obj.run()
   File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 88, in run
     _build_ext.run(self)
   File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
     self.build_extensions()
   File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
     self._build_extensions_serial()
   File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
     self.build_extension(ext)
   File "/<<PKGBUILDDIR>>/aksetup_helper.py", line 91, in build_extension
     numpy_incpath = get_numpy_incpath()
                     ^^^^^^^^^^^^^^^^^^^
   File "/<<PKGBUILDDIR>>/aksetup_helper.py", line 38, in get_numpy_incpath
     from imp import find_module
ModuleNotFoundError: No module named 'imp'
E: pybuild pybuild:395: build: plugin distutils failed with: exit code=1: /usr/bin/python3.12 setup.py build
Traceback (most recent call last):
   File "/usr/bin/pybuild", line 393, in main
     run(func, i, version, c)
   File "/usr/bin/pybuild", line 331, in run
     result = func(context, args)
              ^^^^^^^^^^^^^^^^^^^
   File "/usr/share/dh-python/dhpython/build/base.py", line 363, in wrapped_func
     raise Exception(msg)
Exception: exit code=1: /usr/bin/python3.12 setup.py build
[...]



More information about the pkg-nvidia-devel mailing list