Package Details: python-optax 0.2.3-1

Git Clone URL: https://aur.archlinux.org/python-optax.git (read-only, click to copy)
Package Base: python-optax
Description: A gradient processing and optimization library for JAX
Upstream URL: https://github.com/google-deepmind/optax
Keywords: deepmind dm jax optimizator
Licenses: Apache
Groups: jax
Submitter: daskol
Maintainer: daskol
Last Packager: daskol
Votes: 2
Popularity: 0.021176
First Submitted: 2022-12-20 23:11 (UTC)
Last Updated: 2024-07-10 20:32 (UTC)

Dependencies (10)

Sources (1)

Latest Comments

carlosal1015 commented on 2024-08-19 05:13 (UTC) (edited on 2024-08-19 05:29 (UTC) by carlosal1015)

python-etils is a missing dependency: https://github.com/google-deepmind/optax/blob/v0.2.3/pyproject.toml#L39

Python 3.12.4 (main, Jun  7 2024, 06:33:07) [GCC 14.1.1 20240522] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import optax
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.12/site-packages/optax/__init__.py", line 20, in <module>
    from optax import contrib
  File "/usr/lib/python3.12/site-packages/optax/contrib/__init__.py", line 19, in <module>
    from optax.contrib._acprop import acprop
  File "/usr/lib/python3.12/site-packages/optax/contrib/_acprop.py", line 28, in <module>
    from optax._src import combine
  File "/usr/lib/python3.12/site-packages/optax/_src/combine.py", line 17, in <module>
    from optax.transforms import _combining
  File "/usr/lib/python3.12/site-packages/optax/transforms/__init__.py", line 17, in <module>
    from optax.transforms._accumulation import ema
  File "/usr/lib/python3.12/site-packages/optax/transforms/_accumulation.py", line 28, in <module>
    from optax._src import utils
  File "/usr/lib/python3.12/site-packages/optax/_src/utils.py", line 23, in <module>
    from etils import epy
ModuleNotFoundError: No module named 'etils'
>>> 

and python-typing_extensions I guess https://github.com/google/etils/blob/v1.9.2/pyproject.toml#L77

daskol commented on 2024-03-07 18:22 (UTC) (edited on 2024-03-08 06:36 (UTC) by daskol)

@mane.andrea Thank you for noticing the issue! Maintainers of optax made another release with the same tag but different commit! I've faced already the same kind of problem with other package from DeepMind (or it was Google?) and created the issue. From my experience, people in DeepMind often do senseless things (crazy versioning as an example).

Anyway, I've updated checksums and reported the issue to Optax developers.

mane.andrea commented on 2024-03-07 18:00 (UTC) (edited on 2024-03-07 18:00 (UTC) by mane.andrea)

Why do I get (v0.2.0-1)

$ sha256sum optax-0.2.0.tar.gz
e3509bcf9be8768e0f19427abee1c524e64062447c185341cb27d2c30892e9fa  optax-0.2.0.tar.gz

Did you checksum the wrong file or is there something wrong?

I tried to download it twice.

Henry-ZHR commented on 2023-07-26 02:18 (UTC)

Should add makedepends python-flit-core

carlosal1015 commented on 2023-03-30 17:51 (UTC)

The PKGBUILD must remove echo sentence to include contents in the tarball, otherwise will empty

$ tar -I zstd -xvf python-optax-0.1.4-2-x86_64.pkg.tar.zst 
.BUILDINFO
.MTREE
.PKGINFO