Package Details: python-jaxlib 0.4.26-1

Git Clone URL: https://aur.archlinux.org/python-jaxlib.git (read-only, click to copy)
Package Base: python-jaxlib
Description: XLA library for JAX
Upstream URL: https://github.com/google/jax/
Keywords: deep-learning google jax machine-learning xla
Licenses: Apache
Groups: jax
Submitter: daskol
Maintainer: daskol
Last Packager: daskol
Votes: 5
Popularity: 0.022869
First Submitted: 2021-01-12 12:50 (UTC)
Last Updated: 2024-04-03 23:32 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5

petronny commented on 2023-09-21 15:35 (UTC)

==> Starting prepare()...
patching file build/build.py
Hunk #1 FAILED at 552.
1 out of 1 hunk FAILED -- saving rejects to file build/build.py.rej
==> ERROR: A failure occurred in prepare().
    Aborting...

https://github.com/arch4edu/cactus/actions/runs/6261908604/job/17002950698

daskol commented on 2022-12-15 13:45 (UTC)

@carsme Thanks! Fixed package metadata.

carsme commented on 2022-12-15 12:41 (UTC) (edited on 2022-12-15 12:41 (UTC) by carsme)

This does not build. I think something is wrong with your .SRCINFO.

error: failed to parse srcinfo for 'python-jaxlib-0.3.25-1': pkgbase already set: Line 18: pkgbase = python-jaxlib

carlosal1015 commented on 2022-09-02 02:05 (UTC)

Since June 27, 2022, python-flatbuffers is not a dependency anymore.

Universebenzene commented on 2022-08-07 05:26 (UTC) (edited on 2022-08-12 09:52 (UTC) by Universebenzene)

Run makepkg failed. Problem isn't solved after the 0.3.15 upgrade.

I know nothing about bazel. Can anybody help me?

     _   _  __  __
    | | / \ \ \/ /
 _  | |/ _ \ \  /
| |_| / ___ \/  \
 \___/_/   \/_/\_\


Downloading bazel from: https://github.com/bazelbuild/bazel/releases/download/5.1.1/bazel-5.1.1-linux-x86_64
bazel-5.1.1-linux-x86_64 [########################################] 100%
Bazel binary path: ./bazel-5.1.1-linux-x86_64
Bazel version: 5.1.1
Python binary path: /usr/bin/python
Python version: 3.10
NumPy version: 1.23.1
MKL-DNN enabled: yes
Target CPU: x86_64
Target CPU features: native
CUDA enabled: no
TPU enabled: no
Remote TPU enabled: no
ROCm enabled: no

Building XLA and installing it in the jaxlib source tree...
./bazel-5.1.1-linux-x86_64 run --verbose_failures=true --config=native_arch_posix --config=mkl_open_source_only :build_wheel -- --output_path=/home/benzene/Documents/python-jaxlib/src/jax/dist --cpu=x86_64
Starting local Bazel server and connecting to it...
WARNING: ignoring LD_PRELOAD in environment.
... still trying to connect to local Bazel server after 10 seconds ...
... still trying to connect to local Bazel server after 30 seconds ...
... still trying to connect to local Bazel server after 50 seconds ...
... still trying to connect to local Bazel server after 70 seconds ...
... still trying to connect to local Bazel server after 92 seconds ...
... still trying to connect to local Bazel server after 112 seconds ...
FATAL: couldn't connect to server (4038370) after 120 seconds.
b''
Traceback (most recent call last):
  File "/home/benzene/Documents/python-jaxlib/src/jax/build/build.py", line 535, in <module>
    main()
  File "/home/benzene/Documents/python-jaxlib/src/jax/build/build.py", line 530, in main
    shell(command)
  File "/home/benzene/Documents/python-jaxlib/src/jax/build/build.py", line 53, in shell
    output = subprocess.check_output(cmd)
  File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['./bazel-5.1.1-linux-x86_64', 'run', '--verbose_failures=true', '--config=native_arch_posix', '--config=mkl_open_source_only', ':build_wheel', '--', '--output_path=/home/benzene/Documents/python-jaxlib/src/jax/dist', '--cpu=x86_64']' returned non-zero exit status 37.

daskol commented on 2021-11-12 12:07 (UTC) (edited on 2021-11-12 12:07 (UTC) by daskol)

[community/bazel] is already at 4.2

@firoz Right. JAX team pins bazel version to ensure reproducibility of builds (see .bazelversion). So, we should use exactly 4.1.0. The message you see should be ignored since it appears during bazel version check.

Does it build python-jaxlib for you?

firoz commented on 2021-11-12 11:00 (UTC)

ERROR: The project you're trying to build requires Bazel 4.1.0

https://archlinux.org/packages/community/x86_64/bazel/ is already at 4.2

steventrouble commented on 2021-03-09 00:55 (UTC) (edited on 2021-03-09 00:56 (UTC) by steventrouble)

Researchers: If you're having trouble getting CUDA to work, just make your own PKGBUILD that uses pip rather than trying to debug this or build from source. Trust me, it'll be faster and safer than trying to use pip directly.

To get it to work, you can download this PKGBUILD and modify the "pip install" line to run the pip install line from the jax github page:

package() {
    pip install \
        --ignore-requires-python \
        --root=$pkgdir \
        "jax" \
        "jaxlib==0.1.61+cuda112" \
        -f https://storage.googleapis.com/jax-releases/jax_releases.html
}

In general, this works for almost any pip library that isn't available in the AUR or the arch repos.

Happy jaxing!