GithubHelp home page GithubHelp logo

OpenAI import Error about lida HOT 6 CLOSED

Omotade-MY avatar Omotade-MY commented on August 13, 2024
OpenAI import Error

from lida.

Comments (6)

victordibia avatar victordibia commented on August 13, 2024

Hi @Omotade-MY ,

Thanks for noting this.
This is likely due to an older version of llmx.
I'll update the required version of llmx in the lida repo and update here.

from lida.

Omotade-MY avatar Omotade-MY commented on August 13, 2024

Alright
I will wait for the update

from lida.

victordibia avatar victordibia commented on August 13, 2024

Hi,

Please reinstall lida and llmx as follows and retry your code

pip install -U lida llmx

from lida.

Omotade-MY avatar Omotade-MY commented on August 13, 2024

Thank you @victordibia! However, after reinstalling and re running. I got the below error.
pip install -U lida llmx
from lida import Manager, TextGenerationConfig, llm

from lida import Manager, TextGenerationConfig , llm

File "/home/adminuser/venv/lib/python3.9/site-packages/lida/init.py", line 1, in

from llmx import TextGenerationConfig, llm, TextGenerator

File "/home/adminuser/venv/lib/python3.9/site-packages/llmx/init.py", line 2, in

from .generators.text.textgen import llm

File "/home/adminuser/venv/lib/python3.9/site-packages/llmx/generators/init.py", line 2, in

from .text.textgen import llm

File "/home/adminuser/venv/lib/python3.9/site-packages/llmx/generators/text/init.py", line 1, in

from .textgen import llm

File "/home/adminuser/venv/lib/python3.9/site-packages/llmx/generators/text/textgen.py", line 2, in

from .openai_textgen import OpenAITextGenerator

File "/home/adminuser/venv/lib/python3.9/site-packages/llmx/generators/text/openai_textgen.py", line 6, in

from openai import AzureOpenAI, OpenAI

ImportError: cannot import name 'AzureOpenAI' from 'openai' (/home/adminuser/venv/lib/python3.9/site-packages/openai/init.py)

from lida.

victordibia avatar victordibia commented on August 13, 2024

from lida.

Omotade-MY avatar Omotade-MY commented on August 13, 2024

I have done that and it worked

Thanks @victordibia

from lida.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.