Package Details: python-tensorflow-probability 0.25.0-4

Git Clone URL: https://aur.archlinux.org/python-tensorflow-probability.git (read-only, click to copy)
Package Base: python-tensorflow-probability
Description: Probabilistic reasoning and statistical analysis in TensorFlow
Upstream URL: https://github.com/tensorflow/probability
Keywords: tensorflow
Licenses: Apache-2.0
Submitter: oysstu
Maintainer: oysstu
Last Packager: oysstu
Votes: 5
Popularity: 0.000000
First Submitted: 2019-02-20 14:59 (UTC)
Last Updated: 2026-02-04 19:17 (UTC)

Latest Comments

1 2 Next › Last »

oysstu commented on 2026-02-04 19:18 (UTC)

@carlosal1015 I've packaged it from the pypi wheel now

oysstu commented on 2026-02-04 12:02 (UTC)

Even Google are apparently not able to keep their build recipes from breaking in newer Bazel versions. I'll have to look into packaging from pypi instead.

Ref: https://github.com/tensorflow/probability?tab=readme-ov-file#installing-from-source

carlosal1015 commented on 2026-02-03 12:22 (UTC)

==> Retrieving sources...
  -> Found v0.25.0.tar.gz
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting v0.25.0.tar.gz with bsdtar
==> Starting build()...
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/build/python-tensorflow-probability/src/probability-0.25.0/tools/bazel.rc
Extracting Bazel installation...
Starting local Bazel server (9.0.0) and connecting to it...
Computing main repo mapping: 
WARNING: --enable_bzlmod is set, but no MODULE.bazel file was found at the workspace root. Bazel will create an empty MODULE.bazel file. Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel. For more details, please refer to https://github.com/bazelbuild/bazel/issues/18958.
Computing main repo mapping: 
Loading: 
Loading: 0 packages loaded
ERROR: /build/python-tensorflow-probability/src/probability-0.25.0/BUILD:15:1: name 'sh_binary' is not defined (did you mean 'cc_binary'?)
WARNING: Target pattern parsing failed.
ERROR: Skipping ':pip_pkg': no such target '//:pip_pkg': target 'pip_pkg' not declared in package '' defined by /build/python-tensorflow-probability/src/probability-0.25.0/BUILD
ERROR: no such target '//:pip_pkg': target 'pip_pkg' not declared in package '' defined by /build/python-tensorflow-probability/src/probability-0.25.0/BUILD
INFO: Elapsed time: 3.966s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
==> ERROR: A failure occurred in build().
    Aborting...

oysstu commented on 2025-06-02 12:25 (UTC)

  • Fixed build errors due to new bazel version.

  • Added python-tf-keras as dependency, as python-tensorflow ships with keras v3 which is not supported by tfp (and will not be supported)

oysstu commented on 2024-05-16 01:44 (UTC)

@pirofti you should upgrade to python 3.12 and rebuild the package. I don't understand why you are breaking on the exception though, are you running through a debugger? That exception should be caught and ignored afterwards.

pirofti commented on 2024-05-15 10:31 (UTC)

I get the following error at import:

File /usr/lib/python3.11/site-packages/tensorflow_probability/python/__init__.py:79, in _validate_tf_environment(package)                
     77 if required_tensorflow_version[0] == '2':                                                                                        
     78   try:                                                                                                                           
---> 79     import tf_keras  # pylint: disable=unused-import
     80   except (ImportError, ModuleNotFoundError):
     81     # Print more informative error message, then reraise.
     82     print('\n\nFailed to import TF-Keras. Please note that TF-Keras is not '
     83           'installed by default when you install TensorFlow Probability. '
     84           'This is so that JAX-only users do not have to install TensorFlow '
   (...)                          
     87           'This can be be done through installing the '
     88           'tensorflow-probability[tf] extra.\n\n')

ModuleNotFoundError: No module named 'tf_keras'

oysstu commented on 2024-03-13 12:55 (UTC) (edited on 2024-03-13 12:56 (UTC) by oysstu)

Looks like tf has become an optional dependency upstream, with the possibility of using jax as a backend instead. I haven't used tfp for a long time, so I'm not sure exactly how that works. I will keep tf as a dependency for now, as I imagine that's how most of you are using tfp, but it's possible to have tf/keras as optional dependencies instead if that makes more sense. Let me know.

carsme commented on 2024-02-14 14:58 (UTC)

Much appreciated, thanks!

oysstu commented on 2024-02-14 12:29 (UTC)

Fixed. Looks like the latest bazel version moved setup.py to a new location.

carsme commented on 2024-02-14 11:05 (UTC)

I'm running in to the following issue when building the package:

==> Starting build()...
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/tmp/makepkg/python-tensorflow-probability/src/probability-0.23.0/tools/bazel.rc
INFO: Analyzed target //:pip_pkg (64 packages loaded, 4766 targets configured).
INFO: Found 1 target...
Target //:pip_pkg up-to-date:
  bazel-bin/pip_pkg
INFO: Elapsed time: 26.941s, Critical Path: 0.42s
INFO: 941 processes: 4 internal, 937 linux-sandbox.
INFO: Build completed successfully, 941 total actions
python: can't open file '/home/carsme/.cache/bazel/_bazel_carsme/bfec90a73c6d9abcd351097554995d45/execroot/_main/bazel-out/k8-fastbuild/bin/pip_pkg.runfiles/tensorflow_probability/setup.py': [Errno 2] No such file or directory

Any ideas?