huggingface / safetensors

Simple, safe way to store and distribute tensors
https://huggingface.co/docs/safetensors
Apache License 2.0
2.79k stars 189 forks source link

Compilation fail due to test error #491

Closed BananPrzydawka closed 2 months ago

BananPrzydawka commented 3 months ago

System Info

arch linux, python 3.12.4, i dont know what other info to give here

Information

Reproduction

installing python-safetensors 0.4.3 (latest package, and up to date with latest safetensors release) from the arch linux aur. package starts compiling but fails and aborts on final check.

full info given during install: ==> Making package: python-safetensors 0.4.3-2 (Fri Jun 28 13:32:22 2024) ==> Retrieving sources... -> Found python-safetensors-0.4.3.tar.gz ==> Validating source files with sha512sums... python-safetensors-0.4.3.tar.gz ... Passed ==> Making package: python-safetensors 0.4.3-2 (Fri Jun 28 13:32:22 2024) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found python-safetensors-0.4.3.tar.gz ==> Validating source files with sha512sums... python-safetensors-0.4.3.tar.gz ... Passed ==> Removing existing $srcdir/ directory... ==> Extracting sources... -> Extracting python-safetensors-0.4.3.tar.gz with bsdtar ==> Starting prepare()... ==> Sources are ready. python-safetensors-0.4.3-2: parsing pkg list... ==> Making package: python-safetensors 0.4.3-2 (Fri Jun 28 13:32:23 2024) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> WARNING: Using existing $srcdir/ tree ==> Removing existing $pkgdir/ directory... ==> Starting build()...

================================================================================================================== ERRORS ================================================================================================================== _ ERROR collecting tests/test_tfcomparison.py tests/test_tf_comparison.py:3: in import h5py /usr/lib/python3.12/site-packages/h5py/init.py:37: in from ._conv import register_converters as _register_converters, \ h5py/_conv.pyx:1: in init h5py._conv ??? h5py/h5r.pyx:1: in init h5py.h5r ??? h5py/h5p.pyx:1: in init h5py.h5p ??? E ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject ========================================================================================================= short test summary info ========================================================================================================== ERROR tests/test_tf_comparison.py - ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ============================================================================================================= 1 error in 2.17s ============================================================================================================= ==> ERROR: A failure occurred in check(). Aborting... error: failed to build 'python-safetensors-0.4.3-2': error: packages failed to build: python-safetensors-0.4.3-2

Expected behavior

expected behaviour is it installs correctly. im not 100% sure this is the right place for this issiue. im sorry for bothering you if it isnt. thanks in advance :D

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

BananPrzydawka commented 2 months ago

Why automatically reject unadressed issiues? To this day i am not able to install the safetensors package

Narsil commented 2 months ago

Because issues that do not receive attention need to be removed from visible list. It's always easy to resurect them, comment on them, like you are doing so we know they are still valid.

You are not explaining how you are trying to install at all python-safetensors is not a package maintained here so we cannot make any changes.

The error seems to suggest there is an issue with the numpy version pre-packages in the thing your referring to. This library does not maintain a dependency on numpy nor is linked against it.

Please report this issue to whereever the package, most likely here: https://aur.archlinux.org/packages/python-safetensors