HackerShackOfficial / Smart-Security-Camera

IoT security camera running open-cv for object detection 📹
559 stars 278 forks source link

no module named error #3

Open CluelessCoderNYC opened 6 years ago

CluelessCoderNYC commented 6 years ago

ok so to start im a beginner and this is my first raspberry pi project, anyways when i try to run the script im getting this error. can anyone help

(cv) pi@raspberrypi:~/Smart-Security-Camera $ python main.py Traceback (most recent call last): File "main.py", line 3, in from mail import sendEmail File "/home/pi/Smart-Security-Camera/mail.py", line 2, in from email.MIMEMultipart import MIMEMultipart ImportError: No module named 'email.MIMEMultipart'

thomfort commented 6 years ago

Yep, I got the same error, you need to change for this:

from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.image import MIMEImage

atainter commented 6 years ago

Are you running python 3?

thomfort commented 6 years ago

yep

atainter commented 6 years ago

Will add it to the README

thomfort commented 6 years ago

They have other errors, if you run python 3, you need to change all print method with quotation marks for parentheses.

print "" => print()

CluelessCoderNYC commented 6 years ago

Yeah thomfort I had the same errors there too I had to go in and add parentheses. Again I'm a total beginner but for as good of production quality of the YouTube video was for this project I didn't expect there to be so many issues please if you guys figure out how to fix this let me know

Kowus commented 6 years ago

I'm getting a similar error but for cv. running pyhton3

Traceback (most recent call last): File "main.py", line 1, in import cv2 ImportError: No module named 'cv2'

rarenu commented 6 years ago

Dear Mr. Attainter, I am also having same error, please advice. (cv) pi@raspberrypi:~/Smart-Security-Camera $ python3 main.py Traceback (most recent call last): File "main.py", line 3, in from mail import sendEmail File "/home/pi/Smart-Security-Camera/mail.py", line 2, in import MIMEMultipart ImportError: No module named 'MIMEMultipart'

kazkaif commented 6 years ago

kowus same problem here

ambergl2014 commented 6 years ago

main.py says cv2 file missing

tumpa commented 6 years ago

I am having an error compiling with python 2.7 ImportError : No module named imutils.video.pivideostream in camera.py

purvaavrup commented 6 years ago

from camera import VideoCamera ImportError : No module named 'Camera'

I am getting this error while running camera.py in python3

MagnetoFlash commented 6 years ago

I'm getting an error here: File "main.py", line 44 if name == 'main': ^ error at symbol ":" SyntaxError: invalid syntax Can you give me an advice?