-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impossible to import dgl 0.4.2 #1494
Comments
Hi, Could you try uninstall and using pip install? |
|
cc @BarclayII |
With the latest version I'm getting this error which I think is due to a change in some dgl file:
|
And you may want to upgrade pip by |
I repeatedly run |
The latest code in master branch should be able to load pickles dumped before 0.4.2. |
hi y'all, I'm getting the same error mentioned here, while trying to run the benchmarking-gnns project. using windows python 3.8.0 dgl 0.4.3. I saw that the pickle compatibility issue was fixed. what should I be installing then, to make this work? |
Just updating - I've solved this issue by looking up class GraphIndex(ObjectBase) which led to the location of the graph_index.py file on the dgl repo (https://github.com/dmlc/dgl/blob/master/python/dgl/graph_index.py) and there I saw the patch I needed to replace: when installing 0.4.2 the setstate method of the object would look like: def setstate(self, state): And the patch is as can be seen in the following:
I hope this helps anyone. |
I'm having this problem importing dgl 0.4.2:
DGL Version (e.g., 1.0): dgl-0.4.2
Backend Library & Version (e.g., PyTorch 0.4.1, MXNet/Gluon 1.3): pytorch 1.5.0
OS (e.g., Linux): Windows10
How you installed DGL (conda, pip, source): conda install -c dglteam dgl
Build command you used (if compiling from source):
Python version: python 3.7.6
CUDA/cuDNN version (if applicable): none
GPU models and configuration (e.g. V100): none
I am forced to use dgl 0.4.2 for the gnns benchmarks https://github.com/graphdeeplearning/benchmarking-gnns/ . Any ideas on how to solve it?
The text was updated successfully, but these errors were encountered: