Package Details: python-imagecodecs 2024.1.1-3

Git Clone URL: https://aur.archlinux.org/python-imagecodecs.git (read-only, click to copy)
Package Base: python-imagecodecs
Description: Image transformation, compression, and decompression codecs
Upstream URL: https://github.com/cgohlke/imagecodecs
Licenses: BSD-3-Clause
Submitter: hottea
Maintainer: hottea (lilac)
Last Packager: lilac
Votes: 3
Popularity: 0.002528
First Submitted: 2020-06-20 14:41 (UTC)
Last Updated: 2024-03-04 12:34 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

hottea commented on 2023-09-07 00:46 (UTC)

@eduardolucioac This might be a Manjaro issue. I don't use this distribution and know nothing about it.

eduardolucioac commented on 2023-09-06 15:50 (UTC)

@hottea

. "Are you using ArchLinux or other Arch-based distribution?" -> Manjaro

. "What's your gcc and python version?" ->

[eduardolac@eduardolac-pc ~]$ gcc --version
gcc (GCC) 13.2.1 20230801
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

. "You could also install this pkg from here without building it from the source." -> Work like a charm! Hot tip! 😎

Thanks! 😘

hottea commented on 2023-09-06 13:40 (UTC)

@simonzack You could check /etc/makepkg.conf if you use makepkg, see also the wiki.

simonzack commented on 2023-09-06 09:52 (UTC) (edited on 2023-09-06 09:54 (UTC) by simonzack)

Can more threads be used to build this, perhaps same as the # of CPU threads? This takes while a while build. Cython has parallel build options.

hottea commented on 2023-09-06 03:22 (UTC) (edited on 2023-09-06 03:22 (UTC) by hottea)

@eduardolucioac yay would not build the pkg in a clean chroot. I'm not sure which pkg affect the building. You could build this pkg in a clean chroot as this doc describes. Are you using ArchLinux or other Arch-based distribution? What's your gcc and python version? You could also install this pkg from here without building it from the source.

eduardolucioac commented on 2023-09-06 02:43 (UTC)

"Could you post the complete build log?" -> Here is... 🤗

[eduardolac@eduardolac-pc ~]$ yay -S python-imagecodecs
AUR Explicit (1): python-imagecodecs-2023.9.4-2
:: (1/1) Downloaded PKGBUILD: python-imagecodecs
  1 python-imagecodecs                       (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
  1 python-imagecodecs                       (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
==> Making package: python-imagecodecs 2023.9.4-2 (ter 05 set 2023 23:40:40)
==> Retrieving sources...
  -> Found imagecodecs-2023.9.4.tar.gz
  -> Found 0001.fix-deps.patch
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    imagecodecs-2023.9.4.tar.gz ... Passed
    0001.fix-deps.patch ... Passed
:: (1/1) Parsing SRCINFO: python-imagecodecs
==> Making package: python-imagecodecs 2023.9.4-2 (ter 05 set 2023 23:40:41)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found imagecodecs-2023.9.4.tar.gz
  -> Found 0001.fix-deps.patch
==> Validating source files with sha256sums...
    imagecodecs-2023.9.4.tar.gz ... Passed
    0001.fix-deps.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting imagecodecs-2023.9.4.tar.gz with bsdtar
==> Starting prepare()...
patching file setup.py
==> Sources are ready.
==> Making package: python-imagecodecs 2023.9.4-2 (ter 05 set 2023 23:40:44)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
* Getting build dependencies for wheel...
running egg_info
creating imagecodecs.egg-info
writing imagecodecs.egg-info/PKG-INFO
writing dependency_links to imagecodecs.egg-info/dependency_links.txt
writing entry points to imagecodecs.egg-info/entry_points.txt
writing requirements to imagecodecs.egg-info/requires.txt
writing top-level names to imagecodecs.egg-info/top_level.txt
writing manifest file 'imagecodecs.egg-info/SOURCES.txt'
reading manifest file 'imagecodecs.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'imagecodecs/_*.c'
warning: no files found matching 'imagecodecs/*.cpp'
warning: no files found matching 'imagecodecs/patches/*'
warning: no files found matching '3rdparty/*'
warning: no files found matching 'tests/*.zfp'
warning: no files found matching 'tests/*.icc'
warning: no files found matching 'tests/*.jxl'
warning: no files found matching 'tests/*.tif'
warning: no files found matching 'tests/*.apng'
warning: no previously-included files found matching 'tests/libaec/121B2TestData/ExtendedParameters/*.*'
warning: no previously-included files found matching 'tests/tiff/gray.movie.*.tif'
warning: no previously-included files found matching 'tests/ljpeg/dcm*.ljp'
warning: no previously-included files found matching 'tests/ljpeg/2ch.ljp'
warning: no previously-included files found matching 'tests/ljpeg/pvrg.ljp'
warning: no previously-included files found matching 'tests/bcn/*.dds'
warning: no previously-included files found matching 'tests/33792x79872.jpg'
warning: no previously-included files found matching 'tests/jpegxr.czi'
warning: no previously-included files found matching 'tests/jetraw.bin'
warning: no previously-included files found matching '*.cmd'
warning: no previously-included files found matching 'build_utils/*'
warning: no previously-included files matching '*' found under directory 'doc'
warning: no previously-included files matching '*' found under directory 'docs'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
warning: no previously-included files matching '*-' found under directory '*'
warning: no previously-included files matching '*.html' found under directory '*'
warning: no previously-included files matching '*Copy*.*' found under directory '*'
adding license file 'LICENSE'
writing manifest file 'imagecodecs.egg-info/SOURCES.txt'
* Building wheel...
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-311
creating build/lib.linux-x86_64-cpython-311/imagecodecs
copying imagecodecs/__init__.py -> build/lib.linux-x86_64-cpython-311/imagecodecs
copying imagecodecs/imagecodecs.py -> build/lib.linux-x86_64-cpython-311/imagecodecs
copying imagecodecs/_imagecodecs.py -> build/lib.linux-x86_64-cpython-311/imagecodecs
copying imagecodecs/numcodecs.py -> build/lib.linux-x86_64-cpython-311/imagecodecs
copying imagecodecs/__main__.py -> build/lib.linux-x86_64-cpython-311/imagecodecs
copying imagecodecs/__init__.pyi -> build/lib.linux-x86_64-cpython-311/imagecodecs
copying imagecodecs/py.typed -> build/lib.linux-x86_64-cpython-311/imagecodecs
creating build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-openjpeg -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-libaec -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-lzham -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-charls -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-brunsli -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-blosc -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-giflib -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-highway -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-hdf5 -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-brotli -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-jpg_0xc3 -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-bcdec -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-dav1d -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-libspng -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-libtiff -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-bzip2 -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-liblj92 -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-lz4 -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-libdeflate -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-libjpeg -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-jpeg -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-libjxl -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-mozjpeg -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-libmng -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-libwebp -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-snappy -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-svt-av1 -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-zlib -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-jxrlib -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-libpng -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-jetraw -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-cfitsio -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-lerc -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-zfp -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-libaivf -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-lcms2 -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/PATENTS-rav1e -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-aom -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-lzfse -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-zopfli -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-fastlz -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-zlib-ng -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-rav1e -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-libjpeg-turbo -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-blosc2 -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-bitshuffle -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-qoi -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-postgresql -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-lzf -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-zstd -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-liblzma -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-netcdf-c -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
running build_ext
cythoning imagecodecs/_aec.pyx to imagecodecs/_aec.c
INFO: Disabling color, you really want to install colorlog.
Disabling color, you really want to install colorlog.
error: Command "gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -Iimagecodecs -I/usr/include/python3.11 -I/usr/lib/python3.11/site-packages/numpy/core/include -c imagecodecs/_avif.c -o build/temp.linux-x86_64-cpython-311/imagecodecs/_avif.o" failed with exit status 1

ERROR Backend subprocess exited when trying to invoke build_wheel
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: python-imagecodecs-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
python-imagecodecs - exit status 4

hottea commented on 2023-09-05 02:03 (UTC)

@eduardolucioac Could you post the complete build log? And the command you used to build this pkg. Are you building it in a clean chroot?

eduardolucioac commented on 2023-09-04 19:03 (UTC)

Does anyone have a solution for this problem? Frankly, I don't know what to do... 🥲

[...]
copying imagecodecs/licenses/LICENSE-libdeflate -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-zstd -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-liblzma -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-zfp -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-libaivf -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
copying imagecodecs/licenses/LICENSE-lzfse -> build/lib.linux-x86_64-cpython-311/imagecodecs/licenses
running build_ext
INFO: Disabling color, you really want to install colorlog.
Disabling color, you really want to install colorlog.
Compiling imagecodecs/_aec.pyx because it changed.
[1/1] Cythonizing imagecodecs/_aec.pyx
Compiling imagecodecs/_avif.pyx because it changed.
[1/1] Cythonizing imagecodecs/_avif.pyx
error: Command "gcc -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -Iimagecodecs -I/usr/include/python3.11 -I/usr/lib/python3.11/site-packages/numpy/core/include -c imagecodecs/_avif.c -o build/temp.linux-x86_64-cpython-311/imagecodecs/_avif.o" failed with exit status 1

ERROR Backend subprocess exited when trying to invoke build_wheel
==> ERROR: A failure occurred in build().
    Aborting...

hottea commented on 2022-09-01 11:35 (UTC) (edited on 2022-09-01 11:36 (UTC) by hottea)

@petronny You could build python-imagecodecs with zfp 0.5.5? I fail to build it with zfp 0.5.5, but zfp 1.0.0 is still in community-testing, so I choose to build it without zfp. See also the build log with zfp 0.5.5 here.