Package Details: python-torchvision 0.7.0-4

Git Clone URL: https://aur.archlinux.org/python-torchvision.git (read-only, click to copy)
Package Base: python-torchvision
Description: Datasets, transforms, and models specific to computer vision
Upstream URL: https://github.com/pytorch/vision
Licenses: BSD
Submitter: flacks
Maintainer: hottea (lilac)
Last Packager: lilac
Votes: 17
Popularity: 0.26
First Submitted: 2018-01-31 10:46
Last Updated: 2020-10-05 11:39

Dependencies (18)

Sources (1)

Pinned Comments

hottea commented on 2020-05-02 09:00

You could install python-torchvision or python-torchvision-cuda from ArchLinux CN repo. I have no plan to provide two PKGBUILD for pytorch-torchvision and python-torchvision-cuda. However, pull request is welcome.

Latest Comments

1 2 3 4 5 Next › Last »

zomzom commented on 2020-10-29 17:25

I also had the issue for the video IO test, uninstalling python-av and removing it from the makedepends solved the issue for me. I did not investigate further why exactly it is causing an issue

hottea commented on 2020-10-06 11:10

@bidskii You could skip the check, and report this issue to upstream, not here.

bidskii commented on 2020-10-06 10:23

I am getting this error when building version 0.7.0-4

test/test_video_reader.py::TestVideoReader::test_compare_read_video_from_memory_and_file Fatal Python error: Segmentation fault

Thread 0x00007f66b77fe640 (most recent call first):
<no Python frame>

Thread 0x00007f66ff87f640 (most recent call first):
<no Python frame>

Current thread 0x00007f69d1b97740 (most recent call first):
  File "/media/RAID/aur_builds/python-torchvision/src/vision-0.7.0/test/test_video_reader.py", line 858 in test_compare_read_video_from_memory_and_file
  File "/usr/lib/python3.8/unittest/case.py", line 633 in _callTestMethod
  File "/usr/lib/python3.8/unittest/case.py", line 676 in run
  File "/usr/lib/python3.8/unittest/case.py", line 736 in __call__
  File "/usr/lib/python3.8/site-packages/_pytest/unittest.py", line 278 in runtest
  File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 163 in pytest_runtest_call
  File "/usr/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 256 in <lambda>
  File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 310 in from_call
  File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 255 in call_runtest_hook
  File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 216 in call_and_report
  File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 127 in runtestprotocol
  File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 110 in pytest_runtest_protocol
  File "/usr/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 338 in pytest_runtestloop
  File "/usr/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 313 in _main
  File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 257 in wrap_session
  File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 306 in pytest_cmdline_main
  File "/usr/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/usr/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/usr/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 164 in main
  File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 187 in console_main
  File "/usr/bin/pytest", line 33 in <module>
/media/RAID/aur_builds/python-torchvision/PKGBUILD: line 61: 3172531 Segmentation fault      (core dumped) PYTHONPATH="${PWD}/build/lib.linux-${CARCH}-$(get_pyver)" pytest -v

archer1337 commented on 2020-10-04 02:14

@silversilva @nylocx

I ran into the same issue, and I was able to work around it by removing python-av as a non-optional dependency from the PKGBUILD. (JDAturbo mentioned that there were "python-av related tests failing on [his] system".) I have ffmpeg installed as a video reader backend.

Caveat emptor: I have not tested video reading per se in torchvision yet.

silversilva commented on 2020-10-03 06:28

@nylocx I seem to have the same issue. I got the exact same error and i too did built it with python-pytorch-opt-cuda. Could you share how you solved the issue or if you haven't, could you point which other place you have raised the issue?

JDAturbo commented on 2020-09-16 21:06

python-av is listed twice in dependencies, once as optional. I discovered this due to python-av related tests failing on my system (with ffmpeg-full-git installed).

Could you remove the non-optional python-av dependency?

d_fajardo commented on 2020-08-20 12:20

I tried installing this package to test it but I get a segfault: python-torchvision/PKGBUILD: line 60: 354036 Segmentation fault (core dumped) PYTHONPATH="${PWD}/build/lib.linux-${CARCH}-$(get_pyver)" pytest -v

d_fajardo commented on 2020-08-20 12:17

@rhsperry Here is my self-made PKGBUILD. I modified the package name so as not to conflict with this AUR package. I have installed it and tested and it works. Hope it helps but you probably have to adjust the formatting since this box won't keep it.

Maintainer: Danny Fajardo br1ghtch1p@gmail.com

pkgname=python-pytorchvision _pkgname=torchvision pkgver=0.7.0 pkgrel=1 pkgdesc="the torchvision package consists of popular datasets, model architectures, and common image transformations for computer vision" arch=('any') url="https://github.com/pytorch/vision" license=("Apache License 2.0") depends=('python' 'python-pytorch') makedepends=('python-setuptools') conflicts=("${pkgname}" "${pkgname}-git") source=("https://github.com/pytorch/vision/archive/v$pkgver.tar.gz") sha256sums=('fa0a6f44a50451115d1499b3f2aa597e0092a07afce1068750260fa7dd2c85cb')

build() { cd "$srcdir/vision-$pkgver" python setup.py build }

package() { cd "$srcdir/vision-$pkgver" python setup.py install --skip-build --root="$pkgdir/" --optimize=1 }

rhysperry111 commented on 2020-08-13 12:34

@d_fajardo Could you please provide the PKBUILD that you used. I really dont want to have to install 1G of cuda (considering i dont even have an nvidia card)

hottea commented on 2020-08-13 00:54

@nylocx report this issue to upstream, not here. It seems relate to ffmpeg version.