Langchain&weaviate module error : Optional[aiohttp.ClientSession] = None (langchain 모듈에러)
Sep 19, 2023
python3.10/site-packages/langchain/requests.py”, line 18, in Requests
aiosession: Optional[aiohttp.ClientSession] = None
I’m using langchian and weaviate and just found this error when I worked at the virtual envrionment
so I started to check and download all module for it.
I ended up realising it’s dependency problem with weaviate-client when I installed requests == 2.28.1
pip install requests == 2.28.1
pip install weaviate-client==3.22.1
— — — — — — — — — — — — — — — — — -
langchain과 weaviate쓸때는 모듈때문에 고생을 정말 많이 했습니다.
고로 항상 venv를 써서 가상환경에서 개발을 하는것을 추천드려요!
결론 : 이 에러를 만났을시
Pip install request 해보시고
두번째 에러 문구에 따라서 다른 모듈 버전도 맞춰주면 됩니다.