Skip to content
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

Completely broken on 3.10 due to proto defs/imports #70

Open
goodboy opened this issue Feb 18, 2022 · 0 comments
Open

Completely broken on 3.10 due to proto defs/imports #70

goodboy opened this issue Feb 18, 2022 · 0 comments

Comments

@goodboy
Copy link

goodboy commented Feb 18, 2022

On python 3.10 one can't even import the package:

 File "/home/goodboy/repos/piker/310/lib/python3.10/site-packages/pymarketstore/__init__.py", line 1, in <module>
    from .client import Client  # noqa
  File "/home/goodboy/repos/piker/310/lib/python3.10/site-packages/pymarketstore/client.py", line 9, in <module>
    from .grpc_client import GRPCClient
  File "/home/goodboy/repos/piker/310/lib/python3.10/site-packages/pymarketstore/grpc_client.py", line 7, in <module>
    import pymarketstore.proto.marketstore_pb2 as proto
  File "/home/goodboy/repos/piker/310/lib/python3.10/site-packages/pymarketstore/proto/marketstore_pb2.py", line 17, in <module>
    DESCRIPTOR = _descriptor.FileDescriptor(
  File "/home/goodboy/repos/piker/310/lib/python3.10/site-packages/google/protobuf/descriptor.py", line 982, in __new__
    return _message.default_pool.AddSerializedFile(serialized_pb)
TypeError: Couldn't build proto file into descriptor pool!
Invalid proto descriptor for file "pymarketstore/proto/marketstore.proto":
  proto.DataShape.name: "proto.DataShape.name" is already defined in file "proto/marketstore.proto".
  proto.DataShape.type: "proto.DataShape.type" is already defined in file "proto/marketstore.proto".
  proto.DataShape: "proto.DataShape" is already defined in file "proto/marketstore.proto".
  proto.NumpyMultiDataset.data: "proto.NumpyMultiDataset.data" is already defined in file "proto/marketstore.proto".
  proto.NumpyMultiDataset.start_index: "proto.NumpyMultiDataset.start_index" is already defined in file "proto/marketstore.proto".
  ....
  IT GOES ON AND ON HERE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant