Go to advanced search

by samuelklit
Fri Jul 25, 2014 6:23 pm
Forum: Python
Topic: Python error
Replies: 7
Views: 1487

Re: Python error

The error is

Code: Select all

pi@raspberrypi ~ $ sudo python Lystimeblink.py
  File "Lystimeblink.py", line 21
    elif (timeh == 1 and timem == 00):
                                     ^
IndentationError: unindent does not match any outer indentation level
by samuelklit
Fri Jul 25, 2014 6:04 pm
Forum: Python
Topic: Python error
Replies: 7
Views: 1487

Python error

Hi, iam pretty new to python and i wrote this code: #!/usr/bin/python # -*- coding: utf-8-*- import RPi.GPIO as GPIO import datetime import time GPIO.setwarnings(False) #Blink def blink(): GPIO.output(4, GPIO.HIGH) time.sleep(10) GPIO.output(4, GPIO.LOW) time.sleep(1) return GPIO.setmode(GPIO.BCM) G...
by samuelklit
Fri Jul 25, 2014 4:17 pm
Forum: Troubleshooting
Topic: RPI.GPIO import error
Replies: 21
Views: 5407

Re: RPI.GPIO import error

Update:

I reinstalled raspian and gues what it WORKS!! :P :D :o
by samuelklit
Fri Jul 25, 2014 12:17 pm
Forum: Troubleshooting
Topic: RPI.GPIO import error
Replies: 21
Views: 5407

Re: RPI.GPIO import error

Still dont work :|
Iam currently trying to install raspian again
by samuelklit
Fri Jul 25, 2014 11:05 am
Forum: Troubleshooting
Topic: RPI.GPIO import error
Replies: 21
Views: 5407

Re: RPI.GPIO import error

Same thing again:( Here's the log: pi@raspberrypi ~ $ sudo -i root@raspberrypi:~# cd /tmp root@raspberrypi:/tmp# wget http://mirrordirector.raspbian.org/raspbian/pool/main/p/python-pip/python3-pip_1.1-3_all.deb --2014-07-25 11:03:50-- http://mirrordirector.raspbian.org/raspbian/pool/main/p/python-pi...
by samuelklit
Fri Jul 25, 2014 10:41 am
Forum: Troubleshooting
Topic: RPI.GPIO import error
Replies: 21
Views: 5407

Re: RPI.GPIO import error

Okay here is what happens when i try "apt-get install python3-pip" Reading package lists... Done Building dependency tree Reading state information... Done python3-pip is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Here what happens when i try "apt-get ...
by samuelklit
Fri Jul 25, 2014 10:24 am
Forum: Troubleshooting
Topic: RPI.GPIO import error
Replies: 21
Views: 5407

Re: RPI.GPIO import error

Then i tried "pip3 install RPi.GPIO" i sayed:
-bash: pip3: command not found

:(
by samuelklit
Fri Jul 25, 2014 10:07 am
Forum: Troubleshooting
Topic: RPI.GPIO import error
Replies: 21
Views: 5407

Re: RPI.GPIO import error

It doesnt work:(
Do i need to restart maybe?
by samuelklit
Fri Jul 25, 2014 10:01 am
Forum: Troubleshooting
Topic: RPI.GPIO import error
Replies: 21
Views: 5407

Re: RPI.GPIO import error

It says: Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-========================...
by samuelklit
Fri Jul 25, 2014 9:44 am
Forum: Troubleshooting
Topic: RPI.GPIO import error
Replies: 21
Views: 5407

Re: RPI.GPIO import error

Same error :(
But thanks for fast answer :D
by samuelklit
Fri Jul 25, 2014 9:36 am
Forum: Troubleshooting
Topic: RPI.GPIO import error
Replies: 21
Views: 5407

Re: RPI.GPIO import error

DougieLawson i use python3.
The first line of code worked "sudo apt-get install python3-pip". :)
But when i was trying the secund line it sayed "pip3: command not found" :(
by samuelklit
Fri Jul 25, 2014 7:23 am
Forum: Troubleshooting
Topic: RPI.GPIO import error
Replies: 21
Views: 5407

Re: RPI.GPIO import error

Yeah i know but still dont Work
by samuelklit
Thu Jul 24, 2014 7:17 pm
Forum: Troubleshooting
Topic: RPI.GPIO import error
Replies: 21
Views: 5407

RPI.GPIO import error

Hi, I have just got a raspberry pi 4 days ago. There have been lot’s of erorrs with it but now I fixed all….. ALMOST, There is one problem and I can’t figure it out! The problem is that I can’t use the GPIO pins, Then I try to run my script it says that it can't find a module named RPI.GPIO By the w...

Go to advanced search