Traceback (most recent call last):


 "translate.py", line 36, in <module>

main(opt)


 "translate.py", line 24, in main

attn_debug=opt.attn_debug)


 "/data6/OpenNMT-py/onmt/translate/translator.py", line 210, in translate

batch_data = self.translate_batch(batch, data)


 "/data6/OpenNMT-py/onmt/translate/translator.py", line 302, in translate_batch

return self._translate_batch(batch, data)


 "/data6/OpenNMT-py/onmt/translate/translator.py", line 385, in _translate_batch

step=i)


 "/usr/anaconda3/lib/python3.6/site-packages/torch/nn/modules/module.py", line 491, in __call__

result = self.forward(*input, **kwargs)
TypeError: forward() got an unexpected keyword argument 'step'

Traceback (most recent call last):


 "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main

status = self.run(options, args)


 "/usr/lib/python3/dist-packages/pip/commands/install.py", line 353, in run

wb.build(autobuilding=True)


 "/usr/lib/python3/dist-packages/pip/wheel.py", line 749, in build

self.requirement_set.prepare_files(self.finder)


 "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 380, in prepare_files

ignore_dependencies=self.ignore_dependencies))


 "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 620, in _prepare_file

session=self.session, hashes=hashes)


 "/usr/lib/python3/dist-packages/pip/download.py", line 821, in unpack_url

hashes=hashes


 "/usr/lib/python3/dist-packages/pip/download.py", line 659, in unpack_http_url

hashes)


 "/usr/lib/python3/dist-packages/pip/download.py", line 853, in _download_http_url

stream=True,


 "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 501, in get

return self.request('GET', url, **kwargs)


 "/usr/lib/python3/dist-packages/pip/download.py", line 386, in request

return super(PipSession, self).request(method, url, *args, **kwargs)


 "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 488, in request

resp = self.send(prep, **send_kwargs)


 "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 609, in send

r = adapter.send(request, **kwargs)


 "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 47, in send

resp = super(CacheControlAdapter, self).send(request, **kw)


 "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py", line 423, in send

timeout=timeout


 "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 702, in urlopen

retries = retries.increment(method, url, response=response, _pool=self)


 "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 315, in increment

total -= 1
TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'