alibaba / alibaba/GraphScope

[BUG] Encountered an error while running the GraphScope Python package

Open
#4,256 1 comment 0 reactions 0 assignees View on GitHub
bug stale
Dominant language
C++
Stars
3.6k
Forks
468
Avg merge
29m
Merged PRs (30d)
1

Description

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. install deps
```bash
python -m venv .venv
source .venv/bin/active
pip install graphscope
```
2. Run demo code `python index.py`
```python
# index.py
import graphscope
graphscope.set_option(show_log=False) # enable logging
```
3. Encountered an error
```text
python index.py
Traceback (most recent call last):
File "/Users/pomelo/Desktop/github/test-gs/index.py", line 1, in
import graphscope
File "/Users/pomelo/Desktop/github/test-gs/.venv/lib/python3.11/site-packages/graphscope/__init__.py", line 36, in
from graphscope.analytical.app import *
File "/Users/pomelo/Desktop/github/test-gs/.venv/lib/python3.11/site-packages/graphscope/analytical/app/__init__.py", line 19, in
from graphscope.analytical.app import flash
File "/Users/pomelo/Desktop/github/test-gs/.venv/lib/python3.11/site-packages/graphscope/analytical/app/flash/__init__.py", line 19, in
from graphscope.analytical.app.flash.centrality import betweenness_centrality
File "/Users/pomelo/Desktop/github/test-gs/.venv/lib/python3.11/site-packages/graphscope/analytical/app/flash/centrality.py", line 20, in
from graphscope.framework.app import AppAssets
File "/Users/pomelo/Desktop/github/test-gs/.venv/lib/python3.11/site-packages/graphscope/framework/app.py", line 30, in
from graphscope.framework.context import create_context_node
File "/Users/pomelo/Desktop/github/test-gs/.venv/lib/python3.11/site-packages/graphscope/framework/context.py", line 26, in
import pandas as pd
File "/Users/pomelo/Desktop/github/test-gs/.venv/lib/python3.11/site-packages/pandas/__init__.py", line 22, in
from pandas.compat import is_numpy_dev as _is_numpy_dev # pyright: ignore # noqa:F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/pomelo/Desktop/github/test-gs/.venv/lib/python3.11/site-packages/pandas/compat/__init__.py", line 25, in
from pandas.compat.numpy import (
File "/Users/pomelo/Desktop/github/test-gs/.venv/lib/python3.11/site-packages/pandas/compat/numpy/__init__.py", line 4, in
from pandas.util.version import Version
File "/Users/pomelo/Desktop/github/test-gs/.venv/lib/python3.11/site-packages/pandas/util/__init__.py", line 2, in
from pandas.util._decorators import ( # noqa:F401
File "/Users/pomelo/Desktop/github/test-gs/.venv/lib/python3.11/site-packages/pandas/util/_decorators.py", line 14, in
from pandas._libs.properties import cache_readonly
File "/Users/pomelo/Desktop/github/test-gs/.venv/lib/python3.11/site-packages/pandas/_libs/__init__.py", line 13, in
from pandas._libs.interval import Interval
File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
```

**Environment (please complete the following information):**
- Python version [python 3.11]
- GraphScope version: [0.24.0]
- OS: [e.g. macOS, Apple M2 Pro]
- Version [e.g. 14.5]

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.