-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
//:protobuf_python with use_fast_cpp_protors does not compile with python3.7 due to python's breaking changes in C API #4086
Comments
This breaks the latest TensorFlow build. |
Python 3.7.0 was released last week on 2018-06-27. We need to add support for 3.7 and add test for it in test.sh: https://github.com/google/protobuf/blob/00d32539c6aa0c4efe9577561a00f443edd9a417/tests.sh#L244 |
benmwebb
added a commit
to benmwebb/protobuf
that referenced
this issue
Jul 3, 2018
Compilation of Python wrappers fails with Python 3.7 because the Python folks changed their C API such that PyUnicode_AsUTF8AndSize() now returns a const char* rather than a char*. Add a patch to work around. Relates protocolbuffers#4086.
Awesome to see some progress on this! |
anandolee
pushed a commit
that referenced
this issue
Jul 12, 2018
Compilation of Python wrappers fails with Python 3.7 because the Python folks changed their C API such that PyUnicode_AsUTF8AndSize() now returns a const char* rather than a char*. Add a patch to work around. Relates #4086.
#4862 should have fixed this issue. I am closing it for clean up. Feel free to reopen if needed |
fo40225
pushed a commit
to fo40225/protobuf
that referenced
this issue
Nov 9, 2018
Compilation of Python wrappers fails with Python 3.7 because the Python folks changed their C API such that PyUnicode_AsUTF8AndSize() now returns a const char* rather than a char*. Add a patch to work around. Relates protocolbuffers#4086.
acozzette
pushed a commit
to acozzette/protobuf
that referenced
this issue
Dec 4, 2018
Compilation of Python wrappers fails with Python 3.7 because the Python folks changed their C API such that PyUnicode_AsUTF8AndSize() now returns a const char* rather than a char*. Add a patch to work around. Relates protocolbuffers#4086.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to reproduce:
The
bazel -s
output:After digging through the documentation of cpython at its master, I found this commit: python/cpython@2a404b6
It basically says cpython made a breaking change in its C API, i.e.,
Python.h
.I know that python 3.7 is not released yet. What is the stance of protobuf group on this matter?
The text was updated successfully, but these errors were encountered: