[Python] AttributeError: module ‘openai’ has no attribute ‘error’

Discussão em 'Python' iniciado por Stack, Julho 3, 2025.

  1. Stack

    Stack Membro Participativo

    I'm running a Python summarizer in Azure ML that queries my gpt4 deployment for information. Everything was working fine until two days ago, when I decided to switch the output directory of the summaries to a different blob storage. Since then I am strangely getting the above error. My openAI version is 1.3.3 and langchain 0.0.301, and python 3.8. I have looked this up online and downgraded the version of openAI but it doesn't help. I've also tried the solutions here https://community.openai.com/t/attributeerror-module-openai-has-no-attribute-error/486676/8

    but none have worked for me. Has anyone else also faced this?

    I tried downgrading OpenAI and langchain Python libraries. I deleted the repo clone and AzureML notebook and made everything from scratch multiple times. This was working perfectly just two days ago and now it doesn't.

    Continue reading...

Compartilhe esta Página