FileNotFoundError: Cannot find DGL C++ sparse library

:bug: FileNotFoundError: Cannot find DGL C++ sparse library

I want to use the new dgl.sparse, a error FileNotFoundError: Cannot find DGL C++ sparse library occured. The detialed info is as below:

To Reproduce

Steps to reproduce the behavior:
my code:

import dgl.sparse as dglsp

the error:

FileNotFoundError: Cannot find DGL C++ sparse library at /root/miniconda3/envs/crime/lib/python3.8/site-packages/dgl/dgl_sparse/libdgl_sparse_pytorch_1.9.0.so

Expected behavior

I expect to use your new lib dgl.sparse.

Environment

  • DGL Version (e.g., 1.0): 1.0.1+cu113
  • Backend Library & Version (e.g., PyTorch 0.4.1, MXNet/Gluon 1.3): pytorch 1.9.0+cu111
  • OS (e.g., Linux): ubuntu 18.04.5 LTS (Bionic Beaver)
  • How you installed DGL (conda, pip, source): conda
  • Build command you used (if compiling from source):
  • Python version: 3.8.10
  • CUDA/cuDNN version (if applicable): Cuda compilation tools, release 11.1, V11.1.105
  • GPU models and configuration (e.g. V100): -
  • Any other relevant information:

Additional context

DGL sparse requires PyTorch >=1.12. please install a newer pytorch.

Thx for your reply! I update my Pytorch and it works!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.