We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89ae89a commit 088df22Copy full SHA for 088df22
scripts/protogen.py
@@ -4,9 +4,18 @@
4
"""Runs protoc with the gRPC plugin to generate messages and gRPC stubs."""
5
6
import os
7
+import sys
8
9
from grpc_tools import protoc
10
11
+# Check Python version compatibility
12
+if sys.version_info >= (3, 13):
13
+ print("ERROR: Python 3.13+ requires grpcio-tools >=1.66.2, which generates")
14
+ print("protobufs that are incompatible with older grpcio-tools versions.")
15
+ print("Please use Python 3.12 or lower to generate compatible protobufs.")
16
+ print("Exiting without generating protobufs.")
17
+ sys.exit(1)
18
+
19
dirpath = os.path.dirname(os.path.realpath(__file__))
20
protopath = os.path.realpath(os.path.join(dirpath, "../pydgraph/proto"))
21
0 commit comments