Traceback (most recent call last):


 "Example48.py", line 41, in <module>

camera.add_overlay(memoryview(box), size=(160, 90), layer=3, alpha=64)


 "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 892, in add_overlay

renderer = PiOverlayRenderer(self, source, size, format, **options)


 "/usr/lib/python2.7/dist-packages/picamera/renderers.py", line 413, in __init__

source_len = mo.buffer_bytes(source)


 "/usr/lib/python2.7/dist-packages/picamera/mmalobj.py", line 466, in buffer_bytes

return m.itemsize * reduce(mul, m.shape)
UnboundLocalError: local variable 'm' referenced before assignment

Traceback (most recent call last):


 "site-packages\requests\adapters.py", line 449, in send


 "site-packages\urllib3\connectionpool.py", line 725, in urlopen


 "site-packages\urllib3\util\retry.py", line 439, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='d1--cn-gotcha04.bilivideo.com', port=443): Max retries exceeded with url: /live-bvc/255115/live_18149131_9762681.flv?cdn=cn-gotcha04&expires=1613231817&len=0&oi=3083214136&pt=web&qn=10000&trid=adfa1fc7d83a4f849949bcfd52b8ca49&sigparams=cdn,expires,len,oi,pt,qn,trid&sign=595a147a0bd21923e90083d8ba7e0397&ptype=0&src=9&sl=4&order=1 (Caused by ProxyError('Cannot connect to proxy.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None)))
