Package Details: python-imagecodecs 2023.3.16-3

Git Clone URL: (read-only, click to copy)
Package Base: python-imagecodecs
Description: Image transformation, compression, and decompression codecs
Upstream URL:
Licenses: BSD
Submitter: hottea
Maintainer: hottea (lilac)
Last Packager: lilac
Votes: 2
Popularity: 0.000014
First Submitted: 2020-06-20 14:41 (UTC)
Last Updated: 2023-03-21 04:33 (UTC)

Latest Comments

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/", line 583, in <module>
    customize_build(EXTENSIONS, OPTIONS)
  File "/build/python-imagecodecs/src/imagecodecs-2022.8.8/", line 231, in customize_build_default
    del EXTENSIONS['zfp']  # ZFP library not commonly available
KeyError: 'zfp'
==> ERROR: A failure occurred in build().

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

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

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:

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, 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.