Package Details: python-chex 0.1.91-1

Git Clone URL: https://aur.archlinux.org/python-chex.git (read-only, click to copy)
Package Base: python-chex
Description: A library of utilities for helping to write reliable JAX code
Upstream URL: https://github.com/google-deepmind/chex
Keywords: deepmind dm jax
Licenses: Apache-2.0
Groups: deepmind, jax
Submitter: daskol
Maintainer: daskol
Last Packager: daskol
Votes: 4
Popularity: 1.00
First Submitted: 2023-02-13 21:46 (UTC)
Last Updated: 2025-09-03 19:43 (UTC)

Latest Comments

1 2 3 Next › Last »

medaminezghal commented on 2025-09-04 04:51 (UTC)

@daskol you need to add python-flit-core to makedepends

taotieren commented on 2025-09-04 03:05 (UTC)

While compiling with devtools, I discovered that the python-flit-core backend compilation dependency is missing. I hope this can be added. Thank you.

makedepends=("python-build" "python-flit-core" "python-installer" "python-setuptools" "python-wheel")

caellian commented on 2025-09-01 21:31 (UTC)

This version doesn't build anymore with python-jax because it uses some removed functions. New version is 0.1.91 which doesn't have requirements - removing prepare stage worked for me.

daskol commented on 2025-01-18 13:57 (UTC) (edited on 2025-01-18 13:57 (UTC) by daskol)

Relevant issues in upstream: google-deepmind/tree#119 and google-deepmind/chex#371. I hope that all fixes will be merged next week. In the meantime, try --nocheck option as a workaround.

pumkinmap commented on 2025-01-18 10:25 (UTC) (edited on 2025-01-18 10:29 (UTC) by pumkinmap)

Can confirm that sending --mflags "--nocheck" in yay avoids the issue.

I specifically ran into this:

========================================================================================== ERRORS ===========================================================================================
_______________________________________________________________________ ERROR collecting chex/_src/dataclass_test.py ________________________________________________________________________
ImportError while importing test module '/home/jason/.cache/yay/python-chex/src/chex-0.1.88/chex/_src/dataclass_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.13/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
chex/_src/dataclass_test.py:33: in <module>
import tree
E   ModuleNotFoundError: No module named 'tree'
================================================================================== short test summary info ==================================================================================
ERROR chex/_src/dataclass_test.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
===================================================================================== 1 error in 2.38s ======================================================================================
==> ERROR: A failure occurred in check().

daskol commented on 2024-12-27 13:40 (UTC)

Indeed, unittest API has been changed in Python 3.13. Specifically, unittest.makeSuite has been deprecated in Python 3.11 and scheduled to be removed in Python 3.13.

I suggest a workaround: add --nocheck to your makepkg command in order to skip tests.

sokl commented on 2024-12-27 12:43 (UTC)

I get an error: AttributeError: module 'unittest' has no attribute 'makeSuite'

rekman commented on 2024-12-26 21:20 (UTC)

@medaminezghal I've been able to build jaxlib without that fix, although not with CUDA enabled (I think) and with CUDA enabled it doesn't build even with that fix. Although that's not for here. It appears building with Python 3.13 is indeed due to issues in this package.

medaminezghal commented on 2024-12-26 12:49 (UTC) (edited on 2024-12-26 17:25 (UTC) by medaminezghal)

As I see this version can't be installed in Python 3.13 so I made an issue in the GitHub to resolve the problem. you can follow the issue here

medaminezghal commented on 2024-12-26 12:14 (UTC)

@rekman for the jax problem just use export XLA_FLAGS=--xla_gpu_cuda_data_dir=/opt/cuda to fix it (you can add it to .bashrc file for example). But, I got other problems in the test process