Hello, could you please help me with the error when I import dgl.Thanks !
Traceback (most recent call last):
File “”, line 1, in
File “/data/liuxin/anaconda3/lib/python3.11/site-packages/dgl/init.py”, line 16, in
from . import (
File “/data/liuxin/anaconda3/lib/python3.11/site-packages/dgl/dataloading/init.py”, line 13, in
from .dataloader import *
File “/data/liuxin/anaconda3/lib/python3.11/site-packages/dgl/dataloading/dataloader.py”, line 27, in
from …distributed import DistGraph
File “/data/liuxin/anaconda3/lib/python3.11/site-packages/dgl/distributed/init.py”, line 5, in
from .dist_graph import DistGraph, DistGraphServer, edge_split, node_split
File “/data/liuxin/anaconda3/lib/python3.11/site-packages/dgl/distributed/dist_graph.py”, line 11, in
from … import backend as F, graphbolt as gb, heterograph_index
File “/data/liuxin/anaconda3/lib/python3.11/site-packages/dgl/graphbolt/init.py”, line 8, in
from .base import *
File “/data/liuxin/anaconda3/lib/python3.11/site-packages/dgl/graphbolt/base.py”, line 8, in
from torchdata.datapipes.iter import IterDataPipe
File “/data/liuxin/anaconda3/lib/python3.11/site-packages/torchdata/init.py”, line 9, in
from . import datapipes
File “/data/liuxin/anaconda3/lib/python3.11/site-packages/torchdata/datapipes/init.py”, line 9, in
from . import iter, map, utils
File “/data/liuxin/anaconda3/lib/python3.11/site-packages/torchdata/datapipes/iter/init.py”, line 79, in
from torchdata.datapipes.iter.util.cacheholder import (
File “/data/liuxin/anaconda3/lib/python3.11/site-packages/torchdata/datapipes/iter/util/cacheholder.py”, line 24, in
from torch.utils.data.datapipes.utils.common import _check_unpickable_fn, DILL_AVAILABLE
ImportError: cannot import name ‘DILL_AVAILABLE’ from ‘torch.utils.data.datapipes.utils.common’ (/data/liuxin/anaconda3/lib/python3.11/site-packages/torch/utils/data/datapipes/utils/common.py)
OS: Ubuntu 20.04.2 LTS
Python version: 3.11.7
Cuda version:12.0
Torch versin: pytorch-cuda=12.1
DGL version: cu121
Installation: Conda
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
conda install -c dglteam/label/cu121 dgl