rapidsai / cugraph

cuGraph - RAPIDS Graph Analytics Library
https://docs.rapids.ai/api/cugraph/stable/
Apache License 2.0
1.76k stars 304 forks source link

[BUG]: AttributeError when importing cugraph #4745

Open marhofmann opened 2 weeks ago

marhofmann commented 2 weeks ago

Version

cugraph-cu11-24.10.0

Which installation method(s) does this occur on?

Pip

Describe the bug.

I installed cugraph using the following command:

$ pip install cugraph-cu11 --extra-index-url=https://pypi.nvidia.com

When I import cugraph in a python console with import cugraph i get the AttributeError AttributeError: module 'cuda.ccudart' has no attribute '__pyx_capi__

Please help

Minimum reproducible example

import cugraph

Relevant log output

Traceback (most recent call last): File "", line 1, in File "/XXX/venv/lib/python3.10/site-packages/cugraph/init.py", line 14, in from cugraph.community import ( File "/XXX/venv/lib/python3.10/site-packages/cugraph/community/init.py", line 14, in from cugraph.community.louvain import louvain File "/XXX/venv/lib/python3.10/site-packages/cugraph/community/louvain.py", line 15, in from cugraph.structure import Graph File "/XXX/venv/lib/python3.10/site-packages/cugraph/structure/init.py", line 14, in from cugraph.structure.graph_classes import ( File "/XXXvenv/lib/python3.10/site-packages/cugraph/structure/graph_classes.py", line 15, in from .graph_implementation import ( File "/XXXvenv/lib/python3.10/site-packages/cugraph/structure/graph_implementation/init.py", line 14, in from .simpleGraph import simpleGraphImpl File "/XXX/venv/lib/python3.10/site-packages/cugraph/structure/graph_implementation/simpleGraph.py", line 14, in from cugraph.structure import graph_primtypes_wrapper File "graph_primtypes_wrapper.pyx", line 1, in init cugraph.structure.graph_primtypes_wrapper File "/XXX/venv/lib/python3.10/site-packages/pylibraft/common/init.py", line 18, in from .cuda import Stream File "cuda.pyx", line 1, in init pylibraft.common.cuda AttributeError: module 'cuda.ccudart' has no attribute '__pyx_capi__'

Environment details

Other/Misc.

No response

Code of Conduct

leofang commented 2 weeks ago

This is tracked in https://github.com/NVIDIA/cuda-python/issues/215. We are working on it. For the time being please downgrade your cuda-python version as instructed there.