localGPT icon indicating copy to clipboard operation
localGPT copied to clipboard

ingest failes on Windows 11

Open schnettker opened this issue 1 year ago • 3 comments

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

schnettker avatar Jun 22 '23 07:06 schnettker

the version 3 weeks ago run smoothly

schnettker avatar Jun 22 '23 08:06 schnettker

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'

skittixch avatar Jun 22 '23 17:06 skittixch

@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,

PromtEngineer avatar Jun 22 '23 19:06 PromtEngineer