private-gpt
private-gpt copied to clipboard
Version Mismatch for numpy
Hello I am getting following error while compiling ingest.py
I am using python version Python 3.11.3 I have tried various numpy version starting from 1.23.3 to 1.24.3
:\Users\restd\AppData\Local\Programs\Python\Python310\lib\site-packages\torch_utils.py:147: UserWarning: Failed to initialize NumPy: module compiled against API version 0x10 but this version of numpy is 0xf . Check the section C-API incompatibility at the Troubleshooting ImportError section at https://numpy.org/devdocs/user/troubleshooting-importerror.html#c-api-incompatibility for indications on how to solve this problem . (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:84.)
t = torch.tensor([], dtype=storage.dtype, device=storage._untyped_storage.device)
Creating new vectorstore
Loading documents from source_documents
Loading new documents: 100%|██████████████████████| 1/1 [00:06<00:00, 6.18s/it]
Loaded 1 new documents from source_documents
Split into 90 chunks of text (max. 500 tokens each)
Creating embeddings. May take some minutes...
Using embedded DuckDB with persistence: data will be stored in: db
Traceback (most recent call last):
File "c:\P_GPT\ingest.py", line 167, in
Please resolve
Please use numpy 1.23.5 and Python 3.10.0