I want to run DGL on my linux server,and this is my conda environment:
cuda-cudart 12.1.105 0 nvidia
cuda-cupti 12.1.105 0 nvidia
cuda-libraries 12.1.0 0 nvidia
cuda-nvrtc 12.1.105 0 nvidia
cuda-nvtx 12.1.105 0 nvidia
cuda-opencl 12.4.127 0 nvidia
cuda-runtime 12.1.0 0 nvidia
cuda-version 11.8 h70ddcb2_3 conda-forge
cudatoolkit 11.8.0 h4ba93d1_13 conda-forge
cudnn 8.9.7.29 hbc23b4c_3 conda-forge
dgl 2.2.1.th23.cu118 py311_0 dglteam/label/th23_cu118
pytorch 2.3.0 cuda118_py311h6c9cb27_300 conda-forge
pytorch-cuda 12.1 ha16c6d3_5 pytorch
(The whole conda environment is here.)
But when I import DGL it crashed with this:
ERROR: found no collectors for /home/jiaxuwu/IdeaProjects/torchhydro/tests/test_dgl_forward.py::test_train_graph
tests/test_dgl_forward.py:None (tests/test_dgl_forward.py)
test_dgl_forward.py:1: in <module>
import dgl
../../../.conda/envs/forest-minio/lib/python3.11/site-packages/dgl/__init__.py:16: in <module>
from . import (
../../../.conda/envs/forest-minio/lib/python3.11/site-packages/dgl/dataloading/__init__.py:13: in <module>
from .dataloader import *
../../../.conda/envs/forest-minio/lib/python3.11/site-packages/dgl/dataloading/dataloader.py:27: in <module>
from ..distributed import DistGraph
../../../.conda/envs/forest-minio/lib/python3.11/site-packages/dgl/distributed/__init__.py:5: in <module>
from .dist_graph import DistGraph, DistGraphServer, edge_split, node_split
../../../.conda/envs/forest-minio/lib/python3.11/site-packages/dgl/distributed/dist_graph.py:11: in <module>
from .. import backend as F, graphbolt as gb, heterograph_index
../../../.conda/envs/forest-minio/lib/python3.11/site-packages/dgl/graphbolt/__init__.py:36: in <module>
load_graphbolt()
../../../.conda/envs/forest-minio/lib/python3.11/site-packages/dgl/graphbolt/__init__.py:26: in load_graphbolt
raise FileNotFoundError(
E FileNotFoundError: Cannot find DGL C++ graphbolt library at /home/jiaxuwu/.conda/envs/forest-minio/lib/python3.11/site-packages/dgl/graphbolt/libgraphbolt_pytorch_2.3.0.post300.so
So are there problems in my environment? How to resolve?
Hope your reply.