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

Connection reset by peer #7

Open
palewire opened this issue Mar 28, 2019 · 2 comments
Open

Connection reset by peer #7

palewire opened this issue Mar 28, 2019 · 2 comments

Comments

@palewire
Copy link

$ python fetch_shapefiles.py  
Finding files in: ftp://ftp2.census.gov/geo/tiger/TIGER2012/CD/ ...
Traceback (most recent call last):
  File "fetch_shapefiles.py", line 208, in <module>
    main()
  File "fetch_shapefiles.py", line 203, in main
    year=options.year
  File "fetch_shapefiles.py", line 146, in get_all_geo_types
    get_one_geo_type(geo_type, state, year)
  File "fetch_shapefiles.py", line 133, in get_one_geo_type
    filename_list = get_filename_list_from_ftp(target, state)
  File "fetch_shapefiles.py", line 51, in get_filename_list_from_ftp
    target_files = urllib2.urlopen(target).read().splitlines()
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1413, in ftp_open
    fw = self.connect_ftp(user, passwd, host, port, dirs, req.timeout)
  File "/usr/lib/python2.7/urllib2.py", line 1435, in connect_ftp
    persistent=False)
  File "/usr/lib/python2.7/urllib.py", line 877, in __init__
    self.init()
  File "/usr/lib/python2.7/urllib.py", line 886, in init
    self.ftp.connect(self.host, self.port, self.timeout)
  File "/usr/lib/python2.7/ftplib.py", line 138, in connect
    self.welcome = self.getresp()
  File "/usr/lib/python2.7/ftplib.py", line 215, in getresp
    resp = self.getmultiline()
  File "/usr/lib/python2.7/ftplib.py", line 201, in getmultiline
    line = self.getline()
  File "/usr/lib/python2.7/ftplib.py", line 186, in getline
    line = self.file.readline(self.maxline + 1)
  File "/usr/lib/python2.7/socket.py", line 480, in readline
    data = self._sock.recv(self._rbufsize)
urllib2.URLError: <urlopen error ftp error: [Errno 104] Connection reset by peer>
@smitty1eGH
Copy link

Same issue. I'll see if the API key is required and report back.

@mattppal
Copy link

mattppal commented Mar 9, 2023

Old issue, but I'm having the same problem. Did you ever reach a solution?

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

3 participants