-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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: partially initialized module 'openai' has no attribute 'Completion' #3
Comments
In this case, it looks like the circular dependency is that the file you're running is named |
Thank you Rachel, that was exactly the issue.
|
Thanks @rachellim! |
The issue for me was that I named my file |
I named my file openai.py too, exactly the issue. |
i faced the same issue as described above and renaming the file to anything other than 'openai' resolved the issue. thank you @rachellim |
I made the same mistake... thank you for discussing it. |
When importing
openai
and running the following code:I get the the following error message:
I've tried re-installing it via
pip install --upgrade openai
but I still get the same error, however VSCode seems to know thatCompletion
is a class within theopenai
module.The text was updated successfully, but these errors were encountered: