#openai version 1.0.1 has no attribute Image
1 messages · Page 1 of 1 (latest)
What error?
AttributeError: module 'openai' has no attribute 'Image'
And what exactly are you trying to do? Create an image?
Yes, just replicating the example in https://platform.openai.com/docs/guides/images/introduction?context=python
I am not a Python expert, but for me it just worked fine. Are you using VScode as your code editor?
yes
can you print openai.__version__ and see what it outputs?
AttributeError: module 'openai' has no attribute '__version__'
But when I do pip show openai it says 0.27.4
ok, I think I may be getting the openai library from the wrong place
From where?
I just did pip install openai
I'm also installing it with pip but I get version 1.0.1, so maybe the source repository is different
it's strange, because the pip page for openai seems to be this: https://pypi.org/project/openai/
and it does mention version 1.0.1 as the latest, but the code examples are completely different from the API examples
ok, apparently 1.x is a new version
pip install openai==0.28.1 works fine
So it's fixed?