Pytorch_geometric: A little question about downloading datasets through TUDataset()

Created on 10 Jun 2019  ยท  8Comments  ยท  Source: rusty1s/pytorch_geometric

โ“ Questions & Help


hello @rusty1s :

I have downloaded some datasets via TUDataset(root=myroot, name=myname) about 2 weeks ago.
But when I downloaded a dataset(for example, Enzymes dataset) through TUDataset(root=myroot, name=myname)
to my new computers today, it cannot work.
here is my code:

from torch_geometric.datasets import TUDataset
enz = TUDatasets(root='./ENZYMES', name='ENZYMES')

but it raises an error: Certification Error
Certification Error: hostname 'ls11-www.cs.uni-dortmund.de' doesn't match 'ls11-www.cs.tu-dortmund.de'
(P.S. When I am in Microsoft Windows 10, The way of installing it on Win 10 is just by chance(pip install, Visual Studio 2019 + Python 3.7))
or
URLError: <urlopen error [SSL: CERTIFICATION_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'ls11-www.cs.uni-dortmund.de'. (_ssl_c:1056)>
(When I am in Ubuntu 16.04)

I don't know what is the reason for that.

Yours,
@wmf1997

Most helpful comment

python setup.py install

or

python setup.py develop

Inside your forked or cloned directory. You may need to install the latest version of torch-cluster via pip.

All 8 comments

Was this fixed here?
Faced the same problem the other day.

Exactly, the easiest way for you to fix is probably to adjust the url manually.

thank you very much

Btw how can I install PyG from source? Should I just run the pip install -e /path/to/myfork ??

python setup.py install

or

python setup.py develop

Inside your forked or cloned directory. You may need to install the latest version of torch-cluster via pip.

Quick fix for people having this issue. Change path before downloading dataset:
UDataset.path = 'https://ls11-www.cs.tu-dortmund.de/people/morris/graphkerneldatasets'
Hope it works!

Thanks. I will push a new release soon. Sorry for the delay.

Quick fix for people having this issue. Change path before downloading dataset:
UDataset.path = 'https://ls11-www.cs.tu-dortmund.de/people/morris/graphkerneldatasets'
Hope it works!

Thanks for your information, but a little bit mistake. Below is correct one.
Anyway, thanks.

TUDataset.url = 'https://ls11-www.cs.tu-dortmund.de/people/morris/graphkerneldatasets'

Was this page helpful?
0 / 5 - 0 ratings