Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error in Raspberry pi zero w #51

Open
s-a-tanjim opened this issue Aug 15, 2020 · 0 comments
Open

Getting error in Raspberry pi zero w #51

s-a-tanjim opened this issue Aug 15, 2020 · 0 comments

Comments

@s-a-tanjim
Copy link

When i run the command i get this error:
$ python3 server.py
Initializing camera
Initializing websockets server on port 8084
Initializing HTTP server on port 8000
Initializing broadcast thread
Spawning background conversion process
Starting recording
Starting websockets thread
Starting HTTP server thread
Starting broadcast thread
Waiting for background conversion process to exit
Stopping recording
Traceback (most recent call last):
File "server.py", line 184, in
main()
File "server.py", line 170, in main
camera.stop_recording()
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 1196, in stop_recording
self.wait_recording(0, splitter_port)
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 1167, in wait_recording
encoder.wait(timeout)
File "/usr/lib/python3/dist-packages/picamera/encoders.py", line 398, in wait
raise self.exception
File "server.py", line 165, in main
camera.wait_recording(1)
File "/usr/lib/python3/dist-packages/picamera/camera.py", line 1167, in wait_recording
encoder.wait(timeout)
File "/usr/lib/python3/dist-packages/picamera/encoders.py", line 398, in wait
raise self.exception
File "/usr/lib/python3/dist-packages/picamera/encoders.py", line 267, in _callback
stop = self._callback_write(buf)
File "/usr/lib/python3/dist-packages/picamera/encoders.py", line 580, in _callback_write
return super(PiRawMixin, self)._callback_write(buf, key)
File "/usr/lib/python3/dist-packages/picamera/encoders.py", line 921, in _callback_write
return super(PiVideoEncoder, self)._callback_write(buf, key)
File "/usr/lib/python3/dist-packages/picamera/encoders.py", line 298, in _callback_write
written = output.write(buf.data)
File "server.py", line 106, in write
self.converter.stdin.write(b)
BrokenPipeError: [Errno 32] Broken pipe

I used this code in Raspberry Pi 3B+, and it worked well. But in pi zero w, i'm getting error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant