-
Notifications
You must be signed in to change notification settings - Fork 38
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
import langchain_community module error #13
Comments
$ python --version (gpt-python-env) zevorn@ZEVORN-PC GPT-Code-Learner (main) $ pip list aiofiles 23.2.1 [notice] A new release of pip is available: 24.0 -> 24.2 |
/home/zevorn/GPT-Code-Learner/gpt-python-env/lib/python3.12/site-packages/langchain/_api/module_import.py:92: LangChainDeprecationWarning: Importing OpenAIEmbeddings from langchain.embeddings is deprecated. Please replace deprecated imports:
with new imports of:
with new imports of:
with new imports of:
with new imports of:
with new imports of:
from langchain_community.llms import OpenAI
.To install langchain-community run
pip install -U langchain-community
.warnings.warn(
/home/zevorn/GPT-Code-Learner/gpt-python-env/lib/python3.12/site-packages/langchain/chat_models/init.py:33: LangChainDeprecationWarning: Importing chat models 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.chat_models import ChatOpenAI
.To install langchain-community run
pip install -U langchain-community
.warnings.warn(
Traceback (most recent call last):
File "", line 1, in
File "/home/zevorn/GPT-Code-Learner/gpt-python-env/lib/python3.12/site-packages/hupper/ipc.py", line 332, in spawn_main
func(**kwargs)
File "/home/zevorn/GPT-Code-Learner/gpt-python-env/lib/python3.12/site-packages/hupper/worker.py", line 286, in worker_main
func(*spec_args, **spec_kwargs)
File "/home/zevorn/GPT-Code-Learner/code_learner.py", line 194, in main
repo_link_btn = gr.Button("Analyze Code Repo").style(full_width=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Button' object has no attribute 'style'. Did you mean: 'scale'?
Press ENTER or change a file to reload.
The text was updated successfully, but these errors were encountered: