Traceback (most recent call last):


 "./MyAir.py", line 64, in <module>

print(MyAir.status()) - 


 "/usr/local/lib/python3.5/dist-packages/miio/airpurifier.py", line 215, in status

properties[0:13]


 "/usr/local/lib/python3.5/dist-packages/miio/device.py", line 216, in send

m = Message.build(msg, ctx)
TypeError: build() takes 2 positional arguments but 3 were given

Traceback (most recent call last):


 "D:/tensorflow/pyimages/day2-object-detect/detect.py", line 9, in <module>

detector.loadModel(detection_speed="fast")


 "C:\Users\admin\Anaconda3\lib\site-packages\imageai\Detection\__init__.py", line 121, in loadModel

model = resnet50_retinanet(num_classes=80)


 "C:\Users\admin\Anaconda3\lib\site-packages\imageai\Detection\keras_retinanet\models\resnet.py", line 86, in resnet50_retinanet

return resnet_retinanet(num_classes=num_classes, backbone='resnet50', inputs=inputs, **kwargs)


 "C:\Users\admin\Anaconda3\lib\site-packages\imageai\Detection\keras_retinanet\models\resnet.py", line 80, in resnet_retinanet

model = retinanet.retinanet_bbox(inputs=inputs, num_classes=num_classes, backbone=resnet, **kwargs)


 "C:\Users\admin\Anaconda3\lib\site-packages\imageai\Detection\keras_retinanet\models\retinanet.py", line 347, in retinanet_bbox

model = retinanet(inputs=inputs, num_classes=num_classes, **kwargs)


 "C:\Users\admin\Anaconda3\lib\site-packages\imageai\Detection\keras_retinanet\models\retinanet.py", line 302, in retinanet

submodels = default_submodels(num_classes, anchor_parameters)


 "C:\Users\admin\Anaconda3\lib\site-packages\imageai\Detection\keras_retinanet\models\retinanet.py", line 210, in default_submodels

('regression', default_regression_model(anchor_parameters.num_anchors())),


 "C:\Users\admin\Anaconda3\lib\site-packages\imageai\Detection\keras_retinanet\models\retinanet.py", line 125, in default_regression_model

outputs = keras.layers.Reshape((-1, 4), name='pyramid_regression_reshape')(outputs)


 "C:\Users\admin\Anaconda3\lib\site-packages\keras\engine\topology.py", line 602, in __call__

output = self.call(inputs, **kwargs)


 "C:\Users\admin\Anaconda3\lib\site-packages\keras\layers\core.py", line 391, in call

target_shape = self.compute_output_shape(input_shape)[1:]


 "C:\Users\admin\Anaconda3\lib\site-packages\keras\layers\core.py", line 376, in compute_output_shape

input_shape[1:], self.target_shape)


 "C:\Users\admin\Anaconda3\lib\site-packages\keras\layers\core.py", line 364, in _fix_unknown_dimension

original = np.prod(input_shape, dtype=int)


 "C:\Users\admin\Anaconda3\lib\site-packages\numpy\core\fromnumeric.py", line 2566, in prod

out=out, **kwargs)


 "C:\Users\admin\Anaconda3\lib\site-packages\numpy\core\_methods.py", line 35, in _prod

return umr_prod(a, axis, dtype, out, keepdims)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
