localGPT
localGPT copied to clipboard
ingest failes on Windows 11
Hi,
on Windows11 the ingest.py fails. I got the following error
traceback (most recent call last):
File "ingest.py", line 44, in <module>
def load_documents(source_dir: str) -> list[Document]:
TypeError: 'type' object is not subscriptable
the parameter --help produce the same error
the version 3 weeks ago run smoothly
I'm having a different error, but I'm also on Win11.
Mine is
File "D:\_AI_\localGPT\ingest.py", line 6, in <module> from langchain.docstore.document import Document ModuleNotFoundError: No module named 'langchain'
@schnettker let me have a look at it. Will try to reproduce it.
@skittixch are you facing this after running the pip install -r requirements.txt
command? Seems like your python env is not able to find the langchain package. If you are working in a virtual environment, can you please do the install again using the following command in your virtual env: python -m pip install -r requirements.txt
and report back? Thanks,