canal-python icon indicating copy to clipboard operation
canal-python copied to clipboard

漏了protobuf 包

Open tonyhu214 opened this issue 4 years ago • 3 comments

tonyhu214 avatar May 13 '20 03:05 tonyhu214

protobuf 包最低版本是哪个,我pip isntall canal-python 后调用protocol\CanalProtocol_pb2.py 会报错,缺少from google.protobuf.internal import enum_type_wrapper。

tonyhu214 avatar May 13 '20 03:05 tonyhu214

到 这里下载 3.0+ https://github.com/protocolbuffers/protobuf/releases 例如选择 protobuf-python-3.13.0.zip 下载,解压后用python 编译安装后就安装了 google.protobuf 相关包

sheenzxx avatar Sep 17 '20 07:09 sheenzxx

canal-python==0.4
protobuf==3.13.0
  - setuptools [required: Any, installed: 50.3.0]
  - six [required: >=1.9, installed: 1.15.0]

AntmanTmp avatar Oct 29 '20 02:10 AntmanTmp