Traceback (most recent call last):


 "/var/opt/homeassistant/havenv/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 279, in async_update_ha_state

await self.async_device_update()


 "/var/opt/homeassistant/havenv/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 474, in async_device_update

await self.async_update()


 "/var/opt/homeassistant/havenv/lib/python3.7/site-packages/homeassistant/components/modbus/sensor.py", line 230, in async_update

self._slave, self._register, self._count


 "/var/opt/homeassistant/havenv/lib/python3.7/site-packages/homeassistant/components/modbus/__init__.py", line 290, in read_holding_registers

unit, address, count, self._client.protocol.read_holding_registers


 "/var/opt/homeassistant/havenv/lib/python3.7/site-packages/homeassistant/components/modbus/__init__.py", line 244, in _read

result = await func(address, count, **kwargs)


 "/var/opt/homeassistant/havenv/lib/python3.7/site-packages/pymodbus/client/common.py", line 114, in read_holding_registers

return self.execute(request)


 "/var/opt/homeassistant/havenv/lib/python3.7/site-packages/pymodbus/client/asynchronous/asyncio/__init__.py", line 129, in execute

self.write_transport(packet)


 "/var/opt/homeassistant/havenv/lib/python3.7/site-packages/pymodbus/client/asynchronous/asyncio/__init__.py", line 119, in write_transport

return self.transport.write(packet)
AttributeError: 'NoneType' object has no attribute 'write'

Original Traceback (most recent call last):


 "/root/anaconda3/envs/mmaction/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop

data = fetcher.fetch(index)


 "/root/anaconda3/envs/mmaction/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch

data = [self.dataset[idx] for idx in possibly_batched_index]


 "/root/anaconda3/envs/mmaction/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>

data = [self.dataset[idx] for idx in possibly_batched_index]


 "/ssd8/liuchao45/mmaction/mmaction/datasets/video_dataset.py", line 344, in __getitem__

is_flow=True if modality == 'Flow' else False)


 "/ssd8/liuchao45/mmaction/mmaction/datasets/transforms.py", line 430, in __call__

img, scale, return_scale=True) for img in img_group]


 "/ssd8/liuchao45/mmaction/mmaction/datasets/transforms.py", line 430, in <listcomp>

img, scale, return_scale=True) for img in img_group]


 "/ssd8/liuchao45/mmaction/mmcv/mmcv/image/geometric.py", line 175, in imrescale

h, w = img.shape[:2]
AttributeError: 'NoneType' object has no attribute 'shape'
