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

AttributeError: module 'openai' has no attribute 'error' #459

Open
HelloWorld4747 opened this issue Nov 12, 2023 · 1 comment
Open

AttributeError: module 'openai' has no attribute 'error' #459

HelloWorld4747 opened this issue Nov 12, 2023 · 1 comment

Comments

@HelloWorld4747
Copy link

Hello,

First thing first, thank you so much for sharing such wonderful work with us!

I was trying to load this work on Colab. I didn't modify anything. I pretty much just ran all the cells step by step (I didn't run the last one since I was stuck in the second to the last step). The UI was successfully popped up. I can also upload an image. But, when i entered my prompt, an error was popped up. It is an Attribute Error, saying that 'openai' doesn't have the attribute 'error' (please refer to the image below).
image
image

Since I couldn't find out any solutions from all the previous issue post, I am pretty curious about if I am the only one who met this issue. I felt like this issue was triggered due to the version conflict of some packages.

Could anyone offer some help with this issue? Appreciate all the responses!

@Ethenlalala
Copy link

Hello, 你好

First thing first, thank you so much for sharing such wonderful work with us!首先,非常感谢您与我们分享如此精彩的工作!

I was trying to load this work on Colab. I didn't modify anything. I pretty much just ran all the cells step by step (I didn't run the last one since I was stuck in the second to the last step). The UI was successfully popped up. I can also upload an image. But, when i entered my prompt, an error was popped up. It is an Attribute Error, saying that 'openai' doesn't have the attribute 'error' (please refer to the image below).我试图在 Colab 上加载这项工作。我没有修改任何东西。我几乎只是一步一步地运行了所有单元格(我没有运行最后一个单元格,因为我被困在第二步到最后一步)。UI已成功弹出。我还可以上传图片。但是,当我输入提示时,弹出了一个错误。这是一个属性错误,表示“openai”没有属性“error”(请参考下图)。 image image

Since I couldn't find out any solutions from all the previous issue post, I am pretty curious about if I am the only one who met this issue. I felt like this issue was triggered due to the version conflict of some packages.由于我无法从上一期的所有帖子中找到任何解决方案,所以我很好奇我是否是唯一一个遇到这个问题的人。我觉得这个问题是由于某些软件包的版本冲突而触发的。

Could anyone offer some help with this issue? Appreciate all the responses!任何人都可以为这个问题提供一些帮助吗?感谢所有回复!

you can try pip install openai==0.28

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