question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Import error from installation from source

See original GitHub issue

🐛 Bug

To Reproduce

Steps to reproduce the behavior:

  1. Built master branch (cd2cf60) from source https://docs.dgl.ai/en/0.6.x/install/
  2. import dgl in python shell
  3. got import error message :
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dgl
[23:48:28] /home/tiger/usr_name/dgl/src/runtime/tensordispatch.cc:43: TensorDispatcher: dlopen failed: /home/tiger/anaconda3/envs/usr_name/lib/python3.8/site-packages/dgl-0.8-py3.8-linux-x86_64.egg/dgl/tensoradapter/pytorch/libtensoradapter_pytorch_1.9.0.so: cannot open shared object file: No such file or directory
Using backend: pytorch
>>>

Environment

  • DGL Version (e.g., 1.0): 0.8
  • Backend Library & Version (e.g., PyTorch 0.4.1, MXNet/Gluon 1.3): PyTorch 1.9.0
  • OS (e.g., Linux): Debian
  • How you installed DGL: source
  • Build command you used (if compiling from source):
git clone --recurse-submodules https://github.com/dmlc/dgl.git
sudo apt-get update
sudo apt-get install -y build-essential python3-dev make cmake
cd dgl
mkdir build
cd build
cmake ..
make -j4
  • Python version: 3.8.5
  • CUDA/cuDNN version (if applicable): NA
  • GPU models and configuration (e.g. V100): NA
  • Any other relevant information:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jwyyycommented, Oct 20, 2021

P.S. I get the same message, also on debian when installing via anaconda

I think you can ignore it. The package should run okay even with the warning.

0reactions
nv-dlasallecommented, Feb 8, 2022

@VoVAllen Just to clarify, do you mean silencing the warning, or fixing the underlying memory allocator linking issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Unable to import a module that is definitely installed
Open up Terminal · Type open .bash_profile · In the text file that pops up, add this line at the end: export PYTHONPATH=$PYTHONPATH:/System/Library/Frameworks/ ......
Read more >
Troubleshooting ImportError — NumPy v1.24 Manual
if you built from source, your compiler versions and ideally a build log. when investigating further and asking for support. Using Python from...
Read more >
Installation - PySCF
To ensure that the installation was successful, you can start a Python shell, and type: >>> import pyscf. For Mac OS X/macOS, you...
Read more >
Project Import and Build errors in CCS
Introduction. This page describes how to troubleshoot and resolve some of the common project import and build errors in CCS.
Read more >
Installation — pandas 1.5.2 documentation
Instructions for installing from source, PyPI, ActivePython, various Linux ... If you encounter an ImportError, it usually means that Python couldn't find ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found