Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

[Bug]: 请问报错这个怎么解决? #6

Open
2 tasks done
qq263424205 opened this issue Jun 26, 2023 · 4 comments
Open
2 tasks done

[Bug]: 请问报错这个怎么解决? #6

qq263424205 opened this issue Jun 26, 2023 · 4 comments

Comments

@qq263424205
Copy link

在提交前请确保以下这些

  • ChatGPT,EdgeGPT,BingImageCreator,GoogleBard,easy-ernie为最新版本
  • 在Issue无法找到它

操作系统

Windows

Python版本

python3.10.11

问题

ImportError: cannot import name 'ConversationStyle' from 'EdgeGPT' (D:\python\lib\site-packages\EdgeGPT_init_.py)

触发

python main.py

报错

D:\demo\Chat-API-main>python main.py
Traceback (most recent call last):
File "D:\demo\Chat-API-main\main.py", line 6, in
from view import chatgpt, bing, bard, ernie
File "D:\demo\Chat-API-main\view\bing.py", line 8, in
from EdgeGPT import ConversationStyle
ImportError: cannot import name 'ConversationStyle' from 'EdgeGPT' (D:\python\lib\site-packages\EdgeGPT_init_.py)

请问要怎么解决?

其他

No response

@qq263424205 qq263424205 changed the title [Bug]: [Bug]: 请问报错这个怎么解决? Jun 26, 2023
@kkkkiven
Copy link

同样的问题,求解

@kkkkiven
Copy link

找到了。我把导入的时候from EdgeGPT import ConversationStyle 改成from EdgeGPT.EdgeGPT import ConversationStyle。这样就能用了

@XiaoXinYo
Copy link
Owner

正在修复。。。

@XiaoXinYo
Copy link
Owner

已更新

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

No branches or pull requests

3 participants