question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:

  1. Pip installed “dgl=‘0.5.2’, pytorch=‘1.5.1+cuda10.1’”
  2. 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”
  3. Run the code

import dgl dataset = dgl.data.CSVDataset(‘./mini_multi_dataset’)

  1. 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:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
RafaWongcommented, Jun 23, 2022

@RafaWong could you provide more call stacks? could you make sure non-CSV dataset works as expected? such as RedditDataset.

Thanks! I failed to understand the input format of “meta.yaml”. This bug has been resolved!

0reactions
Rhett-Yingcommented, Jun 22, 2022

@RafaWong could you provide more call stacks? could you make sure non-CSV dataset works as expected? such as RedditDataset.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found