Uh oh!
There was an error while loading. Please reload this page.
Update mypy-protobuf - #10914
Conversation
JelleZijlstra
commented
Oct 18, 2023
cc @nipunn1313 |
This comment has been minimized.
This comment has been minimized.
How about the |
JelleZijlstra
commented
Oct 18, 2023
Don't have time to figure this out right now, sorry. |
Avasam
commented
Oct 18, 2023
Should the |
This comment has been minimized.
This comment has been minimized.
JelleZijlstra
commented
Oct 19, 2023
@Avasam I get this locally now when running the TF script: Do you know what's up with that? I indeed can't find a |
This comment has been minimized.
This comment has been minimized.
Avasam
commented
Oct 19, 2023
Not sure, I just ran it fresh locally and it seems to be just fine |
any.proto is similar to standard library protobuf file (or maybe like protobuf-dev in analogy to python-dev). It's not part of tensorflow. It's sign that your protobuf install includes compiler, but not protobuf related headers. Fix is something like One option to make the script more robust is maybe to instead use |
| tensorflow/compiler/xla/xla_pb2.pyi | ||
| tensorflow/core/util/example_proto_fast_parsing_test_pb2.pyi | ||
| isort "$REPO_ROOT/stubs/tensorflow/tensorflow" |
There was a problem hiding this comment.
If #10912 is merged first, this becomes:
| isort "$REPO_ROOT/stubs/tensorflow/tensorflow" | |
| ruff check "$REPO_ROOT/stubs/tensorflow/tensorflow" --fix-only |
nipunn1313
commented
Oct 19, 2023
lgtm |
Uh oh!
There was an error while loading. Please reload this page.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
See #10909 (comment)
I had to edit some
sedcommands so they worked for me on Linux.The script also set the version of
stubs/protobuf/METADATA.tomlto 4.21.0; I changed it back.I tried updating
PROTOBUF_VERSIONandPYTHON_PROTOBUF_VERSIONto the latest (24.4/4.24.4), but the script failed; apparently they no longer distribute the Python library in the way the script expects.