-
Notifications
You must be signed in to change notification settings - Fork 74.3k
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
Building from source failed on Python 3.10 #51776
Comments
Hi, thank you for your reply! I've checked the links, but it seems irrelevant to I still believe the errors were caused by deprecated imports. Thank you! |
For the first error I've created a pull request (#51782) with a minor fix, and Python 3.6 - 3.10 compabilities have been tested. |
Added a PR #51865 to resolve another distutils related issue. |
The `distutils` is deprecated in Python 3.10. As of tensorflow#51776, In `python_configure.bzl`, the deprecation message will be printed prior to the include path, causing error on return.
We don't yet support py3.10 but now given that it has a final release we can start on the roadmap to support it by next release. Depending on our dependencies, plan is to start supporting python 3.10 in tf-nightly first and then in the TF 2.8 release. |
Building from source failed on Python 3.10 ... from google.protobuf.pyext import _message AttributeError: module 'collections' has no attribute 'MutableSequence' ... Backport a patch [1] from protobuf to fix it, and merge it to existed third_party/protobuf/protobuf.patch [1] protocolbuffers/protobuf@9d61ead Signed-off-by: Hongxu Jia <[email protected]>
With this commit, the second error which might be only caused by protobuf was fixed. I've successfully built TensorFlow 2.7.0 for Python 3.10, so I think it's completely compatible now. (Except for these dependencies: |
This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you. |
Closing as stale. Please reopen if you'd like to work on this further. |
System information
manylinux2014
docker image from pypa / manylinuxDescribe the problem
distutils
is deprecatedThe
distutils
is deprecated in Python 3.10. In python_configure.bzl, the deprecation message will be printed prior to the include path, causing error on return.ABC is removed
(detailed logs below)
According to the collections package:
_message.so
fromprotobuf
seems to cause this problem.Any other info / logs
The text was updated successfully, but these errors were encountered: