Skip to content
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

do not work anymore #180

Open
w-famy opened this issue Mar 6, 2024 · 1 comment
Open

do not work anymore #180

w-famy opened this issue Mar 6, 2024 · 1 comment

Comments

@w-famy
Copy link

w-famy commented Mar 6, 2024

I just installed using pip install faststream-gen under python3.12 environement.

faststream_gen --help crash see bellow:

faststream_gen --help
/home/bill/virtual/stream/lib/python3.12/site-packages/langchain/embeddings/init.py:29: LangChainDeprecationWarning: Importing embeddings from langchain is deprecated. Importing from langchain will no longer be supported as of langchain==0.2.0. Please import from langchain-community instead:

from langchain_community.embeddings import OpenAIEmbeddings.

To install langchain-community run pip install -U langchain-community.
warnings.warn(
/home/bill/virtual/stream/lib/python3.12/site-packages/langchain/vectorstores/init.py:35: LangChainDeprecationWarning: Importing vector stores from langchain is deprecated. Importing from langchain will no longer be supported as of langchain==0.2.0. Please import from langchain-community instead:

from langchain_community.vectorstores import FAISS.

To install langchain-community run pip install -U langchain-community.
warnings.warn(
Traceback (most recent call last):
File "/home/bill/virtual/stream/bin/faststream_gen", line 5, in
from faststream_gen.cli import app
File "/home/bill/virtual/stream/lib/python3.12/site-packages/faststream_gen/cli.py", line 14, in
from faststream_gen._code_generator.app_description_validator import (
File "/home/bill/virtual/stream/lib/python3.12/site-packages/faststream_gen/_code_generator/app_description_validator.py", line 13, in
from .chat import CustomAIChat
File "/home/bill/virtual/stream/lib/python3.12/site-packages/faststream_gen/_code_generator/chat.py", line 48, in
openai.error.RateLimitError,
^^^^^^^^^^^^
AttributeError: module 'openai' has no attribute 'error'

I install pip install -U langchain-community too.

@saadhypng
Copy link

Hey @w-famy

Just run pip install openai==0.28, there is an issue with the latest version that is causing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants