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

import paddle时出现这个错误怎么解决呢TypeError: Couldn't build proto file into descriptor pool: duplicate file name (framework.proto) #43604

Closed
Mrc-2020 opened this issue Jun 17, 2022 · 3 comments
Assignees
Labels

Comments

@Mrc-2020
Copy link

请提出你的问题 Please ask your question

import paddle
Traceback (most recent call last):
File "", line 1, in
File "D:\Anaconda3\envs\paddle\lib\site-packages\paddle_init_.py", line 25, in
from .framework import monkey_patch_variable
File "D:\Anaconda3\envs\paddle\lib\site-packages\paddle\framework_init_.py", line 17, in
from . import random # noqa: F401
File "D:\Anaconda3\envs\paddle\lib\site-packages\paddle\framework\random.py", line 16, in
import paddle.fluid as fluid
File "D:\Anaconda3\envs\paddle\lib\site-packages\paddle\fluid_init_.py", line 36, in
from . import framework
File "D:\Anaconda3\envs\paddle\lib\site-packages\paddle\fluid\framework.py", line 35, in
from .proto import framework_pb2
File "D:\Anaconda3\envs\paddle\lib\site-packages\paddle\fluid\proto\framework_pb2.py", line 19, in
DESCRIPTOR = _descriptor.FileDescriptor(
File "D:\Anaconda3\envs\paddle\lib\site-packages\google\protobuf\descriptor.py", line 1028, in new
return _message.default_pool.AddSerializedFile(serialized_pb)
TypeError: Couldn't build proto file into descriptor pool: duplicate file name (framework.proto)

@paddle-bot-old
Copy link

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

@yt605155624
Copy link
Contributor

你好,可以参考这个链接的解决办法:
https://stackoverflow.com/questions/68952308/tensorflow-couldnt-build-proto-file-into-descriptor-pool

pip uninstall protobuf
pip install --no-binary protobuf protobuf

另外注意 protobuf 的版本

参考: #43052

@yt605155624 yt605155624 added status/following-up 跟进中 and removed status/new-issue 新建 labels Jun 17, 2022
@paddle-bot paddle-bot bot closed this as completed Jun 20, 2023
@paddle-bot
Copy link

paddle-bot bot commented Jun 20, 2023

Since you haven't replied for more than a year, we have closed this issue/pr.
If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up.
由于您超过一年未回复,我们将关闭这个issue/pr。
若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants