Package Details: python-safetensors 0.5.3-1

Git Clone URL: https://aur.archlinux.org/python-safetensors.git (read-only, click to copy)
Package Base: python-safetensors
Description: Simple, safe way to store and distribute tensors
Upstream URL: https://github.com/huggingface/safetensors
Licenses: Apache-2.0
Submitter: Henry-ZHR
Maintainer: envolution
Last Packager: envolution
Votes: 7
Popularity: 0.27
First Submitted: 2023-01-08 09:54 (UTC)
Last Updated: 2025-04-10 23:54 (UTC)

Latest Comments

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

actionless commented on 2024-12-18 16:18 (UTC)

here it is:

Successfully built safetensors-0.4.5-cp312-cp312-linux_x86_64.whl
==> Starting check()...
================================================================ test session starts =================================================================
platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/lie/.cache/pikaur/build/python-safetensors/src/safetensors-0.4.5/bindings/python
configfile: setup.cfg
plugins: hypothesis-6.118.7, benchmark-4.0.0, xonsh-0.18.3, typeguard-4.3.0, anyio-4.6.2.post1
collected 57 items

tests/test_flax_comparison.py double free or corruption (out)
Fatal Python error: Aborted

Thread 0x00007b1c41085b80 (most recent call first):
  File "/usr/lib/python3.12/ast.py", line 52 in parse
  File "/usr/lib/python3.12/site-packages/_pytest/_code/source.py", line 181 in getstatementrange_ast
  File "/usr/lib/python3.12/site-packages/_pytest/_code/code.py", line 262 in getsource
  File "/usr/lib/python3.12/site-packages/_pytest/_code/code.py", line 828 in _getentrysource
  File "/usr/lib/python3.12/site-packages/_pytest/_code/code.py", line 930 in repr_traceback_entry
  File "/usr/lib/python3.12/site-packages/_pytest/_code/code.py", line 992 in repr_traceback
  File "/usr/lib/python3.12/site-packages/_pytest/_code/code.py", line 1058 in repr_excinfo
  File "/usr/lib/python3.12/site-packages/_pytest/_code/code.py", line 690 in getrepr
  File "/usr/lib/python3.12/site-packages/_pytest/nodes.py", line 456 in _repr_failure_py
  File "/usr/lib/python3.12/site-packages/_pytest/python.py", line 1669 in repr_failure
  File "/usr/lib/python3.12/site-packages/_pytest/reports.py", line 376 in from_item_and_call
  File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 368 in pytest_runtest_makereport
  File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103 in _multicall
  File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513 in __call__
  File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 244 in call_and_report
  File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 132 in runtestprotocol
  File "/usr/lib/python3.12/site-packages/_pytest/runner.py", line 113 in pytest_runtest_protocol
  File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103 in _multicall
  File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513 in __call__
  File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 362 in pytest_runtestloop
  File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103 in _multicall
  File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513 in __call__
  File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 337 in _main
  File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 283 in wrap_session
  File "/usr/lib/python3.12/site-packages/_pytest/main.py", line 330 in pytest_cmdline_main
  File "/usr/lib/python3.12/site-packages/pluggy/_callers.py", line 103 in _multicall
  File "/usr/lib/python3.12/site-packages/pluggy/_manager.py", line 120 in _hookexec
  File "/usr/lib/python3.12/site-packages/pluggy/_hooks.py", line 513 in __call__
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 175 in main
  File "/usr/lib/python3.12/site-packages/_pytest/config/__init__.py", line 201 in console_main
  File "/usr/bin/pytest", line 8 in <module>

Extension modules: ujson, jaxlib.cpu_feature_guard, numpy._core._multiarray_umath, numpy.linalg._umath_linalg, zstandard.backend_c, msgpack._cmsgpack, yaml._yaml, torch._C, torch._C._dynamo.autograd_compiler, torch._C._dynamo.eval_frame, torch._C._dynamo.guards, torch._C._dynamo.utils, torch._C._fft, torch._C._linalg, torch._C._nested, torch._C._nn, torch._C._sparse, torch._C._special (total: 18)
/home/lie/.cache/pikaur/build/python-safetensors/PKGBUILD: line 55: 1400329 Aborted                 (core dumped) PYTHONPATH="${PWD}/test_build/usr/lib/python${python_version}/site-packages" pytest tests/ --ignore=tests/test_paddle_comparison.py --ignore=tests/test_tf_comparison.py
==> ERROR: A failure occurred in check().
    Aborting...

envolution commented on 2024-12-18 15:41 (UTC)

@actionless - it would be great if you'd share the actual failed check. It's possible one of the optional depends should be included in checkdepends - but without seeing your error it's difficult to know which.

If you don't want to bother helping troubleshoot, just install the optional depends and let us know if it's solved.

actionless commented on 2024-12-18 12:16 (UTC)

numpy problem is gone after all arch packages got eventually updated or rebuilt with same newer numpy version, however check() is still failing now (but with just crash without any traceback) - do anyone else have the same issue?

mane.andrea commented on 2024-08-11 03:00 (UTC)

For context: the error seems to be with Tensorflow. There is a report in Arch

https://gitlab.archlinux.org/archlinux/packaging/packages/tensorflow/-/issues/11

I upgraded the package and skipped the tensorflow tests, unfortunately.

gatsby commented on 2024-07-23 07:19 (UTC)

Package isn't passing the check. Seems to be related to the NumPy 2.0 update.

dylondark commented on 2024-07-16 05:47 (UTC) (edited on 2024-07-16 05:47 (UTC) by dylondark)

Package isn't passing the check. Seems to be related to the NumPy 2.0 update.

ImportError: 
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.


============================================= short test summary info ==============================================
ERROR tests/test_tf_comparison.py - AttributeError: `np.complex_` was removed in the NumPy 2.0 release. Use `np.complex128` instead.. Did you mean:...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================= 1 error in 2.70s =================================================

mane.andrea commented on 2024-04-23 16:07 (UTC)

@hashworks I tried to build it in two different computers and in a clean chroot and I could not reproduce the issue. Is your system up-to-date? Can you try to build it in a clean chroot?

hashworks commented on 2024-04-21 17:08 (UTC)

I'm getting a test failure at tests/test_pt_comparison.py saying RuntimeError: HIP error: shared object initialization failed. Can you reproduce that?

https://fb.hash.works/JThvZA/

mane.andrea commented on 2024-04-17 17:57 (UTC)

@carsme Many thanks, I have patched it as you say

carsme commented on 2024-04-17 17:51 (UTC)

Two issues:

  • Re-building without cleaning the build directory fails due to the mkdir invocation.
  • Building with rustup instead of rust fails, due to that no toolchain version is specified.

These issues can be fixed by the following patch:

diff --git a/PKGBUILD b/PKGBUILD
index 03774ec..e069144 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -39,11 +39,13 @@ source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz
 sha512sums=('278469d7bc8a4285519cf8020891d0f0e107d8124ad2c24686ca8a19ef2f210c49d9483c502bd5aa5d73940a775ac3eb5e3b90f62825dd7845c351bbdc8c82c3')

 prepare() {
-  mkdir "safetensors-${pkgver}/.git"
+  mkdir -p "safetensors-${pkgver}/.git"
 }

 build() {
   cd "safetensors-${pkgver}/bindings/python"
+
+  export RUSTUP_TOOLCHAIN=stable
   python -m build --wheel --no-isolation
 }