Package Details: python-chex 0.1.88-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
Groups: deepmind, jax
Submitter: daskol
Maintainer: daskol
Last Packager: daskol
Votes: 2
Popularity: 0.44
First Submitted: 2023-02-13 21:46 (UTC)
Last Updated: 2024-12-11 15:43 (UTC)

Latest Comments

1 2 3 Next › Last »

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

rekman commented on 2024-12-23 19:55 (UTC)

I think this will have issues rebuilding for Python 3.13 due to issues with building the latest python-jax. As I understand it those are due to upstream packaging and will have to wait for a new upstream release.

daskol commented on 2024-12-01 10:50 (UTC)

@hashworks @toynbeeidea The issue is related to other package python-dm-tree which is testing dependency for python-chex. Solution is to rebuild python-dm-treee (which depends on shared objects).

Installed broken since 10/8, see comments for fix

This package is not broken. Rebuilt python-dm-tree dependency.

hashworks commented on 2024-10-09 10:06 (UTC)

Check now fails due to abseil-cpp update: ImportError: libabsl_strings.so.2401.0.0: cannot open shared object file: No such file or directory.

It should use /usr/lib/libabsl_strings.so.2407.0.0.