tensorflow / tensorflow/probability

probability 0.17.0 doesn't build on macOS with error ModuleNotFoundError: No module named 'absl'

Open
#1,594 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
4.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

I'm attempting to update tensor flow_probability for MacPorts.

Version 0.17.0 fails to build on macOS with error:

File "/opt/local/var/macports/build/_opt_local_ports_python_py-tensorflow-probability/py310-tensorflow-probability/work/bazel_build/4191c7127d7c33c5af5f12aa8dc0d886/sandbox/processwrapper-sandbox/5/execroot/tensorflow_probability/bazel-out/darwin-opt-exec-2B5CBBC6/bin/tensorflow_probability/substrates/meta/rewrite.runfiles/tensorflow_probability/tensorflow_probability/substrates/meta/rewrite.py", line 20, in <module>
from absl import app
ModuleNotFoundError: No module named 'absl'

(Full log file: main.log.gz)

This import issue may be caused by the fact that there is no __init__.py file in the directory ./tensorflow_probability/substrates/meta.

I've tried adding my own __init__.py file to the source directory, but bazel appears to be downloading its own source, and I'm uncertain how to address or work around this issue.

See also #539.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the full main.log.gz and the files under tensorflow_probability/substrates/meta, then compare the related discussion in #539. Reproduce the 0.17.0 macOS build and determine the supported dependency or packaging setup; done means the build completes without the reported absl ModuleNotFoundError.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, python, tensorflow
Domain
build-system, machine-learning, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.