DGL built from source in Windows 11 (CUDA 12.1, PyTorch 2.3.0): Cannot find DGL C++ graphbolt library.
chuanwise opened this issue Β· comments
π Documentation
Exception thrown when I import dgl
:
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "D:\programs\anaconda3\envs\ai\Lib\site-packages\dgl-2.3-py3.11-win-amd64.egg\dgl\__init__.py", line 16, in <module>
from . import (
File "D:\programs\anaconda3\envs\ai\Lib\site-packages\dgl-2.3-py3.11-win-amd64.egg\dgl\dataloading\__init__.py", line 13, in <module>
from .dataloader import *
File "D:\programs\anaconda3\envs\ai\Lib\site-packages\dgl-2.3-py3.11-win-amd64.egg\dgl\dataloading\dataloader.py", line 27, in <module>
from ..distributed import DistGraph
File "D:\programs\anaconda3\envs\ai\Lib\site-packages\dgl-2.3-py3.11-win-amd64.egg\dgl\distributed\__init__.py", line 5, in <module>
from .dist_graph import DistGraph, DistGraphServer, edge_split, node_split
File "D:\programs\anaconda3\envs\ai\Lib\site-packages\dgl-2.3-py3.11-win-amd64.egg\dgl\distributed\dist_graph.py", line 12, in <module>
from .. import backend as F, graphbolt as gb, heterograph_index
File "D:\programs\anaconda3\envs\ai\Lib\site-packages\dgl-2.3-py3.11-win-amd64.egg\dgl\graphbolt\__init__.py", line 36, in <module>
load_graphbolt()
File "D:\programs\anaconda3\envs\ai\Lib\site-packages\dgl-2.3-py3.11-win-amd64.egg\dgl\graphbolt\__init__.py", line 26, in load_graphbolt
raise FileNotFoundError(
FileNotFoundError: Cannot find DGL C++ graphbolt library at D:\programs\anaconda3\envs\ai\Lib\site-packages\dgl-2.3-py3.11-win-amd64.egg\dgl\graphbolt\graphbolt_pytorch_2.3.0.dll
After I built and installed DGL from sources in my Windows 11 (CUDA 12.1, PyTorch 2.3.0, Visual Studio 2019).
Here is the outputs of tree
in site-packages/dgl-2.3-py3.11-win-amd64.egg
:
.
βββ EGG-INFO
β βββ PKG-INFO
β βββ SOURCES.txt
β βββ dependency_links.txt
β βββ native_libs.txt
β βββ not-zip-safe
β βββ requires.txt
β βββ top_level.txt
βββ dgl
βββ __init__.py
βββ _api_internal.py
βββ _ffi
β βββ __init__.py
β βββ _ctypes
β β βββ __init__.py
β β βββ function.py
β β βββ ndarray.py
β β βββ object.py
β β βββ types.py
β βββ _cy2
β β βββ __init__.py
β βββ _cy3
β β βββ __init__.py
β βββ base.py
β βββ capi.py
β βββ function.py
β βββ libinfo.py
β βββ ndarray.py
β βββ object.py
β βββ object_generic.py
β βββ runtime_ctypes.py
β βββ streams.py
βββ _sparse_ops.py
βββ backend
β βββ __init__.py
β βββ backend.py
β βββ mxnet
β β βββ __init__.py
β β βββ sparse.py
β β βββ sparse_optim.py
β β βββ tensor.py
β βββ pytorch
β β βββ __init__.py
β β βββ sparse.py
β β βββ tensor.py
β βββ set_default_backend.py
β βββ tensorflow
β βββ __init__.py
β βββ sparse.py
β βββ sparse_optim.py
β βββ tensor.py
βββ base.py
βββ batch.py
βββ container.py
βββ convert.py
βββ core.py
βββ cuda
β βββ __init__.py
β βββ gpu_cache.py
β βββ nccl.py
βββ data
β βββ __init__.py
β βββ actor.py
β βββ adapter.py
β βββ bitcoinotc.py
β βββ citation_graph.py
β βββ cluster.py
β βββ csv_dataset.py
β βββ csv_dataset_base.py
β βββ dgl_dataset.py
β βββ fakenews.py
β βββ flickr.py
β βββ fraud.py
β βββ gdelt.py
β βββ geom_gcn.py
β βββ gindt.py
β βββ gnn_benchmark.py
β βββ graph_serialize.py
β βββ heterograph_serialize.py
β βββ heterophilous_graphs.py
β βββ icews18.py
β βββ karate.py
β βββ knowledge_graph.py
β βββ lrgb.py
β βββ minigc.py
β βββ movielens.py
β βββ pattern.py
β βββ ppi.py
β βββ qm7b.py
β βββ qm9.py
β βββ qm9_edge.py
β βββ rdf.py
β βββ reddit.py
β βββ sbm.py
β βββ superpixel.py
β βββ synthetic.py
β βββ tensor_serialize.py
β βββ tree.py
β βββ tu.py
β βββ utils.py
β βββ wikics.py
β βββ yelp.py
β βββ zinc.py
βββ dataloading
β βββ __init__.py
β βββ base.py
β βββ cluster_gcn.py
β βββ dataloader.py
β βββ dist_dataloader.py
β βββ graphsaint.py
β βββ labor_sampler.py
β βββ negative_sampler.py
β βββ neighbor_sampler.py
β βββ shadow.py
β βββ spot_target.py
βββ dgl.dll
βββ distgnn
β βββ __init__.py
β βββ partition
β β βββ __init__.py
β β βββ libra_partition.py
β βββ tools
β βββ __init__.py
β βββ tools.py
βββ distributed
β βββ __init__.py
β βββ constants.py
β βββ dist_context.py
β βββ dist_dataloader.py
β βββ dist_graph.py
β βββ dist_tensor.py
β βββ graph_partition_book.py
β βββ graph_services.py
β βββ id_map.py
β βββ kvstore.py
β βββ nn
β β βββ __init__.py
β β βββ mxnet
β β β βββ __init__.py
β β βββ pytorch
β β β βββ __init__.py
β β β βββ sparse_emb.py
β β βββ tensorflow
β β βββ __init__.py
β βββ optim
β β βββ __init__.py
β β βββ mxnet
β β β βββ __init__.py
β β βββ pytorch
β β β βββ __init__.py
β β β βββ sparse_optim.py
β β β βββ utils.py
β β βββ tensorflow
β β βββ __init__.py
β βββ partition.py
β βββ role.py
β βββ rpc.py
β βββ rpc_client.py
β βββ rpc_server.py
β βββ server_state.py
β βββ shared_mem_utils.py
β βββ standalone_kvstore.py
βββ frame.py
βββ function
β βββ __init__.py
β βββ base.py
β βββ message.py
β βββ reducer.py
βββ generators.py
βββ geometry
β βββ __init__.py
β βββ capi.py
β βββ edge_coarsening.py
β βββ fps.py
βββ global_config.py
βββ graph_index.py
βββ graphbolt
β βββ __init__.py
β βββ base.py
β βββ dataloader.py
β βββ dataset.py
β βββ feature_fetcher.py
β βββ feature_store.py
β βββ impl
β β βββ __init__.py
β β βββ basic_feature_store.py
β β βββ fused_csc_sampling_graph.py
β β βββ gpu_cache.py
β β βββ gpu_cached_feature.py
β β βββ in_subgraph_sampler.py
β β βββ legacy_dataset.py
β β βββ neighbor_sampler.py
β β βββ ondisk_dataset.py
β β βββ ondisk_metadata.py
β β βββ sampled_subgraph_impl.py
β β βββ temporal_neighbor_sampler.py
β β βββ torch_based_feature_store.py
β β βββ uniform_negative_sampler.py
β βββ internal
β β βββ __init__.py
β β βββ datapipe_utils.py
β β βββ item_sampler_utils.py
β β βββ sample_utils.py
β β βββ utils.py
β βββ item_sampler.py
β βββ itemset.py
β βββ minibatch.py
β βββ minibatch_transformer.py
β βββ negative_sampler.py
β βββ sampled_subgraph.py
β βββ sampling_graph.py
β βββ subgraph_sampler.py
β βββ utils.py
βββ heterograph.py
βββ heterograph_index.py
βββ homophily.py
βββ init.py
βββ label_informativeness.py
βββ logging.py
βββ merge.py
βββ mpops
β βββ __init__.py
β βββ edgewise.py
β βββ fused.py
β βββ nodewise.py
βββ multiprocessing
β βββ __init__.py
β βββ pytorch.py
βββ ndarray.py
βββ nn
β βββ __init__.py
β βββ functional
β β βββ __init__.py
β βββ mxnet
β β βββ __init__.py
β β βββ conv
β β β βββ __init__.py
β β β βββ agnnconv.py
β β β βββ appnpconv.py
β β β βββ chebconv.py
β β β βββ densechebconv.py
β β β βββ densegraphconv.py
β β β βββ densesageconv.py
β β β βββ edgeconv.py
β β β βββ gatconv.py
β β β βββ gatedgraphconv.py
β β β βββ ginconv.py
β β β βββ gmmconv.py
β β β βββ graphconv.py
β β β βββ nnconv.py
β β β βββ relgraphconv.py
β β β βββ sageconv.py
β β β βββ sgconv.py
β β β βββ tagconv.py
β β βββ glob.py
β β βββ hetero.py
β β βββ softmax.py
β β βββ utils.py
β βββ pytorch
β β βββ __init__.py
β β βββ conv
β β β βββ __init__.py
β β β βββ agnnconv.py
β β β βββ appnpconv.py
β β β βββ atomicconv.py
β β β βββ cfconv.py
β β β βββ chebconv.py
β β β βββ cugraph_base.py
β β β βββ cugraph_gatconv.py
β β β βββ cugraph_relgraphconv.py
β β β βββ cugraph_sageconv.py
β β β βββ densechebconv.py
β β β βββ densegraphconv.py
β β β βββ densesageconv.py
β β β βββ dgnconv.py
β β β βββ dotgatconv.py
β β β βββ edgeconv.py
β β β βββ edgegatconv.py
β β β βββ egatconv.py
β β β βββ egnnconv.py
β β β βββ gatconv.py
β β β βββ gatedgcnconv.py
β β β βββ gatedgraphconv.py
β β β βββ gatv2conv.py
β β β βββ gcn2conv.py
β β β βββ ginconv.py
β β β βββ gineconv.py
β β β βββ gmmconv.py
β β β βββ graphconv.py
β β β βββ grouprevres.py
β β β βββ hgtconv.py
β β β βββ nnconv.py
β β β βββ pnaconv.py
β β β βββ relgraphconv.py
β β β βββ sageconv.py
β β β βββ sgconv.py
β β β βββ tagconv.py
β β β βββ twirlsconv.py
β β βββ explain
β β β βββ __init__.py
β β β βββ gnnexplainer.py
β β β βββ pgexplainer.py
β β β βββ subgraphx.py
β β βββ factory.py
β β βββ glob.py
β β βββ gt
β β β βββ __init__.py
β β β βββ biased_mha.py
β β β βββ degree_encoder.py
β β β βββ egt.py
β β β βββ graphormer.py
β β β βββ lap_pos_encoder.py
β β β βββ path_encoder.py
β β β βββ spatial_encoder.py
β β βββ hetero.py
β β βββ linear.py
β β βββ link
β β β βββ __init__.py
β β β βββ edgepred.py
β β β βββ transe.py
β β β βββ transr.py
β β βββ network_emb.py
β β βββ softmax.py
β β βββ sparse_emb.py
β β βββ utils.py
β βββ tensorflow
β βββ __init__.py
β βββ conv
β β βββ __init__.py
β β βββ appnpconv.py
β β βββ chebconv.py
β β βββ densechebconv.py
β β βββ edgeconv.py
β β βββ gatconv.py
β β βββ ginconv.py
β β βββ graphconv.py
β β βββ relgraphconv.py
β β βββ sageconv.py
β β βββ sgconv.py
β βββ glob.py
β βββ hetero.py
β βββ softmax.py
β βββ utils.py
βββ ops
β βββ __init__.py
β βββ edge_softmax.py
β βββ gather_mm.py
β βββ sddmm.py
β βββ segment.py
β βββ spmm.py
βββ optim
β βββ __init__.py
β βββ mxnet
β β βββ __init__.py
β βββ pytorch
β β βββ __init__.py
β β βββ sparse_optim.py
β βββ tensorflow
β βββ __init__.py
βββ partition.py
βββ propagate.py
βββ random.py
βββ readout.py
βββ sampling
β βββ __init__.py
β βββ labor.py
β βββ negative.py
β βββ neighbor.py
β βββ node2vec_randomwalk.py
β βββ pinsage.py
β βββ randomwalks.py
β βββ utils.py
βββ sparse
β βββ __init__.py
β βββ broadcast.py
β βββ elementwise_op.py
β βββ elementwise_op_sp.py
β βββ matmul.py
β βββ reduction.py
β βββ sddmm.py
β βββ softmax.py
β βββ sparse_matrix.py
β βββ unary_op.py
β βββ utils.py
βββ storages
β βββ __init__.py
β βββ base.py
β βββ numpy.py
β βββ pytorch_tensor.py
β βββ tensor.py
βββ subgraph.py
βββ transforms
β βββ __init__.py
β βββ functional.py
β βββ module.py
β βββ to_block.py
βββ traversal.py
βββ udf.py
βββ utils
β βββ __init__.py
β βββ checks.py
β βββ data.py
β βββ exception.py
β βββ filter.py
β βββ internal.py
β βββ pin_memory.py
β βββ shared_mem.py
βββ view.py
53 directories, 355 files