I have a strange raspberry pi issue. When I run a python code manually it works perfect but when I run it during startup it gives this error
no module named socket server. This is the code given below and I have python 3
# Web streaming example # Source code from the official PiCamera package # http://picamera.readthedocs.io/en/latest/recipes2.html#web-streaming import io import picamera import logging import socketserver from threading import Condition from http import server
I had to put the file in boot order sequence so I did this
sudo nano /home/pi/.bashrc
And then I added this code at the bottom to run on startup
sudo python /home/pi/mypyscript.py
Where is the mistake? Does socketserver loads at the end. I am using Raspberry Pi zero to control a raspberry Pi camera.