chatgpt icon indicating copy to clipboard operation
chatgpt copied to clipboard

An unexpected error occurred. 'OpenAI' object has no attribute 'responses'

Open DanStark81 opened this issue 2 months ago • 3 comments

As the title shows, I get the following error An unexpected error occurred. 'OpenAI' object has no attribute 'responses'. I recently just upgraded to the latest version and now I get this error

DanStark81 avatar Oct 23 '25 17:10 DanStark81

It seems like you upgraded ChatGPT IRC Bot, but you didn't upgrade your OpenAI library:

pip3 install "openai>=1.0.0"

Bear in mind, it was a major upgrade and we moved to new OpenAI Python SDK 1.x

knrd1 avatar Oct 27 '25 22:10 knrd1

okay thanks, I thought I did, I will try again.

DanStark81 avatar Oct 27 '25 22:10 DanStark81

so I did a ton of updates to my ubuntu... when I run the pip3 install, I get the following: Defaulting to user installation because normal site-packages is not writeable a bunch of Requirement already satisfied and: DEPRECATION: distro-info 0.18ubuntu0.18.04.1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063 Im not too familiar with how ubuntu works, I only use it for my eggdrop bot. so not sure where to go from here.

DanStark81 avatar Oct 27 '25 23:10 DanStark81