Langchain Office 365 Errors #27408
Unanswered
crossifino
asked this question in
Q&A
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey, were you able to resolve this? I've setup everything on the MSFT App Registration and also facing the same issue as your. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
Hello I am trying to get the office 365 Langchain module to work and I am not the greatest developer.
I have managed to successfully authenticate and authorize a token then I get the following errors.
I have tried to get GPT to review the code and it can not seem to find an answer. Not sure if there is something wrong with the module or my code but any help would be great right now.
System Info
PydanticUserError:
O365Toolkit
is not fully defined; you should defineAccount
, then callO365Toolkit.model_rebuild()
. For further information visit https://errors.pydantic.dev/2.9/u/class-not-fully-definedTraceback:
File "C:\Users\cross\Streamlit_Azure_AD-main.venv\Lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 88, in exec_func_with_error_handling
result = func()
^^^^^^
File "C:\Users\cross\Streamlit_Azure_AD-main.venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 579, in code_to_exec
exec(code, module.dict)
File "C:\Users\cross\Streamlit_Azure_AD-main\chatgptfix3.py", line 94, in
main()
File "C:\Users\cross\Streamlit_Azure_AD-main\chatgptfix3.py", line 80, in main
toolkit = setup_o365_toolkit(token)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\cross\Streamlit_Azure_AD-main\chatgptfix3.py", line 64, in setup_o365_toolkit
toolkit = O365Toolkit(account=account)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\cross\Streamlit_Azure_AD-main.venv\Lib\site-packages\pydantic\main.py", line 212, in init
validated_self = self.pydantic_validator.validate_python(data, self_instance=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\cross\Streamlit_Azure_AD-main.venv\Lib\site-packages\pydantic_internal_mock_val_ser.py", line 99, in getattr
raise PydanticUserError(self._error_message, code=self._code)
Beta Was this translation helpful? Give feedback.
All reactions