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

[torchdata] cannot import name 'DILL_AVAILABLE' from 'torch.utils.data.datapipes.utils.common' #7380

Closed
Rhett-Ying opened this issue May 8, 2024 · 2 comments · Fixed by #7383
Labels
Release Blocker Issues that blocks release

Comments

@Rhett-Ying
Copy link
Collaborator

🐛 Bug

To Reproduce

This issue happens on torch 2.3.0. A fix is merged into torch, but not integrated into 2.3.0 as mentioned in pytorch/data#1244.

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/conda/envs/dgl-dev-gpu-dgl-0/lib/python3.10/site-packages/dgl/__init__.py", line 16, in <module>
    from . import (
  File "/opt/conda/envs/dgl-dev-gpu-dgl-0/lib/python3.10/site-packages/dgl/dataloading/__init__.py", line 13, in <module>
    from .dataloader import *
  File "/opt/conda/envs/dgl-dev-gpu-dgl-0/lib/python3.10/site-packages/dgl/dataloading/dataloader.py", line 27, in <module>
    from ..distributed import DistGraph
  File "/opt/conda/envs/dgl-dev-gpu-dgl-0/lib/python3.10/site-packages/dgl/distributed/__init__.py", line 5, in <module>
    from .dist_graph import DistGraph, DistGraphServer, edge_split, node_split
  File "/opt/conda/envs/dgl-dev-gpu-dgl-0/lib/python3.10/site-packages/dgl/distributed/dist_graph.py", line 11, in <module>
    from .. import backend as F, graphbolt as gb, heterograph_index
  File "/opt/conda/envs/dgl-dev-gpu-dgl-0/lib/python3.10/site-packages/dgl/graphbolt/__init__.py", line 39, in <module>
    from .base import *
  File "/opt/conda/envs/dgl-dev-gpu-dgl-0/lib/python3.10/site-packages/dgl/graphbolt/base.py", line 9, in <module>
    from torchdata.datapipes.iter import IterDataPipe
  File "/opt/conda/envs/dgl-dev-gpu-dgl-0/lib/python3.10/site-packages/torchdata/__init__.py", line 9, in <module>
    from . import datapipes
  File "/opt/conda/envs/dgl-dev-gpu-dgl-0/lib/python3.10/site-packages/torchdata/datapipes/__init__.py", line 9, in <module>
    from . import iter, map, utils
  File "/opt/conda/envs/dgl-dev-gpu-dgl-0/lib/python3.10/site-packages/torchdata/datapipes/iter/__init__.py", line 79, in <module>
    from torchdata.datapipes.iter.util.cacheholder import (
  File "/opt/conda/envs/dgl-dev-gpu-dgl-0/lib/python3.10/site-packages/torchdata/datapipes/iter/util/cacheholder.py", line 24, in <module>
    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' (/opt/conda/envs/dgl-dev-gpu-dgl-0/lib/python3.10/site-packages/torch/utils/data/datapipes/utils/common.py)

Expected behavior

Environment

  • DGL Version (e.g., 1.0): master
  • Backend Library & Version (e.g., PyTorch 0.4.1, MXNet/Gluon 1.3): PyTorch 2.3.0
  • OS (e.g., Linux): Linux
  • How you installed DGL (conda, pip, source):
  • Build command you used (if compiling from source):
  • Python version:
  • CUDA/cuDNN version (if applicable):
  • GPU models and configuration (e.g. V100):
  • Any other relevant information:

Additional context

@Rhett-Ying Rhett-Ying added the Release Blocker Issues that blocks release label May 8, 2024
@Rhett-Ying Rhett-Ying changed the title [torchdata] [torchdata] cannot import name 'DILL_AVAILABLE' from 'torch.utils.data.datapipes.utils.common' May 8, 2024
@mfbalin
Copy link
Collaborator

mfbalin commented May 8, 2024

#7362 related.

@Rhett-Ying
Copy link
Collaborator Author

#7362 related.

yes. we may hit other similar issues in the future due to the project status of torchdata. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release Blocker Issues that blocks release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants