Import error from installation from source
See original GitHub issue🐛 Bug
To Reproduce
Steps to reproduce the behavior:
- Built master branch (cd2cf60) from source https://docs.dgl.ai/en/0.6.x/install/
import dgl
in python shell- 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:
- Created 2 years ago
- Comments:15 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think you can ignore it. The package should run okay even with the warning.
@VoVAllen Just to clarify, do you mean silencing the warning, or fixing the underlying memory allocator linking issue?