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

Downgrade the protobuf package to 3.20.x or lower. #15

Open
openxbmc opened this issue Oct 16, 2024 · 5 comments
Open

Downgrade the protobuf package to 3.20.x or lower. #15

openxbmc opened this issue Oct 16, 2024 · 5 comments

Comments

@openxbmc
Copy link

你好,请问是否可以升级JoyCaption的依赖,因为我测试protobuf==3.20.1版本可以用,但这个版本很老了,与其它插件新的依赖冲突。

@aidenli
Copy link
Owner

aidenli commented Oct 16, 2024

我自己的环境,protobuf的版本是4.25.4,请问下你具体的冲突提示?

@openxbmc
Copy link
Author

作者你好,首次本地反推运行后提示我:一大堆内容,核心是我看到的这句:Downgrade the protobuf package to 3.20.x or lower.之前遇到这个问题我手动降低到3.20.1就好了,如果我不降级,再运行就会提示:Couldn't build proto file into descriptor pool: duplicate file name sentencepiece_model.proto,我使用工具还真搜不到这个sentencepiece_model.proto文件。

@openxbmc
Copy link
Author

这是首次运行后的提示:
JoyCaption
Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

@openxbmc
Copy link
Author

更新一下:我手动升级sentencepiece不报错了,我一直以为问题出在protobuf中

@aidenli
Copy link
Owner

aidenli commented Oct 23, 2024

抱歉,这几天忙着别的事情没有看issue,解决了就好 @openxbmc

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

2 participants