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

langchain.verbose #1

Open
SambitSahuIT opened this issue Apr 5, 2024 · 0 comments
Open

langchain.verbose #1

SambitSahuIT opened this issue Apr 5, 2024 · 0 comments

Comments

@SambitSahuIT
Copy link

I am facing this issue repeatedly -

Traceback (most recent call last):
File "d:\Project\Langchain\TUTORIAL1\chatbot\locallama.py", line 26, in
llm=Ollama(model="gemma:2b")
^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\sambi\anaconda3\Lib\site-packages\langchain_core\load\serializable.py", line 120, in init
super().init(**kwargs)
File "pydantic\main.py", line 339, in pydantic.main.BaseModel.init
File "pydantic\main.py", line 1066, in pydantic.main.validate_model
File "pydantic\fields.py", line 439, in pydantic.fields.ModelField.get_default
File "c:\Users\sambi\anaconda3\Lib\site-packages\langchain_core\language_models\base.py", line 71, in _get_verbosity
return get_verbose()
^^^^^^^^^^^^^
File "c:\Users\sambi\anaconda3\Lib\site-packages\langchain_core\globals.py", line 50, in get_verbose
import langchain # type: ignore[import]
^^^^^^^^^^^^^^^^
File "d:\Project\Langchain\TUTORIAL1\chatbot\langchain.py", line 36, in
llm = ChatOpenAI(model="gpt-3.5-turbo")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\sambi\anaconda3\Lib\site-packages\langchain_core\load\serializable.py", line 120, in init
super().init(**kwargs)
File "pydantic\main.py", line 339, in pydantic.main.BaseModel.init
File "pydantic\main.py", line 1066, in pydantic.main.validate_model
File "pydantic\fields.py", line 439, in pydantic.fields.ModelField.get_default
File "c:\Users\sambi\anaconda3\Lib\site-packages\langchain_core\language_models\base.py", line 71, in _get_verbosity
return get_verbose()
^^^^^^^^^^^^^
File "c:\Users\sambi\anaconda3\Lib\site-packages\langchain_core\globals.py", line 72, in get_verbose
old_verbose = langchain.verbose
^^^^^^^^^^^^^^^^^
AttributeError: partially initialized module 'langchain' has no attribute 'verbose' (most likely due to a circular import)
PS D:\Project\Langchain\TUTORIAL1>

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

No branches or pull requests

1 participant