Bug#1008924: pytorch-text FTBFS with Python 3.10 due to X-Python3-Version: 3.9
Source: pytorch-text
Version: 0.8.1-1
Severity: serious
Tags: ftbfs bookworm sid
https://buildd.debian.org/status/logs.php?pkg=pytorch-text&ver=0.8.1-1%2Bb2
...
dh_auto_clean -O-Spybuild
I: pybuild base:237: python3.9 setup.py clean
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/setup.py", line 10, in <module>
from build_tools import setup_helpers
File "/<<PKGBUILDDIR>>/build_tools/setup_helpers/__init__.py", line 1, in <module>
from .extension import * # noqa
File "/<<PKGBUILDDIR>>/build_tools/setup_helpers/extension.py", line 6, in <module>
from torch.utils.cpp_extension import (
File "/usr/lib/python3/dist-packages/torch/__init__.py", line 213, in <module>
raise ImportError(textwrap.dedent('''
ImportError: Failed to load PyTorch C extensions:
It appears that PyTorch has loaded the `torch/_C` folder
of the PyTorch repository rather than the C extensions which
are expected in the `torch._C` namespace. This can occur when
using the `install` workflow. e.g.
$ python setup.py install && python -c "import torch"
This error can generally be solved using the `develop` workflow
$ python setup.py develop && python -c "import torch" # This should succeed
or by running Python from a different directory.
E: pybuild pybuild:367: clean: plugin distutils failed with: exit code=1: python3.9 setup.py clean
dh_auto_clean: error: pybuild --clean -i python{version} -p 3.9 returned exit code 13
make: *** [debian/rules:4: clean] Error 25
https://sources.debian.org/src/pytorch-text/0.8.1-1/debian/control/#L28
Reply to: