mims-harvard / G-Meta

Graph meta learning via local subgraphs (NeurIPS 2020)

Home Page:https://zitniklab.hms.harvard.edu/projects/G-Meta

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No module named 'dgl.graph'

songsong0425 opened this issue · comments

Dear G-Meta team,

Greetings, I counted the problem on dgl package.
When I tried to open the dgl_graph.pkl file, ModuleNotFoundError: No module named 'dgl.graph' problem evoked while I matched the conda virtual environment setting to your requirements.
Although I searched the above error comment, I couldn't find the proper solution.
Can you give any suggestions or results after running dgl_graph.pkl file?
I'm sorry for bothering you and look forward to your reply.

Best,

I met with the same problem and tried to change the version to 'dgl == 0.4.3post2',then I fix it!

here is my environment:

Name Version Build Channel
anyio 3.5.0 py38haa95532_0 defaults
argon2-cffi 21.3.0 pyhd3eb1b0_0 defaults
argon2-cffi-bindings 21.2.0 py38h2bbff1b_0 defaults
asttokens 2.0.5 pyhd3eb1b0_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
attrs 21.4.0 pyhd3eb1b0_0 defaults
babel 2.9.1 pyhd3eb1b0_0 defaults
backcall 0.2.0 pyhd3eb1b0_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
beautifulsoup4 4.11.1 py38haa95532_0 defaults
blas 1.0 mkl defaults
bleach 4.1.0 pyhd3eb1b0_0 defaults
brotlipy 0.7.0 py38h2bbff1b_1003 defaults
ca-certificates 2022.07.19 haa95532_0 defaults
certifi 2022.9.24 py38haa95532_0 defaults
cffi 1.15.1 py38h2bbff1b_0 defaults
charset-normalizer 2.1.0 pypi_0 pypi
colorama 0.4.5 py38haa95532_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
cryptography 37.0.1 py38h21b164f_0 defaults

cudatoolkit 10.2.89 h74a9793_1 defaults

cycler 0.11.0 pypi_0 pypi
debugpy 1.5.1 py38hd77b12b_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
decorator 5.1.1 pyhd3eb1b0_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
defusedxml 0.7.1 pyhd3eb1b0_0 defaults

dgl-cuda10.2 0.4.3post2 py38_0 dglteam

entrypoints 0.4 py38haa95532_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
executing 0.8.3 pyhd3eb1b0_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
fftw 3.3.9 h2bbff1b_1 defaults
fonttools 4.34.4 pypi_0 pypi
freetype 2.10.4 hd328e21_0 defaults
geatpy 2.7.0 pypi_0 pypi
glib 2.69.1 h5dc1a3c_1 defaults
gst-plugins-base 1.18.5 h9e645db_0 defaults
gstreamer 1.18.5 hd78058f_0 defaults
hanlp-downloader 0.0.25 pypi_0 pypi
icc_rt 2022.1.0 h6049295_2 defaults
icu 58.2 ha925a31_3 defaults
idna 3.3 pypi_0 pypi
importlib-metadata 4.11.3 py38haa95532_0 defaults
importlib_resources 5.2.0 pyhd3eb1b0_1 defaults
intel-openmp 2021.4.0 haa95532_3556 defaults
ipykernel 6.9.1 py38haa95532_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
ipython 8.4.0 py38haa95532_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
ipython_genutils 0.2.0 pyhd3eb1b0_1 defaults
ipywidgets 7.6.5 pyhd3eb1b0_1 defaults
jedi 0.18.1 py38haa95532_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
jinja2 3.0.3 pyhd3eb1b0_0 defaults
jpeg 9e h2bbff1b_0 defaults
jpype1 0.7.0 pypi_0 pypi
json5 0.9.6 pyhd3eb1b0_0 defaults
jsonschema 4.16.0 py38haa95532_0 defaults
jupyter 1.0.0 py38haa95532_8 defaults
jupyter_client 7.2.2 py38haa95532_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
jupyter_console 6.4.3 pyhd3eb1b0_0 defaults
jupyter_core 4.10.0 py38haa95532_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
jupyter_server 1.18.1 py38haa95532_0 defaults
jupyterlab 3.4.4 py38haa95532_0 defaults
jupyterlab_pygments 0.1.2 py_0 defaults
jupyterlab_server 2.15.2 py38haa95532_0 defaults
jupyterlab_widgets 1.0.0 pyhd3eb1b0_1 defaults
kiwisolver 1.4.4 pypi_0 pypi
lerc 3.0 hd77b12b_0 defaults
libclang 12.0.0 default_h627e005_2 defaults
libdeflate 1.8 h2bbff1b_5 defaults
libffi 3.4.2 hd77b12b_4 defaults
libiconv 1.16 h2bbff1b_2 defaults
libogg 1.3.5 h2bbff1b_1 defaults
libpng 1.6.37 h2a8f88b_0 defaults
libsodium 1.0.18 h62dcd97_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
libtiff 4.4.0 h8a3f274_0 defaults
libuv 1.40.0 he774522_0 defaults
libvorbis 1.3.7 he774522_0 defaults
libwebp 1.2.4 h2bbff1b_0 defaults
libwebp-base 1.2.4 h2bbff1b_0 defaults
libxml2 2.9.14 h0ad7f3c_0 defaults
libxslt 1.1.35 h2bbff1b_0 defaults
lz4-c 1.9.3 h2bbff1b_1 defaults
markupsafe 2.1.1 py38h2bbff1b_0 defaults
matplotlib 3.5.2 pypi_0 pypi
matplotlib-inline 0.1.2 pyhd3eb1b0_2 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
memory_profiler 0.58.0 pyhd3eb1b0_0 defaults
mistune 0.8.4 py38he774522_1000 defaults
mkl 2021.4.0 haa95532_640 defaults
mkl-service 2.4.0 py38h2bbff1b_0 defaults
mkl_fft 1.3.1 py38h277e83a_0 defaults
mkl_random 1.2.2 py38hf11a4ad_0 defaults
nbclassic 0.3.5 pyhd3eb1b0_0 defaults
nbclient 0.5.13 py38haa95532_0 defaults
nbconvert 6.4.4 py38haa95532_0 defaults
nbformat 5.5.0 py38haa95532_0 defaults
nest-asyncio 1.5.5 py38haa95532_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
networkx 2.8.4 py38haa95532_0 defaults
notebook 6.4.12 py38haa95532_0 defaults
numpy 1.23.1 pypi_0 pypi
numpy-base 1.23.3 py38h4da318b_0 defaults
openssl 1.1.1q h2bbff1b_0 defaults
packaging 21.3 pyhd3eb1b0_0 defaults
pandocfilters 1.5.0 pyhd3eb1b0_0 defaults
parso 0.8.3 pyhd3eb1b0_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
pcre 8.45 hd77b12b_0 defaults
pickleshare 0.7.5 pyhd3eb1b0_1003 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
pillow 9.2.0 pypi_0 pypi
pip 22.1.2 py38haa95532_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
pkgutil-resolve-name 1.3.10 py38haa95532_0 defaults
ply 3.11 py38_0 defaults
prometheus_client 0.14.1 py38haa95532_0 defaults
prompt-toolkit 3.0.20 pyhd3eb1b0_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
prompt_toolkit 3.0.20 hd3eb1b0_0 defaults
psutil 5.9.0 py38h2bbff1b_0 defaults
pure_eval 0.2.2 pyhd3eb1b0_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
pycparser 2.21 pyhd3eb1b0_0 defaults
pygments 2.11.2 pyhd3eb1b0_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
pyhanlp 0.1.84 pypi_0 pypi
pyopenssl 22.0.0 pyhd3eb1b0_0 defaults
pyparsing 3.0.9 py38haa95532_0 defaults
pyqt 5.15.7 py38hd77b12b_0 defaults
pyqt5-sip 12.11.0 py38hd77b12b_0 defaults
pyrsistent 0.18.0 py38h196d8e1_0 defaults
pysocks 1.7.1 py38haa95532_0 defaults
python 3.8.13 h6244533_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
python-dateutil 2.8.2 pyhd3eb1b0_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
python-fastjsonschema 2.16.2 py38haa95532_0 defaults

pytorch 1.12.1 py3.8_cpu_0 pytorch

pytorch-mutex 1.0 cpu pytorch
pytz 2022.1 py38haa95532_0 defaults
pywin32 302 py38h2bbff1b_2 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
pywinpty 2.0.2 py38h5da7b33_0 defaults
pyzmq 23.2.0 py38hd77b12b_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
qt-main 5.15.2 he8e5bd7_4 defaults
qt-webengine 5.15.9 hb9a9bb5_4 defaults
qtconsole 5.3.2 py38haa95532_0 defaults
qtpy 2.2.0 py38haa95532_0 defaults
qtwebkit 5.212 h3ad3cdb_4 defaults
requests 2.28.1 py38haa95532_0 defaults
scipy 1.9.1 py38he11b74f_0 defaults
send2trash 1.8.0 pyhd3eb1b0_1 defaults
setuptools 61.2.0 py38haa95532_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
sip 6.6.2 py38hd77b12b_0 defaults
six 1.16.0 pyhd3eb1b0_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
sniffio 1.2.0 py38haa95532_1 defaults
soupsieve 2.3.1 pyhd3eb1b0_0 defaults
sqlite 3.38.5 h2bbff1b_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
stack_data 0.2.0 pyhd3eb1b0_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
terminado 0.13.1 py38haa95532_0 defaults
testpath 0.6.0 py38haa95532_0 defaults
tk 8.6.12 h2bbff1b_0 defaults
toml 0.10.2 pyhd3eb1b0_0 defaults
torchvision 0.13.1 py38_cpu pytorch
tornado 6.1 py38h2bbff1b_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
tqdm 4.64.1 py38haa95532_0 defaults
traitlets 5.1.1 pyhd3eb1b0_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
typing-extensions 4.3.0 py38haa95532_0 defaults
typing_extensions 4.3.0 py38haa95532_0 defaults
urllib3 1.26.11 py38haa95532_0 defaults
vc 14.2 h21ff451_1 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
vs2015_runtime 14.27.29016 h5e58377_2 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
wcwidth 0.2.5 pyhd3eb1b0_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
webencodings 0.5.1 py38_1 defaults
websocket-client 0.58.0 py38haa95532_4 defaults
wheel 0.37.1 pyhd3eb1b0_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
widgetsnbextension 3.5.2 py38haa95532_0 defaults
win_inet_pton 1.1.0 py38haa95532_0 defaults
wincertstore 0.2 py38haa95532_2 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
winpty 0.4.3 4 defaults
xz 5.2.6 h8cc25b3_0 defaults
zeromq 4.3.4 hd77b12b_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
zipp 3.8.0 py38haa95532_0 defaults
zlib 1.2.12 h8cc25b3_3 defaults
zstd 1.5.2 h19a0ad4_0 defaults

and I think the main problem is your dgl version and you need to choose the proper cuda version

(my pytorch verison is wrong and I could only run the code on cpu, don't follow me)

I have the same problem.

i have the same problem too.