Skip to content

IOError occurs when trying to download with python downloadutils.py --downloadImages --wnid n03492922 #18

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

Open
bit-scientist opened this issue Jun 22, 2018 · 0 comments

Comments

@bit-scientist
Copy link

bit-scientist commented Jun 22, 2018

I am following the steps on Windows 10 and I think there is something I should change.
When I run python downloadutils.py --downloadImages --wnid n03492922 in D:\dataset\safet_helmet_dataset\ImageNet_Utils> I have the below error

Traceback (most recent call last):
  File "downloadutils.py", line 34, in <module>
    list = downloader.getImageURLsOfWnid(id)
  File "./libs\imagedownloader.py", line 78, in getImageURLsOfWnid
    f = urllib.urlopen(url)
  File "C:\Users\sohib\Anaconda3\envs\py27\lib\urllib.py", line 87, in urlopen
    return opener.open(url)
  File "C:\Users\sohib\Anaconda3\envs\py27\lib\urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "C:\Users\sohib\Anaconda3\envs\py27\lib\urllib.py", line 351, in open_http
    errcode, errmsg, headers = h.getreply()
  File "C:\Users\sohib\Anaconda3\envs\py27\lib\httplib.py", line 1196, in getreply
    response = self._conn.getresponse()
  File "C:\Users\sohib\Anaconda3\envs\py27\lib\httplib.py", line 1121, in getresponse
    response.begin()
  File "C:\Users\sohib\Anaconda3\envs\py27\lib\httplib.py", line 438, in begin
    version, status, reason = self._read_status()
  File "C:\Users\sohib\Anaconda3\envs\py27\lib\httplib.py", line 394, in _read_status
    line = self.fp.readline(_MAXLINE + 1)
  File "C:\Users\sohib\Anaconda3\envs\py27\lib\socket.py", line 480, in readline
    data = self._sock.recv(self._rbufsize)
IOError: [Errno socket error] [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

What would you suggest doing?
Thank you!

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

1 participant