Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.0.0][debian] IndexError: list index out of range #328

Open
picca opened this issue Mar 5, 2025 · 2 comments · May be fixed by #331
Open

[5.0.0][debian] IndexError: list index out of range #328

picca opened this issue Mar 5, 2025 · 2 comments · May be fixed by #331
Milestone

Comments

@picca
Copy link

picca commented Mar 5, 2025

Hello, I try to release the 5.0.0 vesion of hdf5plugin but I get this error message during the build

dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:311: python3.13 setup.py clean 
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/setup.py", line 1271, in <module>
    get_zlib_clib(),
    ~~~~~~~~~~~~~^^
  File "/<<PKGBUILDDIR>>/setup.py", line 818, in get_zlib_clib
    zlib_dir = glob('src/c-blosc/internal-complibs/zlib*')[0]
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
E: pybuild pybuild:389: clean: plugin distutils failed with: exit code=1: python3.13 setup.py clean 
dh_auto_clean: error: pybuild --clean -i python{version} -p 3.13 returned exit code 13
make: *** [debian/rules:8: clean] Error 25

I requested

export HDF5PLUGIN_STRIP=all

but it still try to find some library sources.

@t20100 t20100 added this to the Next release milestone Mar 11, 2025
@t20100
Copy link
Member

t20100 commented Mar 11, 2025

The static libraries configs are retrieved before the "STRIP":

hdf5plugin/setup.py

Lines 1265 to 1290 in a1a676f

library_list = [
get_charls_clib(),
get_lz4_clib(),
get_snappy_clib(),
get_sperr_clib(),
get_zfp_clib(),
get_zlib_clib(),
get_zstd_clib(),
]
libraries, extensions = apply_filter_strip(
libraries=library_list,
extensions=[
get_bzip2_plugin(),
get_lz4_plugin(),
get_bitshuffle_plugin(),
get_blosc_plugin(),
get_blosc2_plugin(),
get_fcidecomp_plugin(),
get_h5zfp_plugin(),
get_zstandard_plugin(),
get_sz_plugin(),
get_sz3_plugin(),
get_sperr_plugin(),
],
dependencies=PLUGIN_LIB_DEPENDENCIES,
)

We should be able to define the static libs configs after the "STRIP". This would solve this issue.

@t20100
Copy link
Member

t20100 commented Mar 11, 2025

b0ee981 should fix your issue (see #331)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants