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

protobuf 3.18.0不兼容 #15

Open
pingguoilove opened this issue Apr 2, 2022 · 0 comments
Open

protobuf 3.18.0不兼容 #15

pingguoilove opened this issue Apr 2, 2022 · 0 comments

Comments

@pingguoilove
Copy link

tablestore 5.2.1
protobuf 3.18.0 (指定到3.6.1版本后运行正常)

报错如下:

Traceback (most recent call last):
  File "test_ots.py", line 1, in <module>
    import tablestore
  File "/usr/local/lib/python2.7/site-packages/tablestore/__init__.py", line 115, in <module>
    from tablestore.client import OTSClient
  File "/usr/local/lib/python2.7/site-packages/tablestore/client.py", line 25, in <module>
    from tablestore.protocol import OTSProtocol
  File "/usr/local/lib/python2.7/site-packages/tablestore/protocol.py", line 21, in <module>
    import google.protobuf.text_format as text_format
  File "/usr/local/lib/python2.7/site-packages/google/protobuf/text_format.py", line 52, in <module>
    from google.protobuf.internal import decoder
  File "/usr/local/lib/python2.7/site-packages/google/protobuf/internal/decoder.py", line 87, in <module>
    from google.protobuf.internal import encoder
  File "/usr/local/lib/python2.7/site-packages/google/protobuf/internal/encoder.py", line 71, in <module>
    from google.protobuf.internal import wire_format
  File "/usr/local/lib/python2.7/site-packages/google/protobuf/internal/wire_format.py", line 36, in <module>
    from google.protobuf import descriptor
  File "/usr/local/lib/python2.7/site-packages/google/protobuf/descriptor.py", line 113
    class DescriptorBase(metaclass=DescriptorMetaclass):
                                  ^
SyntaxError: invalid syntax
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