ErrorReport
$ bash scripts/citation.sh
Traceback (most recent call last):
File "train.py", line 8, in
from datasets.dataloader import load_data
File "D:\Code\HopGNN\datasets\dataloader.py", line 5, in
from ogb.nodeproppred import PygNodePropPredDataset
File "D:\anaconda3\envs\hopgnn\lib\site-packages\ogb\nodeproppred\__init__.py", line 10, in
from .dataset_dgl import DglNodePropPredDataset
File "D:\anaconda3\envs\hopgnn\lib\site-packages\ogb\nodeproppred\dataset_dgl.py", line 6, in
from dgl.data.utils import load_graphs, save_graphs, Subset
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\__init__.py", line 13, in
from .backend import load_backend, backend_name
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\backend\__init__.py", line 95, in
load_backend(get_preferred_backend())
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\backend\__init__.py", line 41, in load_backend
from .._ffi.base import load_tensor_adapter # imports DGL C library
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\_ffi\base.py", line 44, in
_LIB, _LIB_NAME, _DIR_NAME = _load_lib()
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\_ffi\base.py", line 33, in _load_lib
lib_path = libinfo.find_lib_path()
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\_ffi\libinfo.py", line 83, in find_lib_path
raise RuntimeError(message)
RuntimeError: Cannot find the files.
List of candidates:
D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\libdgl.dll
D:\anaconda3\envs\hopgnn\lib\build\libdgl.dll
D:\anaconda3\envs\hopgnn\lib\build\Release\libdgl.dll
D:\anaconda3\envs\hopgnn\lib\lib\libdgl.dll
D:\anaconda3\envs\hopgnn\libdgl.dll
D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\dgl.dll
D:\anaconda3\envs\hopgnn\lib\build\dgl.dll
D:\anaconda3\envs\hopgnn\lib\build\Release\dgl.dll
D:\anaconda3\envs\hopgnn\lib\lib\dgl.dll
D:\anaconda3\envs\hopgnn\dgl.dll
Traceback (most recent call last):
File "train.py", line 8, in
from datasets.dataloader import load_data
File "D:\Code\HopGNN\datasets\dataloader.py", line 5, in
from ogb.nodeproppred import PygNodePropPredDataset
File "D:\anaconda3\envs\hopgnn\lib\site-packages\ogb\nodeproppred\__init__.py", line 10, in
from .dataset_dgl import DglNodePropPredDataset
File "D:\anaconda3\envs\hopgnn\lib\site-packages\ogb\nodeproppred\dataset_dgl.py", line 6, in
from dgl.data.utils import load_graphs, save_graphs, Subset
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\__init__.py", line 13, in
from .backend import load_backend, backend_name
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\backend\__init__.py", line 95, in
load_backend(get_preferred_backend())
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\backend\__init__.py", line 41, in load_backend
from .._ffi.base import load_tensor_adapter # imports DGL C library
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\_ffi\base.py", line 44, in
_LIB, _LIB_NAME, _DIR_NAME = _load_lib()
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\_ffi\base.py", line 33, in _load_lib
lib_path = libinfo.find_lib_path()
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\_ffi\libinfo.py", line 83, in find_lib_path
raise RuntimeError(message)
RuntimeError: Cannot find the files.
List of candidates:
D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\libdgl.dll
D:\anaconda3\envs\hopgnn\lib\build\libdgl.dll
D:\anaconda3\envs\hopgnn\lib\build\Release\libdgl.dll
D:\anaconda3\envs\hopgnn\lib\lib\libdgl.dll
D:\anaconda3\envs\hopgnn\libdgl.dll
D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\dgl.dll
D:\anaconda3\envs\hopgnn\lib\build\dgl.dll
D:\anaconda3\envs\hopgnn\lib\build\Release\dgl.dll
D:\anaconda3\envs\hopgnn\lib\lib\dgl.dll
D:\anaconda3\envs\hopgnn\dgl.dll
Traceback (most recent call last):
File "train.py", line 8, in
from datasets.dataloader import load_data
File "D:\Code\HopGNN\datasets\dataloader.py", line 5, in
from ogb.nodeproppred import PygNodePropPredDataset
File "D:\anaconda3\envs\hopgnn\lib\site-packages\ogb\nodeproppred\__init__.py", line 10, in
from .dataset_dgl import DglNodePropPredDataset
File "D:\anaconda3\envs\hopgnn\lib\site-packages\ogb\nodeproppred\dataset_dgl.py", line 6, in
from dgl.data.utils import load_graphs, save_graphs, Subset
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\__init__.py", line 13, in
from .backend import load_backend, backend_name
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\backend\__init__.py", line 95, in
load_backend(get_preferred_backend())
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\backend\__init__.py", line 41, in load_backend
from .._ffi.base import load_tensor_adapter # imports DGL C library
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\_ffi\base.py", line 44, in
_LIB, _LIB_NAME, _DIR_NAME = _load_lib()
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\_ffi\base.py", line 33, in _load_lib
lib_path = libinfo.find_lib_path()
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\_ffi\libinfo.py", line 83, in find_lib_path
raise RuntimeError(message)
RuntimeError: Cannot find the files.
List of candidates:
D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\libdgl.dll
D:\anaconda3\envs\hopgnn\lib\build\libdgl.dll
D:\anaconda3\envs\hopgnn\lib\build\Release\libdgl.dll
D:\anaconda3\envs\hopgnn\lib\lib\libdgl.dll
D:\anaconda3\envs\hopgnn\libdgl.dll
D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\dgl.dll
D:\anaconda3\envs\hopgnn\lib\build\dgl.dll
D:\anaconda3\envs\hopgnn\lib\build\Release\dgl.dll
D:\anaconda3\envs\hopgnn\lib\lib\dgl.dll
D:\anaconda3\envs\hopgnn\dgl.dll
经分析,推测为dgl版本不匹配,更新为最新版仍不匹配,经搜索发现可发现解决方案无用
ErrorReport
$ bash scripts/citation.sh
Traceback (most recent call last):
File "train.py", line 8, in
from datasets.dataloader import load_data
File "D:\Code\HopGNN\datasets\dataloader.py", line 8, in
from dgl.data import *
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\__init__.py", line 16, in
from . import (
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\dataloading\__init__.py", line 13, in
from .dataloader import *
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\dataloading\dataloader.py", line 27, in
from ..distributed import DistGraph
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\distributed\__init__.py", line 5, in
from .dist_graph import DistGraph, DistGraphServer, edge_split, node_split
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\distributed\dist_graph.py", line 37, in
from .partition import (
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\distributed\partition.py", line 15, in
from ..data.utils import load_graphs, load_tensors, save_graphs, save_tensors
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\data\__init__.py", line 7, in
from . import citation_graph as citegrh
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\data\citation_graph.py", line 20, in
from .dgl_dataset import DGLBuiltinDataset
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\data\dgl_dataset.py", line 12, in
from .utils import download, extract_archive, get_download_dir, makedirs
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\data\utils.py", line 14, in
import requests
File "D:\anaconda3\envs\hopgnn\lib\site-packages\requests\__init__.py", line 43, in
import urllib3
File "D:\anaconda3\envs\hopgnn\lib\site-packages\urllib3\__init__.py", line 42, in
"urllib3 v2.0 only supports OpenSSL 1.1.1+, currently "
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0i 14 Aug 2018'. See: https://github.com/urllib3/urllib3/issues/2168
Traceback (most recent call last):
File "train.py", line 8, in
from datasets.dataloader import load_data
File "D:\Code\HopGNN\datasets\dataloader.py", line 8, in
from dgl.data import *
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\__init__.py", line 16, in
from . import (
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\dataloading\__init__.py", line 13, in
from .dataloader import *
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\dataloading\dataloader.py", line 27, in
from ..distributed import DistGraph
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\distributed\__init__.py", line 5, in
from .dist_graph import DistGraph, DistGraphServer, edge_split, node_split
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\distributed\dist_graph.py", line 37, in
from .partition import (
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\distributed\partition.py", line 15, in
from ..data.utils import load_graphs, load_tensors, save_graphs, save_tensors
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\data\__init__.py", line 7, in
from . import citation_graph as citegrh
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\data\citation_graph.py", line 20, in
from .dgl_dataset import DGLBuiltinDataset
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\data\dgl_dataset.py", line 12, in
from .utils import download, extract_archive, get_download_dir, makedirs
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\data\utils.py", line 14, in
import requests
File "D:\anaconda3\envs\hopgnn\lib\site-packages\requests\__init__.py", line 43, in
import urllib3
File "D:\anaconda3\envs\hopgnn\lib\site-packages\urllib3\__init__.py", line 42, in
"urllib3 v2.0 only supports OpenSSL 1.1.1+, currently "
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0i 14 Aug 2018'. See: https://github.com/urllib3/urllib3/issues/2168
Traceback (most recent call last):
File "train.py", line 8, in
from datasets.dataloader import load_data
File "D:\Code\HopGNN\datasets\dataloader.py", line 8, in
from dgl.data import *
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\__init__.py", line 16, in
from . import (
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\dataloading\__init__.py", line 13, in
from .dataloader import *
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\dataloading\dataloader.py", line 27, in
from ..distributed import DistGraph
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\distributed\__init__.py", line 5, in
from .dist_graph import DistGraph, DistGraphServer, edge_split, node_split
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\distributed\dist_graph.py", line 37, in
from .partition import (
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\distributed\partition.py", line 15, in
from ..data.utils import load_graphs, load_tensors, save_graphs, save_tensors
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\data\__init__.py", line 7, in
from . import citation_graph as citegrh
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\data\citation_graph.py", line 20, in
from .dgl_dataset import DGLBuiltinDataset
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\data\dgl_dataset.py", line 12, in
from .utils import download, extract_archive, get_download_dir, makedirs
File "D:\anaconda3\envs\hopgnn\lib\site-packages\dgl\data\utils.py", line 14, in
import requests
File "D:\anaconda3\envs\hopgnn\lib\site-packages\requests\__init__.py", line 43, in
import urllib3
File "D:\anaconda3\envs\hopgnn\lib\site-packages\urllib3\__init__.py", line 42, in
"urllib3 v2.0 only supports OpenSSL 1.1.1+, currently "
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.1.0i 14 Aug 2018'. See: https://github.com/urllib3/urllib3/issues/2168
经查找,执行pip install urllib3==1.26.15,解决 然后又出现ModuleNotFoundError: No module named 'torch_sparse',故pip安装torchsparse ModuleNotFoundError: No module named 'torch_scatter' 故pip安装torchscatter ModuleNotFoundError: No module named 'google_drive_downloader' 故pip安装
再次运行,这次报错AssertionError: Torch not compiled with CUDA enabled 然后发现torch版本不对,发现下的是cpu版本,故删除重下,pytroch1.13.1 cuda11.7 cudacnn8.9.7参照适配表应不冲突
于是在配置正确的torch sca什么的之类后,成功跑通前两个,但第三个出现错误如下 ValueError: Cannot load file containing pickled data when allow_pickle=False
经把对应地方 allow pickle变true后,错误变成了 OSError Failed to interpret file as a pickle
通过修改环境变量 Path 几个 CUDA 的顺序确实能改变在命令行窗口输入nvcc -V显示的版本号,不过,一旦 conda create 了一个环境,那么环境里的 CUDA 就固定了,不可更换(至少此时笔者还不知如何更换)
离线 pip 安装 torch 问题报错
1 2 3 4 5 6 7 8 9
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: KRB5_S_TKT_NYV] unexpected eof while reading (_ssl.c:1091)'))': /simple/typing-extensions/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: KRB5_S_TKT_NYV] unexpected eof while reading (_ssl.c:1091)'))': /simple/typing-extensions/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: KRB5_S_TKT_NYV] unexpected eof while reading (_ssl.c:1091)'))': /simple/typing-extensions/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: KRB5_S_TKT_NYV] unexpected eof while reading (_ssl.c:1091)'))': /simple/typing-extensions/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: KRB5_S_TKT_NYV] unexpected eof while reading (_ssl.c:1091)'))': /simple/typing-extensions/ Could not fetch URL https://pypi.org/simple/typing-extensions/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/typing-extensions/ (Caused by SSLError(SSLError(1, '[SSL: KRB5_S_TKT_NYV] unexpected eof while reading (_ssl.c:1091)'))) - skipping INFO: pip is looking at multiple versions of torch to determine which version is compatible with other requirements. This could take a while. ERROR: Could not find a version that satisfies the requirement typing-extensions (from torch) (from versions: none) ERROR: No matching distribution found for typing-extensions