severian42 / GraphRAG-Local-UI

GraphRAG using Local LLMs - Features robust API and multiple apps for Indexing/Prompt Tuning/Query/Chat/Visualizing/Etc. This is meant to be the ultimate GraphRAG/KG local LLM app.
MIT License
1.69k stars 198 forks source link

Indexing error #29

Closed bzhanghh closed 3 months ago

bzhanghh commented 3 months ago

Traceback (most recent call last):

File "/usr/lib64/python3.9/runpy.py", line 188, in _run_module_as_main

mod_name, mod_spec, code = _get_module_details(mod_name, _Error)

File "/usr/lib64/python3.9/runpy.py", line 147, in _get_module_details

return _get_module_details(pkg_main_name, error)

File "/usr/lib64/python3.9/runpy.py", line 111, in _get_module_details

__import__(pkg_name)

File "/home/bzhang/GraphRAG-Ollama-UI/graphrag/index/init.py", line 6, in

from .cache import PipelineCache

File "/home/bzhang/GraphRAG-Ollama-UI/graphrag/index/cache/init.py", line 6, in

from .json_pipeline_cache import JsonPipelineCache

File "/home/bzhang/GraphRAG-Ollama-UI/graphrag/index/cache/json_pipeline_cache.py", line 9, in

from graphrag.index.storage import PipelineStorage

File "/home/bzhang/GraphRAG-Ollama-UI/graphrag/index/storage/init.py", line 6, in

from .blob_pipeline_storage import BlobPipelineStorage, create_blob_storage

File "/home/bzhang/GraphRAG-Ollama-UI/graphrag/index/storage/blob_pipeline_storage.py", line 14, in

from datashaper import Progress

File "/home/bzhang/.local/lib/python3.9/site-packages/datashaper/init.py", line 35, in

from .execution import ExecutionNode, VerbDefinitions, derive_from_rows, parallelize

File "/home/bzhang/.local/lib/python3.9/site-packages/datashaper/execution/init.py", line 1, in

from .derive_from_rows import derive_from_rows

File "/home/bzhang/.local/lib/python3.9/site-packages/datashaper/execution/derive_from_rows.py", line 5, in

from datashaper.execution.utils import transform_pandas_table

File "/home/bzhang/.local/lib/python3.9/site-packages/datashaper/execution/utils/init.py", line 1, in

from .pandas import transform_pandas_table

File "/home/bzhang/.local/lib/python3.9/site-packages/datashaper/execution/utils/pandas.py", line 7, in

from datashaper.execution.utils.parallelize import parallelize

File "/home/bzhang/.local/lib/python3.9/site-packages/datashaper/execution/utils/parallelize.py", line 17, in

num_threads: int | None = None,

TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

severian42 commented 3 months ago

Hey! Thanks for your patience on this, the latest update should take care of this issue. Let me know if you're still having problems after the update! Make sure to clear everything out and start fresh if possible for the best chances of it working immediately. Thanks again for checking out the project!

bzhanghh commented 3 months ago

@severian42 Hey thanks for your feedback. I upgrade the python version to 3.11 and used "python app.py" instead of "gradio app.py" then it worked. I used command "python app.py" bcoz I wanted to change the host to 0.0.0.0 and port to 8100 so i changed the env parameters but it didnt work if I used command "gradio app.py".