Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

raspberry pi email notofier using leds - ERROR MESSAGE
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

raspberry pi email notofier using leds - ERROR MESSAGE

by ryandsouza on Sun Jan 24, 2016 10:20 pm

I am trying the Raspberry Pi E-mail Notifier Using LEDs
Created by Mikey Sklar

and getting an error when running sudo ./checkmail.py

File "./checkmail.py", line 19
server = IMAPClient(HOSTNAME, use_uid=True, ssl=True)

IndentationError: expected an indented block

PLEASE ADVISE?

ryandsouza
 
Posts: 4
Joined: Tue Jan 19, 2016 9:46 pm

Re: raspberry pi email notofier using leds - ERROR MESSAGE

by adafruit_support_rick on Thu Jan 28, 2016 12:52 pm

You have an indentation error. python expects code to be indented with tabs (not spaces!) to determine the nesting structure of the code. Recopy the code from the tutorial

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Please be positive and constructive with your questions and comments.