Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

urllib.error.URLError: <urlopen error [Errno 111] Connection refused> #275

Open
zhang-zhen-project opened this issue Jun 4, 2024 · 1 comment

Comments

@zhang-zhen-project
Copy link

Hi~ I'm sorrry to bother you, but it's confuse me a while:
It happened in "loader = ChickenpoxDatasetLoader()", and "anaconda3/envs/pyg/lib/python3.8/urllib/request.py" file will throw the exception "urllib.error.URLError: <urlopen error [Errno 111] Connection refused>".
I'm appreciated if you could help me!
Thanks!
@yuxuan-z19
Copy link

@zhang-zhen-project perhaps you need a quick test on your connection to raw.githubusercontent.com

class ChickenpoxDatasetLoader(object):
    def __init__(self):
        self._read_web_data()

    def _read_web_data(self):
        url = "https://raw.githubusercontent.com/benedekrozemberczki/pytorch_geometric_temporal/master/dataset/chickenpox.json"
        self._dataset = json.loads(urllib.request.urlopen(url).read())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants