Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pomelo-nwu opened this issue Sep 24, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@pomelo-nwu
Copy link
Collaborator

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
  1. Run demo code python index.py
# index.py
import graphscope
graphscope.set_option(show_log=False)  # enable logging
  1. 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):

  • 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.

@pomelo-nwu pomelo-nwu added the bug Something isn't working label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant