Package Details: python-imagecodecs 2024.12.30-1

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.000028
First Submitted: 2020-06-20 14:41 (UTC)
Last Updated: 2024-12-30 06:08 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

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.

petronny commented on 2022-09-01 08:31 (UTC)

You need to unfold the log of the build-package to see the log.

I reverted the changes about zfp and the build passed.

So maybe zfp is related to some particular platform/CPU features.

hottea commented on 2022-08-31 12:26 (UTC)

@petronny I didnot see the error in the log link. See also the build at ArchLinux CN here.

petronny commented on 2022-08-31 10:37 (UTC)

New error

==> Starting build()...
Traceback (most recent call last):
  File "/build/python-imagecodecs/src/imagecodecs-2022.8.8/setup.py", line 583, in <module>
    customize_build(EXTENSIONS, OPTIONS)
  File "/build/python-imagecodecs/src/imagecodecs-2022.8.8/setup.py", line 231, in customize_build_default
    del EXTENSIONS['zfp']  # ZFP library not commonly available
KeyError: 'zfp'
==> ERROR: A failure occurred in build().

https://github.com/arch4edu/cactus/runs/8110880916?check_suite_focus=true

hottea commented on 2022-07-04 06:39 (UTC)

@petronny The setup.py use openjpeg-2.4 while we have openjpeg 2.5 installed. A quick fix: replace openjpeg-2.4 with openjpeg-2.5 in the setup.py.

petronny commented on 2022-07-04 06:13 (UTC)

creating build/temp.linux-x86_64-3.10/3rdparty/openjpeg
gcc -Wno-unused-result -Wsign-compare -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 -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 -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 -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 -flto=auto -fPIC -Iimagecodecs -I3rdparty/openjpeg -I/usr/include/openjpeg-2.3 -I/usr/include/openjpeg-2.4 -I/usr/include/python3.10 -I/usr/lib/python3.10/site-packages/numpy/core/include -c 3rdparty/openjpeg/color.c -o build/temp.linux-x86_64-3.10/3rdparty/openjpeg/color.o
3rdparty/openjpeg/color.c:45:10: fatal error: openjpeg.h: No such file or directory
   45 | #include "openjpeg.h"
      |          ^~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
==> ERROR: A failure occurred in build().

Full build log: https://github.com/arch4edu/cactus/runs/7167001801?check_suite_focus=true

hottea commented on 2020-12-28 01:03 (UTC)

@BrainDamage Are you using ArchLinux? According to upstream code, they check if it's ArchLinux, and disable zopfli if true. For any further issue, report to upstream.

BrainDamage commented on 2020-12-27 15:59 (UTC)

well, it's evidently not disabled since it attempts to source the header

wouldn'tt t be simpler to just add a quick path fix in prepare() ?

hottea commented on 2020-12-26 01:46 (UTC) (edited on 2020-12-26 01:51 (UTC) by hottea)

@JDAturbo, according to https://github.com/cgohlke/imagecodecs/blob/98a6ab040335393865e40a754c43970ded9aeb9a/setup.py#L185, for ArchLinux, zopfli is disable. I'll remove zopfli from the deps. But if you'd like to add zopfli extension, you could modify this line to

cdef extern from 'zopfli.h':