Open rnyak opened 2 years ago
I get the same error, too! So I tried to use another version of dgl and dgl-ke to fix this. After I try to install dgl-ke from source and use dgl of version dgl-cu113 0.8.0. The code report another error:
Traceback (most recent call last):
File "/anaconda/envs/dgl-ke/bin/dglke_train", line 33, in <module>
sys.exit(load_entry_point('dglke==0.1.0.dev0', 'console_scripts', 'dglke_train')())
File "/anaconda/envs/dgl-ke/bin/dglke_train", line 25, in importlib_load_entry_point
return next(matches).load()
File "/anaconda/envs/dgl-ke/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/anaconda/envs/dgl-ke/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/anaconda/envs/dgl-ke/lib/python3.10/site-packages/dglke-0.1.0.dev0-py3.10.egg/dglke/train.py", line 23, in <module>
File "/anaconda/envs/dgl-ke/lib/python3.10/site-packages/dglke-0.1.0.dev0-py3.10.egg/dglke/dataloader/__init__.py", line 21, in <module>
File "/anaconda/envs/dgl-ke/lib/python3.10/site-packages/dglke-0.1.0.dev0-py3.10.egg/dglke/dataloader/sampler.py", line 23, in <module>
ModuleNotFoundError: No module named 'dgl.backend'
Oh! I find a way to solve this bug thanks to @guillaume-be's PR.
The step is as followed:
# install dgl-cu113 of version 0.8.2
pip install dgl-cu113==0.8.2 dglgo -f https://data.dgl.ai/wheels/repo.html
# install dgl-ke using newest version (the version in pypi hasn't been updated to the newest one on github)
git clone https://github.com/awslabs/dgl-ke.git
cd dgl-ke/python
python setup.py install
I think this might be able to solve your issuse, too.
Oh! I find a way to solve this bug thanks to @guillaume-be's PR.
The step is as followed:
# install dgl-cu113 of version 0.8.2 pip install dgl-cu113==0.8.2 dglgo -f https://data.dgl.ai/wheels/repo.html # install dgl-ke using newest version (the version in pypi hasn't been updated to the newest one on github) git clone https://github.com/awslabs/dgl-ke.git cd dgl-ke/python python setup.py install
I think this might be able to solve your issuse, too.
Please notice that if you don't have the root privilege, you should run "python setup.py install --user".
BTW, I made a docker image and readme for easier usage. Feel free to use it if this is helpful to anyone who see this :) https://hub.docker.com/repository/docker/yangzhep/kge/general
Hello, I installed the dgl and dglke as stated in the quick start and when I test the code below I get an error:
is there a quick fix to that error? thanks.