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

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':

JDAturbo commented on 2020-12-25 23:19 (UTC)

building 'imagecodecs._zopfli' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -mtune=native -march=native -O3 -flto=20 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -Iimagecodecs -I/usr/include/python3.9 -I/usr/lib/python3.9/site-packages/numpy/core/include -c imagecodecs/_zopfli.c -o build/temp.linux-x86_64-3.9/imagecodecs/_zopfli.o
[...]
imagecodecs/_zopfli.c:617:10: fatal error: zopfli/zopfli.h: No such file or directory
  617 | #include "zopfli/zopfli.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.

zopfli.h is installed at /usr/include/zopfli.h.