TheAiSingularity / graphrag-local-ollama

Local models support for Microsoft's graphrag using ollama (llama3, mistral, gemma2 phi3)- LLM & Embedding extraction
MIT License
733 stars 109 forks source link

Fails to build knowledge graph. #76

Open dudezilla opened 2 weeks ago

dudezilla commented 2 weeks ago

tried flailing around with the root directory, in case your domunetation is autogenerated.

(graphrag-ollama-local) PS C:\Users\spete\grahollama\graphrag-local-ollama\ragtest> python -m graphrag.index --init --root ./ Traceback (most recent call last): File "C:\Users\spete\anaconda3\envs\graphrag-ollama-local\lib\runpy.py", line 187, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "C:\Users\spete\anaconda3\envs\graphrag-ollama-local\lib\runpy.py", line 146, in _get_module_details return _get_module_details(pkg_main_name, error) File "C:\Users\spete\anaconda3\envs\graphrag-ollama-local\lib\runpy.py", line 110, in _get_module_details import(pkg_name) File "C:\Users\spete\grahollama\graphrag-local-ollama\graphrag\index__init.py", line 40, in from .run import run_pipeline, run_pipeline_with_config File "C:\Users\spete\grahollama\graphrag-local-ollama\graphrag\index\run.py", line 59, in from .verbs import * # noqa File "C:\Users\spete\grahollama\graphrag-local-ollama\graphrag\index\verbs__init.py", line 9, in from .graph import ( File "C:\Users\spete\grahollama\graphrag-local-ollama\graphrag\index\verbs\graph__init__.py", line 10, in from .layout import layout_graph File "C:\Users\spete\grahollama\graphrag-local-ollama\graphrag\index\verbs\graph\layout\init__.py", line 6, in from .layout_graph import layout_graph File "C:\Users\spete\grahollama\graphrag-local-ollama\graphrag\index\verbs\graph\layout\layout_graph.py", line 13, in from graphrag.index.graph.visualization import GraphLayout File "C:\Users\spete\grahollama\graphrag-local-ollama\graphrag\index\graph\visualization\init.py", line 6, in from .compute_umap_positions import compute_umap_positions, get_zero_positions File "C:\Users\spete\grahollama\graphrag-local-ollama\graphrag\index\graph\visualization\compute_umap_positions.py", line 6, in import graspologic as gc File "C:\Users\spete\anaconda3\envs\graphrag-ollama-local\lib\site-packages\graspologic\init.py", line 8, in import graspologic.inference File "C:\Users\spete\anaconda3\envs\graphrag-ollama-local\lib\site-packages\graspologic\inference\init.py", line 6, in from .latent_distribution_test import latent_distribution_test File "C:\Users\spete\anaconda3\envs\graphrag-ollama-local\lib\site-packages\graspologic\inference\latent_distribution_test.py", line 7, in from hyppo.ksample import KSample File "C:\Users\spete\anaconda3\envs\graphrag-ollama-local\lib\site-packages\hyppo\init.py", line 5, in import hyppo.kgof File "C:\Users\spete\anaconda3\envs\graphrag-ollama-local\lib\site-packages\hyppo\kgof\init__.py", line 2, in from .fssd import FSSD, FSSDH0SimCovObs File "C:\Users\spete\anaconda3\envs\graphrag-ollama-local\lib\site-packages\hyppo\kgof\fssd.py", line 4, in from past.utils import old_div ModuleNotFoundError: No module named 'past'

Frdoe commented 2 weeks ago

pip install future solved it for me.

dudezilla commented 2 weeks ago

thanks.