dmlc / dmlc/dgl

`Cannot find DGL C++ graphbolt library` for torch 2.4.1

Open
#7,822 11 comments 0 reactions 0 assignees View on GitHub
stale-issue
Dominant language
Python
Stars
14.3k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

## 🐛 Bug

I believe this is a duplicate of #7247 (but for `torch` 2.4.1).

## To Reproduce

Steps to reproduce the behavior:

```python
>>> import dgl

Traceback (most recent call last):
File "/Users/yang/developer/test/test_mult.py", line 1, in
import dgl
File "/Users/yang/developer/test/venv/lib/python3.12/site-packages/dgl/__init__.py", line 16, in
from . import (
File "/Users/yang/developer/test/venv/lib/python3.12/site-packages/dgl/dataloading/__init__.py", line 13, in
from .dataloader import *
File "/Users/yang/developer/test/venv/lib/python3.12/site-packages/dgl/dataloading/dataloader.py", line 27, in
from ..distributed import DistGraph
File "/Users/yang/developer/test/venv/lib/python3.12/site-packages/dgl/distributed/__init__.py", line 5, in
from .dist_graph import DistGraph, DistGraphServer, edge_split, node_split
File "/Users/yang/developer/test/venv/lib/python3.12/site-packages/dgl/distributed/dist_graph.py", line 11, in
from .. import backend as F, graphbolt as gb, heterograph_index
File "/Users/yang/developer/test/venv/lib/python3.12/site-packages/dgl/graphbolt/__init__.py", line 36, in
load_graphbolt()
File "/Users/yang/developer/test/venv/lib/python3.12/site-packages/dgl/graphbolt/__init__.py", line 26, in load_graphbolt
raise FileNotFoundError(
FileNotFoundError: Cannot find DGL C++ graphbolt library at /Users/yang/developer/test/venv/lib/python3.12/site-packages/dgl/graphbolt/libgraphbolt_pytorch_2.4.1.dylib
```

## Environment

- DGL Version (e.g., 1.0): 2.2.0
- Backend Library & Version (e.g., PyTorch 0.4.1, MXNet/Gluon 1.3): pytorch 2.4.1
- OS (e.g., Linux): MacOS 15.0.1
- How you installed DGL (`conda`, `pip`, source): pip
- Python version: 3.12.7

## Additional context

```bash
>>> cd /Users/yang/developer/test/venv/lib/python3.12/site-packages/dgl/graphbolt
>>> ls libgraphbolt_pytorch_2.*

libgraphbolt_pytorch_2.1.0.dylib libgraphbolt_pytorch_2.2.0.dylib libgraphbolt_pytorch_2.3.0.dylib
libgraphbolt_pytorch_2.1.1.dylib libgraphbolt_pytorch_2.2.1.dylib
libgraphbolt_pytorch_2.1.2.dylib libgraphbolt_pytorch_2.2.2.dylib
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with dgl/graphbolt/__init__.py and reproduce the import dgl failure using PyTorch 2.4.1 on macOS. Compare the expected libgraphbolt_pytorch_2.4.1.dylib with the bundled 2.1–2.3 libraries and review duplicate issue #7247; done means the reported environment imports DGL without the missing-library error.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, python, pytorch
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.