Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions aperturedb/queryMessage.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ def ParseFromString(msg, data):
def queryMessage():
return queryMessage5_pb2.queryMessage()

def ParseFromString(msg, data):
return msg.ParseFromString(data)
elif google.protobuf.__version__.split(".")[0] == "6":
from . import queryMessage6_pb2

def queryMessage():
return queryMessage6_pb2.queryMessage()

def ParseFromString(msg, data):
return msg.ParseFromString(data)
else:
Expand Down
36 changes: 36 additions & 0 deletions aperturedb/queryMessage6_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ authors = [
dependencies = [
# Pin to the bridge version.
# https://github.com/tensorflow/tensorflow/issues/60320
'protobuf >=3.20.3,<6.0.0',
'protobuf >=3.20.3,<7.0.0',
#Folllowing is needed parallel loaders, and basic things for
# making the notebooks.
'requests', 'boto3',
Expand Down
Loading