
Traceback (most recent call last):


 "train_mineral_shards.py", line 51, in <module>

main()


 "train_mineral_shards.py", line 24, in main

visualize=True) as env:


 "/Users/haje01/.pyenv/versions/pysc2/lib/python3.5/site-packages/pysc2/env/sc2_env.py", line 128, in __init__

raise ValueError("All arguments must be passed as keyword arguments.")

ValueError: All arguments must be passed as keyword arguments.

Traceback (most recent call last):

 "/opt/openstates/venv-pupa//bin/pupa", line 11, in <module>
load_entry_point('pupa', 'console_scripts', 'pupa')()

 "/opt/openstates/venv-pupa/src/pupa/pupa/cli/__main__.py", line 68, in main
subcommands[args.subcommand].handle(args, other)

 "/opt/openstates/venv-pupa/src/pupa/pupa/cli/commands/update.py", line 260, in handle
return self.do_handle(args, other, juris)

 "/opt/openstates/venv-pupa/src/pupa/pupa/cli/commands/update.py", line 305, in do_handle
report['scrape'] = self.do_scrape(juris, args, scrapers)

 "/opt/openstates/venv-pupa/src/pupa/pupa/cli/commands/update.py", line 173, in do_scrape
report[scraper_name] = scraper.do_scrape(**scrape_args)

 "/opt/openstates/venv-pupa/src/pupa/pupa/scrape/base.py", line 111, in do_scrape
for obj in self.scrape(**kwargs) or []:

 "/opt/openstates/openstates/openstates/wv/bills.py", line 56, in scrape
yield from self.scrape_chamber(chamber, session)

 "/opt/openstates/openstates/openstates/wv/bills.py", line 85, in scrape_chamber
link.attrib['href'])

 "/opt/openstates/openstates/openstates/wv/bills.py", line 203, in scrape_bill
yield from self.scrape_senate_vote(bill, href, date)

 "/opt/openstates/openstates/openstates/wv/bills.py", line 317, in scrape_senate_vote
filename, resp = self.urlretrieve(url)

 "/opt/openstates/venv-pupa/lib/python3.5/site-packages/scrapelib/__init__.py", line 321, in urlretrieve
result = self.request(method, url, data=body, **kwargs)

 "/opt/openstates/venv-pupa/lib/python3.5/site-packages/scrapelib/__init__.py", line 286, in request
**kwargs)

 "/opt/openstates/venv-pupa/lib/python3.5/site-packages/scrapelib/cache.py", line 66, in request
resp = super(CachingSession, self).request(method, url, **kwargs)

 "/opt/openstates/venv-pupa/lib/python3.5/site-packages/scrapelib/__init__.py", line 92, in request
return super(ThrottledSession, self).request(method, url, **kwargs)

 "/opt/openstates/venv-pupa/lib/python3.5/site-packages/scrapelib/__init__.py", line 182, in request
raise exception_raised

 "/opt/openstates/venv-pupa/lib/python3.5/site-packages/scrapelib/__init__.py", line 157, in request
resp = super(RetrySession, self).request(method, url, **kwargs)

 "/opt/openstates/venv-pupa/lib/python3.5/site-packages/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)

 "/opt/openstates/venv-pupa/lib/python3.5/site-packages/requests/sessions.py", line 640, in send
history = [resp for resp in gen] if allow_redirects else []

 "/opt/openstates/venv-pupa/lib/python3.5/site-packages/requests/sessions.py", line 640, in <listcomp>
history = [resp for resp in gen] if allow_redirects else []

 "/opt/openstates/venv-pupa/lib/python3.5/site-packages/requests/sessions.py", line 218, in resolve_redirects
**adapter_kwargs

 "/opt/openstates/venv-pupa/lib/python3.5/site-packages/requests/sessions.py", line 618, in send
r = adapter.send(request, **kwargs)

 "/opt/openstates/venv-pupa/lib/python3.5/site-packages/requests/adapters.py", line 490, in send
raise ConnectionError(err, request=request)requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))