I am working on a project on a Raspberry Pi where I need to create a security camera system. I have 3 python files for this project one for live streaming, another one for motion detection and finally the last for activating the motion detection file from an android application. I am trying to make the live stream and motion detection file use the same camera. In the live stream file(live.py) I have imported a socketserver module to make the live stream, which works well when run. However, when I am trying to import the live.py file into the motion detection file(motion.py), I am getting an Import Error. The error is shown below:
Traceback (most recent call last):
File "motion.py", line 10, in <module>
import live.py
File "/home/pi/codes/live.py", line 7, in <module>
import socketserver
ImportError:No module named socketserver
I am very confused, I don't know what this error is. Any help would be very appreciated. Thank you.