Comments (4)
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.
from dgl-ke.
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 installI 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".
from dgl-ke.
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'
from dgl-ke.
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
from dgl-ke.
Related Issues (20)
- why dgl-ke so much faster than openke in test set HOT 3
- Upgrade DGL dependency HOT 2
- Can DGL_KE models be implemented on dynamic knowledge graphs? HOT 1
- Force dtype to int64 to ensure that we don't index with non-long tensor
- IndexError: list index out of range when training on raw user defined knowledge graph HOT 4
- Support Adam or Adagrad HOT 8
- Can not install dgl 0.4.3 HOT 4
- DGLBACKEND s not recognized as an internal or external command HOT 1
- No module named 'ogb
- whether just assign vertexes but not the edges together with on graph partition when use METIS
- dgl.__version__ >= 0.8 breaks on partition.py HOT 2
- RuntimeError: Cannot re-initialize CUDA in forked subprocess HOT 1
- Multi-gpu training is not effective on specific cases
- `graph.HeteroGraph` Error happened when running example HOT 1
- !DGLBACKEND=pytorch dglke_train Not Working HOT 1
- pytorch dglke_train Not Working, Expected type graph.Graph but get graph.HeteroGraph HOT 3
- can't train my KG ,it keeps telling me 'AssertionError: test set is not provided'
- Installation error, no corresponding version HOT 1
- DGL-KE TransR Predict Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dgl-ke.