Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot correctly build the whl file for Python 3.12. #1297

Open
sun1638650145 opened this issue Jul 17, 2024 · 2 comments
Open

Cannot correctly build the whl file for Python 3.12. #1297

sun1638650145 opened this issue Jul 17, 2024 · 2 comments

Comments

@sun1638650145
Copy link
Contributor

The tensorflow has started providing pre-compiled whl for Python 3.12 since version 2.16. When will we start providing them? Currently, bazel reports a missing requirement_lock_3_12.txt file.

@stefan-it
Copy link

Yeah, bazel is so much pain (this whole build system will hopefully get deprecated one day)!

@DwarKapex
Copy link

DwarKapex commented Oct 30, 2024

I also tried to build tf-text from source with requirement_lock_3_11.txt. But it failed with error cannot import distutils:

Traceback (most recent call last):
  File "/root/.cache/bazel/_bazel_root/85e1e75b08f730f1cb0a39e292604ff5/execroot/org_tensorflow_text/bazel-out/k8-opt/bin/oss_scripts/pip_package/tensorflow_build_info.runfiles/org_tensorflow_text/oss_scripts/pip_package/tensorflow_build_info.py", line 33, in <module>
   import tensorflow as tf
   File "/root/.cache/bazel/_bazel_root/85e1e75b08f730f1cb0a39e292604ff5/execroot/org_tensorflow_text/bazel-out/k8-opt/bin/oss_scripts/pip_package/tensorflow_build_info.runfiles/pypi_tensorflow/site-packages/tensorflow/__init__.py", line 30, in <module>
   import distutils as _distutils
ModuleNotFoundError: No module named 'distutils'

@stefan-it Do you by any chance who to force bazel to use python from venv?
[UPD] Installing distuilts via pip install setuptools does not help at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants