[BUG] AttributeError: module 'dgl.data' has no attribute 'CSVDataset
See original GitHub issue🐛 Bug
module ‘dgl.data’ has no attribute ‘CSVDataset’
To Reproduce
Steps to reproduce the behavior:
- Pip installed “dgl=‘0.5.2’, pytorch=‘1.5.1+cuda10.1’”
- From the part “Dataset of multiple graphs” in “4.6 Loading data from CSV files” ( “https://docs.dgl.ai/guide/data-loadcsv.html”), downloaded “meta.yaml”, “node.csv”, “edge.csv”, and “graphs.csv”. Then put them into a folder “./mini_multi_dataset”
- Run the code
import dgl dataset = dgl.data.CSVDataset(‘./mini_multi_dataset’)
- The bug is “AttributeError: module ‘dgl.data’ has no attribute ‘CSVDataset’”
Expected behavior
no extra behavior
Environment
- DGL Version: 0.5.2
- Backend Library & Version: pytorch=‘1.5.1’
- OS: Windows 10
- How you installed DGL (
conda) : conda install -c dglteam dgl-cuda10.1 - Build command you used (if compiling from source): /
- Python version: 3.6.5
- CUDA/cuDNN version (if applicable): CUDA 10.1
- GPU models and configuration (e.g. V100): /
- Any other relevant information: /
Additional context
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
AttributeError: module 'dgl' has no attribute 'from_networkx'
I follow the official guide and write the code below but get the error message “AttributeError: module 'dgl' has no attribute ...
Read more >CSVDataset — DGL 0.9.1post1 documentation
Dataset class that loads and parses graph data from CSV files. This class requires the following additional packages: pyyaml >= 5.4.1. pandas >=...
Read more >dgl.data.csv_dataset — DGL 0.8.2post1 documentation
[docs]class CSVDataset(DGLDataset): """Dataset class that loads and parses graph data from CSV files. This class requires the following additional packages: ...
Read more >dgl.data — DGL 0.8.2post1 documentation - DGL Docs
The basic DGL dataset for creating graph datasets. CSVDataset. Dataset class that loads and parses graph data from CSV files.
Read more >4.6 Loading data from CSV files - DGL Docs
DGL provides CSVDataset for loading and parsing graph data stored in CSV format. ... with no node or edge features, there need only...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks! I failed to understand the input format of “meta.yaml”. This bug has been resolved!
@RafaWong could you provide more call stacks? could you make sure non-CSV dataset works as expected? such as
RedditDataset.