HclX / WyzeHacks

Hacks I discovered allowing Wyze camera owners to do customizations
MIT License
786 stars 75 forks source link

unable to use v3_init, python error. #77

Closed gtxaspec closed 3 years ago

gtxaspec commented 3 years ago

` ...10.xx.xx.x- - [05/Feb/2021 05:50:23] "GET /firmware.bin HTTP/1.1" 200 -

Exception happened during processing of request from ('10.xx.xx.x, 55116) Traceback (most recent call last): File "/usr/lib/python3.7/socketserver.py", line 316, in _handle_request_noblock self.process_request(request, client_address) File "/usr/lib/python3.7/socketserver.py", line 347, in process_request self.finish_request(request, client_address) File "/usr/lib/python3.7/socketserver.py", line 360, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.7/http/server.py", line 646, in init super().init(*args, **kwargs) File "/usr/lib/python3.7/socketserver.py", line 720, in init self.handle() File "/usr/lib/python3.7/http/server.py", line 426, in handle self.handle_one_request() File "/usr/lib/python3.7/http/server.py", line 414, in handle_one_request method() File "./wyze_updater.py", line 188, in do_GET self.wfile.write(firmware_data) File "/usr/lib/python3.7/socketserver.py", line 799, in write self._sock.sendall(b) BrokenPipeError: [Errno 32] Broken pipe

`

using python 3.7

gtxaspec commented 3 years ago

issue went away, yay!

stephen-yeung commented 3 years ago

I am getting exact same error. how did you manage to resolve it?

gtxaspec commented 3 years ago

fix the python environment, probably you have an older version?

stephen-yeung commented 3 years ago

which version did you use? i am using 3.7.0