Traceback (most recent call last):


 "a.py", line 20, in <module>

balance = int(mtn.functions.balanceOf(Web3.toChecksumAddress(MTN1_PUB_KEY)).call())


 "/usr/local/lib/python3.6/site-packages/web3/contract.py", line 1108, in call

block_id = parse_block_identifier(self.web3, block_identifier)


 "/usr/local/lib/python3.6/site-packages/web3/contract.py", line 1414, in parse_block_identifier

last_block = web3.eth.getBlock('latest').number
AttributeError: 'dict' object has no attribute 'number'

`Traceback (most recent call last):


 "detect.py", line 181, in <module>

detect()


 "detect.py", line 49, in detect

dataset = LoadStreams(source, img_size=imgsz)


 "/mnt1/yolo3/utils/datasets.py", line 286, in __init__

s = np.stack([letterbox(x, new_shape=self.img_size)[0].shape for x in self.imgs], 0)
# inference shapes


 "/mnt1/yolo3/utils/datasets.py", line 286, in <listcomp>

s = np.stack([letterbox(x, new_shape=self.img_size)[0].shape for x in self.imgs], 0)
# inference shapes


 "/mnt1/yolo3/utils/datasets.py", line 696, in letterbox

shape = img.shape[:2]
# current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'`
