Traceback (most recent call last):


 "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1002, in _event_to_service_call

await service_handler.func(service_call)


 "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/__init__.py", line 403, in async_service_handler

yield from getattr(player, method['method'])(**params)


 "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run

result = self.fn(*self.args, **self.kwargs)


 "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/samsungtv.py", line 253, in turn_on

self._wol.send_magic_packet(self._mac)
AttributeError: module 'wakeonlan' has no attribute 'send_magic_packet'

Traceback (most recent call last):


 "D:\02.Work\Project\x-prj\03.code\01.EDSR\EDSR-PyTorch-master\EDSR-PyTorch-master\code\main.py", line 13, in <module>

t = Trainer(my_loader, checkpoint, args)


 "D:\02.Work\Project\x-prj\03.code\01.EDSR\EDSR-PyTorch-master\EDSR-PyTorch-master\code\trainer.py", line 15, in __init__

self.model, self.loss, self.optimizer, self.scheduler = ckp.load()


 "D:\02.Work\Project\x-prj\03.code\01.EDSR\EDSR-PyTorch-master\EDSR-PyTorch-master\code\utility.py", line 80, in load

my_model = model().get_model(self.args)


 "D:\02.Work\Project\x-prj\03.code\01.EDSR\EDSR-PyTorch-master\EDSR-PyTorch-master\code\model\__init__.py", line 17, in get_model

my_model.load_state_dict(torch.load(args.pre_train))


 "D:\06.ProgramData\Anaconda3\lib\site-packages\torch\serialization.py", line 267, in load

return _load(f, map_location, pickle_module)


 "D:\06.ProgramData\Anaconda3\lib\site-packages\torch\serialization.py", line 420, in _load

result = unpickler.load()


 "D:\06.ProgramData\Anaconda3\lib\site-packages\torch\serialization.py", line 389, in persistent_load

data_type(size), location)


 "D:\06.ProgramData\Anaconda3\lib\site-packages\torch\serialization.py", line 87, in default_restore_location

result = fn(storage, location)


 "D:\06.ProgramData\Anaconda3\lib\site-packages\torch\serialization.py", line 69, in _cuda_deserialize

return obj.cuda(device)


 "D:\06.ProgramData\Anaconda3\lib\site-packages\torch\_utils.py", line 61, in _cuda

with torch.cuda.device(device):


 "D:\06.ProgramData\Anaconda3\lib\site-packages\torch\cuda\__init__.py", line 226, in __enter__

self.prev_idx = torch._C._cuda_getDevice()
AttributeError: module 'torch._C' has no attribute '_cuda_getDevice'
