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.

Loading Cora/PubMed dataset is unsuccessful

See original GitHub issue

🐛 Bug

This bug occurred when i tried to load Cora dataset.

from torch_geometric.datasets import Planetoid dataset = Planetoid(root='Cora', name='Cora')

Downloading https://github.com/kimiyoung/planetoid/raw/master/data/ind.cora.x Traceback (most recent call last): File "/usr/lib/python3.6/urllib/request.py", line 1320, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [Errno 104] Connection reset by peer>

I noticed that I thought the download URL was wrong, so I changed planetoid.py

` url = ‘https://github.com/kimiyoung/planetoid/raw/master/data’ #url = ‘https://github.com/kimiyoung/planetoid/tree/master/data

`

But a new bug happened.

Processing... Traceback (most recent call last): File "<input>", line 1, in <module> File "<input>", line 34, in __init__ File "/home/xinzhi/PycharmProjects/PyG_project/venv/lib/python3.6/site-packages/torch_geometric/data/in_memory_dataset.py", line 53, in __init__ pre_filter) File "/home/xinzhi/PycharmProjects/PyG_project/venv/lib/python3.6/site-packages/torch_geometric/data/dataset.py", line 93, in __init__ self._process() File "/home/xinzhi/PycharmProjects/PyG_project/venv/lib/python3.6/site-packages/torch_geometric/data/dataset.py", line 166, in _process self.process() File "<input>", line 59, in process File "/home/xinzhi/PycharmProjects/PyG_project/venv/lib/python3.6/site-packages/torch_geometric/io/planetoid.py", line 19, in read_planetoid_data items = [read_file(folder, prefix, name) for name in names] File "/home/xinzhi/PycharmProjects/PyG_project/venv/lib/python3.6/site-packages/torch_geometric/io/planetoid.py", line 19, in <listcomp> items = [read_file(folder, prefix, name) for name in names] File "/home/xinzhi/PycharmProjects/PyG_project/venv/lib/python3.6/site-packages/torch_geometric/io/planetoid.py", line 67, in read_file else: _pickle.UnpicklingError: invalid load key, '\x0a'.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
KrabbeJingcommented, May 27, 2020

image dataset = Planetoid(root=‘data/planetoid’, name=‘Cora’) this is my hierarchical structure

0reactions
huangJC0429commented, Jan 31, 2021

I meet same problem, Just download Cora datasets by browser, and copy it to the …/data/raw floder

Read more comments on GitHub >

github_iconTop Results From Across the Web

Loading Cora/PubMed dataset is unsuccessful #988 - GitHub
This bug occurred when i tried to load Cora dataset. from torch_geometric.datasets import Planetoid dataset = Planetoid(root='Cora', name='Cora ...
Read more >
Why does python fail when loading data set ".load_data()"
1 Answer 1 ... This may be because you don't have python certificates installed, which is a pretty common error on Macs. You...
Read more >
python/PaddlePaddle/PGL/examples/deepwalk ... - Program Talk
CoraDataset () elif name == "pubmed": dataset = pgl.dataset. ... return dataset.graph def build_graph(args): graph = load(args.dataset) return graph def ...
Read more >
Download PDF - arXiv
In this experiment, we select various datasets to cover the vast majority of the GNN inputs, including typical datasets (Citeseer, Cora, Pubmed, ...
Read more >
Home · MLDatasets.jl - JuliaML
In contrast to other data-related Julia packages, the focus of MLDatasets.jl is ... For example you can load the training set of the...
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