alibaba / GraphScope

🔨 🍇 💻 🚀 GraphScope: A One-Stop Large-Scale Graph Computing System from Alibaba | 一站式图计算系统
https://graphscope.io
Apache License 2.0
3.3k stars 447 forks source link

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

Open pomelo-nwu opened 2 months ago

pomelo-nwu commented 2 months ago

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

To Reproduce Steps to reproduce the behavior:

  1. install deps
    python -m venv .venv
    source .venv/bin/active
    pip install graphscope
  2. Run demo code python index.py
    # index.py
    import graphscope
    graphscope.set_option(show_log=False)  # enable logging
  3. Encountered an error
    python index.py 
    Traceback (most recent call last):
    File "/Users/pomelo/Desktop/github/test-gs/index.py", line 1, in <module>
    import graphscope
    File "/Users/pomelo/Desktop/github/test-gs/.venv/lib/python3.11/site-packages/graphscope/__init__.py", line 36, in <module>
    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 <module>
    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 <module>
    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 <module>
    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 <module>
    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 <module>
    import pandas as pd
    File "/Users/pomelo/Desktop/github/test-gs/.venv/lib/python3.11/site-packages/pandas/__init__.py", line 22, in <module>
    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 <module>
    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 <module>
    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 <module>
    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 <module>
    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 <module>
    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):

Additional context Add any other context about the problem here.

github-actions[bot] commented 1 month ago

/cc @yecol @sighingnow, this issus/pr has had no activity for a long time, please help to review the status and assign people to work on it.