graphrag icon indicating copy to clipboard operation
graphrag copied to clipboard

[Bug]: Segmentation fault (core dumped)

Open sparkyqin opened this issue 1 year ago • 9 comments

Describe the bug

When I referred to the guidebook for operation, I encountered the following error. Segmentation fault (core dumped)

Steps to reproduce

  1. pip install graphrag
  2. mkdir -p ./ragtest/input
  3. curl https://www.gutenberg.org/cache/epub/24022/pg24022.txt > ./ragtest/input/book.txt
  4. python -m graphrag.index --init --root ./ragtest

Expected Behavior

create two files: .env and settings.yaml in the ./ragtest directory.

GraphRAG Config Used

before configuration generated

Logs and screenshots

image

Additional Information

  • GraphRAG Version:0.1.1
  • Operating System:Linux bras-base-otwaon1140w-grc-29-76-64-194-71.dsl.bell.ca 4.18.0-147.5.2.19.h1305.eulerosv2r10.x86_64 #1 SMP Tue Jun 6 07:58:07 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
  • Python Version:Python 3.11.5

sparkyqin avatar Jul 09 '24 06:07 sparkyqin

Are you running in a virtual machine? I started testing in a virtual machine in virtualBox, and I encountered this situation. After switching to a host, it worked. I ran it in Docker on the host, and the same Docker failed in the virtualBox virtual machine

zhouxiangling avatar Jul 11 '24 10:07 zhouxiangling

same error :eulerosv2r10.aarch64

zmh2000829 avatar Jul 16 '24 03:07 zmh2000829

facing same issue

sujith-rkumar avatar Jul 22 '24 16:07 sujith-rkumar

Can you please add details about your hosting machine, and graphrag config?

AlonsoGuevara avatar Jul 22 '24 23:07 AlonsoGuevara

Can you please add details about your hosting machine, and graphrag config?

Tried on Ubuntu 18.04. Tried the basic 3 steps in the tutorial (https://microsoft.github.io/graphrag/posts/get_started/) . pip install graphrag mkdir -p ./ragtest/input curl https://www.gutenberg.org/cache/epub/24022/pg24022.txt > ./ragtest/input/book.txt python -m graphrag.index --init --root ./ragtest

This resulted in Segmentation Error. No other error details. Tried with Python 3.10, 3.11, 3.12. Nothing worked.

Update: I checked on Ubuntu 20.04 and it worked. The issue is on Ubuntu 18.04.

sujith-rkumar avatar Jul 23 '24 06:07 sujith-rkumar

Same Issue encountered

with system Ubuntu 22.04. No GPU s Only using CPU with 8 GB memory.

Python version: 3.11

dhruv-fxis avatar Jul 23 '24 12:07 dhruv-fxis

怎么解决呢

renzhangzhe avatar Aug 13 '24 08:08 renzhangzhe

I have the same issue. Ubuntu 22.04

tonisi avatar Aug 17 '24 17:08 tonisi

+1

hit-ybai avatar Aug 20 '24 06:08 hit-ybai

same issue. Ubuntu 22.04 pytho 3.10.16 pip list Package Version


aiofiles 24.1.0 aiolimiter 1.2.1 annotated-types 0.7.0 anyio 4.7.0 anytree 2.12.1 asttokens 2.4.1 attrs 24.3.0 autograd 1.7.0 azure-common 1.1.28 azure-core 1.32.0 azure-identity 1.19.0 azure-search-documents 11.5.2 azure-storage-blob 12.24.0 beartype 0.18.5 certifi 2024.12.14 cffi 1.17.1 charset-normalizer 3.4.0 click 8.1.7 contourpy 1.3.1 cryptography 44.0.0 cycler 0.12.1 datashaper 0.0.49 deprecation 2.1.0 devtools 0.12.2 diskcache 5.6.3 distro 1.9.0 environs 11.2.1 exceptiongroup 1.2.2 executing 2.1.0 fnllm 0.0.10 fonttools 4.55.3 future 1.0.0 gensim 4.3.3 graphrag 1.0.1 graspologic 3.4.1 graspologic-native 1.2.1 h11 0.14.0 httpcore 1.0.7 httpx 0.28.1 hyppo 0.4.0 idna 3.10 isodate 0.7.2 jiter 0.8.2 joblib 1.4.2 json_repair 0.30.3 jsonschema 4.23.0 jsonschema-specifications 2024.10.1 kiwisolver 1.4.7 lancedb 0.17.0 llvmlite 0.43.0 markdown-it-py 3.0.0 marshmallow 3.23.1 matplotlib 3.10.0 mdurl 0.1.2 msal 1.31.1 msal-extensions 1.2.0 networkx 3.4.2 nltk 3.9.1 numba 0.60.0 numpy 1.26.4 openai 1.58.1 overrides 7.7.0 packaging 24.2 pandas 2.2.3 patsy 1.0.1 pillow 11.0.0 pip 24.2 portalocker 2.10.1 POT 0.9.5 pyaml-env 1.2.1 pyarrow 15.0.2 pycparser 2.22 pydantic 2.10.4 pydantic_core 2.27.2 Pygments 2.18.0 PyJWT 2.10.1 pylance 0.20.0 pynndescent 0.5.13 pyparsing 3.2.0 python-dateutil 2.9.0.post0 python-dotenv 1.0.1 pytz 2024.2 PyYAML 6.0.2 referencing 0.35.1 regex 2024.11.6 requests 2.32.3 rich 13.9.4 rpds-py 0.22.3 scikit-learn 1.6.0 scipy 1.12.0 seaborn 0.13.2 setuptools 75.1.0 shellingham 1.5.4 six 1.17.0 smart-open 7.1.0 sniffio 1.3.1 statsmodels 0.14.4 tenacity 9.0.0 threadpoolctl 3.5.0 tiktoken 0.8.0 tqdm 4.67.1 typer 0.15.1 typing_extensions 4.12.2 tzdata 2024.2 umap-learn 0.5.7 urllib3 2.2.3 wheel 0.44.0 wrapt 1.17.0

ghmole avatar Dec 19 '24 06:12 ghmole