techleadhd / chatgpt-retrieval

1.65k stars 786 forks source link

Errors : VectorstoreIndexCreator().from_loaders([loader]) #21

Open Ged2323 opened 11 months ago

Ged2323 commented 11 months ago

I'm getting these errors. Not sure what to do about these.

chatgpt.py", line 35, in index = VectorstoreIndexCreator().from_loaders([loader]) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/indexes/vectorstore.py", line 72, in from_loaders docs.extend(loader.load()) ^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/document_loaders/directory.py", line 108, in load self.load_file(i, p, docs, pbar) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/document_loaders/directory.py", line 69, in load_file raise e File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/document_loaders/directory.py", line 63, in load_file sub_docs = self.loader_cls(str(item), **self.loader_kwargs).load() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/document_loaders/unstructured.py", line 71, in load elements = self._get_elements()

File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/langchain/document_loaders/unstructured.py", line 106, in _get_elements from unstructured.partition.auto import partition File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/unstructured/partition/auto.py", line 21, in from unstructured.partition.image import partition_image File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/unstructured/partition/image.py", line 5, in from unstructured.partition.pdf import partition_pdf_or_image File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/unstructured/partition/pdf.py", line 7, in import pdf2image File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pdf2image/init.py", line 5, in from .pdf2image import ( File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pdf2image/pdf2image.py", line 15, in from PIL import Image File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PIL/Image.py", line 103, in from . import _imaging as core ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PIL/_imaging.cpython-311-darwin.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PIL/_imaging.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PIL/_imaging.cpython-311-darwin.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PIL/_imaging.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

HenryCheung898 commented 11 months ago

I have the same issue here. It was alright just 4 days ago. today it happens the same issue.

3dylson commented 10 months ago

https://github.com/techleadhd/chatgpt-retrieval/issues/32#issuecomment-1666569313

sunaarun commented 5 months ago

The same issue :( Did you find any solution?