Traceback (most recent call last):


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

main(opt)


 "translate.py", line 20, in main

translator = make_translator(opt, report_score=True)


 "/home/sam/Documents/NLP/OpenNMT-py/onmt/translate/Translator.py", line 28, in make_translator

onmt.ModelConstructor.load_test_model(opt, dummy_opt.__dict__)


 "/home/sam/Documents/NLP/OpenNMT-py/onmt/ModelConstructor.py", line 118, in load_test_model

checkpoint = torch.load(opt.model,
AttributeError: 'Namespace' object has no attribute 'model'

Traceback (most recent call last):


 "/usr/lib/python3.6/site-packages/aiohttp/helpers.py", line 500, in log

for key, value in fmt_info:


 "/usr/lib/python3.6/site-packages/aiohttp/helpers.py", line 483, in <genexpr>

return ((key, method(args)) for key, method in self._methods)


 "/usr/lib/python3.6/site-packages/aiohttp/helpers.py", line 436, in _format_a

peername = args[3].get_extra_info('peername')


 "/usr/lib/python3.6/asyncio/sslproto.py", line 306, in get_extra_info

return self._ssl_protocol._get_extra_info(name, default)


 "/usr/lib/python3.6/asyncio/sslproto.py", line 547, in _get_extra_info

return self._transport.get_extra_info(name, default)
AttributeError: 'NoneType' object has no attribute 'get_extra_info'
