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]: AttributeError when importing cugraph #4745

Open
2 tasks done
marhofmann opened this issue Nov 5, 2024 · 1 comment
Open
2 tasks done

[BUG]: AttributeError when importing cugraph #4745

marhofmann opened this issue Nov 5, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@marhofmann
Copy link

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

  • Ubuntu 22.04.5
  • Python 3.10
  • Cuda toolkit version 11.5.1-lubuntu1
  • A16 with driver Version NVIDIA-SMI 550.54.14

Other/Misc.

No response

Code of Conduct

  • I agree to follow cuGraph's Code of Conduct
  • I have searched the open bugs and have found no duplicates for this bug report
@marhofmann marhofmann added ? - Needs Triage Need team to review and classify bug Something isn't working labels Nov 5, 2024
@leofang
Copy link
Member

leofang commented Nov 5, 2024

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

@ChuckHastings ChuckHastings removed the ? - Needs Triage Need team to review and classify label Nov 13, 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

3 participants