Bug#1008925: pytorch-vision FTBFS with Python 3.10 due to X-Python3-Version: 3.9

2022-04-05 Thread Diederik de Haas
On Mon, 04 Apr 2022 12:32:32 +0300 Adrian Bunk  wrote:
> Source: pytorch-vision
> Version: 0.8.2-1
> Severity: serious
> Tags: ftbfs bookworm sid
> 
> https://buildd.debian.org/status/logs.php?pkg=pytorch-vision=0.8.2-1+b3
> 
> https://sources.debian.org/src/pytorch-vision/0.8.2-1/debian/control/#L28

https://github.com/pytorch/vision/pulls?q=is%3Apr+python+3.10+is%3Aclosed 
seems to indicate that an upgrade to upstream's 0.12 is needed to properly 
support python 3.10

signature.asc
Description: This is a digitally signed message part.


Bug#1008925: pytorch-vision FTBFS with Python 3.10 due to X-Python3-Version: 3.9

2022-04-04 Thread Adrian Bunk
Source: pytorch-vision
Version: 0.8.2-1
Severity: serious
Tags: ftbfs bookworm sid

https://buildd.debian.org/status/logs.php?pkg=pytorch-vision=0.8.2-1%2Bb3

...
dh clean -Spybuild --with python3
   dh_auto_clean -O-Spybuild
I: pybuild base:237: python3.9 setup.py clean 
Traceback (most recent call last):
  File "/<>/setup.py", line 12, in 
import torch
  File "/usr/lib/python3/dist-packages/torch/__init__.py", line 213, in 
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:6: clean] Error 25


https://sources.debian.org/src/pytorch-vision/0.8.2-1/debian/control/#L28