`Traceback (most recent call last):


 "<pyshell#0>", line 1, in <module>

from telethon import TelegramClient


 "C:\Python34\lib\site-packages\telethon\__init__.py", line 3, in <module>

from .interactive_telegram_client import InteractiveTelegramClient


 "C:\Python34\lib\site-packages\telethon\interactive_telegram_client.py", line 10, in <module>

cols, rows = shutil.get_terminal_size()


 "C:\Python34\lib\shutil.py", line 1057, in get_terminal_size

size = os.get_terminal_size(sys.__stdout__.fileno())
AttributeError: 'NoneType' object has no attribute 'fileno'`
Traceback (most recent call last):


 "scan.py", line 139, in <module>

main()


 "scan.py", line 111, in main

torch.save({'model': model.module.state_dict(), 'head': best_loss_head}, p['scan_model'])


 "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 576, in __getattr__

type(self).__name__, name))
AttributeError: 'ClusteringModel' object has no attribute 'module'
