关闭项目管理器,重新打开,检查服务器是否正常运行,如状态显示已暂停,检查日志。
如果日志中有No Module named xx的报错则在step5中添加相应的module。如果有TypeError: Descriptors cannot not 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).
在终端中输入:
pip3 uninstall protobuf pip3 install protobuf==3.19.0
或者在step5中删除protobuf,再安装3.19.0的版本。protobuf版本在3.19.0以下即可。
原文链接:https://blog.csdn.net/qq_45707440/article/details/125122602
© 版权声明
声明📢本站内容均来自互联网,归原创作者所有,如有侵权必删除。
本站文章皆由CC-4.0协议发布,如无来源则为原创,转载请注明出处。
THE END