Hey there just got a raspberry pi this week and I've spend a couple of nights frustrated trying to get a project going I started with the email notifier and I could not get it to work. So I found this project in this same forum
http://www.raspberrypi.org/phpBB3/viewt ... 63&t=45931 and same thing couldn't get it to work. I'm using a cobbler and I think that it's not reading the GPIO import from the code, but I did install all the libraries I mean I don't know if I did it wrong so here it goes this is what I did.
I first created a folder using ssh.
Then I used nano to write down the code and saved it
This is the code that I got from the guy who did it already
Code: Select all
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(25, GPIO.OUT)
GPIO.output(25, GPIO.HIGH)
time.sleep(5)
Print "code started..."
And then I made the file executable with
I then activated the scrip with
Now I'm getting and error...
Code: Select all
./light.py: 3: ./light.py: import: not found
./light.py: 4: ./light.py: import: not found
./light.py: ./light.py: syntax error: word unexpected (expecting ")")
I wanted to take a screen shot but I'm using an iPad and the size is too big for the forum... Please any help would be great I'm stuck and want to figure this out. Thanks!