Code: Select all
sudo apt-get install python-devCode: Select all
sudo python setup.py installCode: Select all
sudo apt-get install python3-devCode: Select all
gunzip RPi.GPIO-0.3.1a.tar.gz Code: Select all
tar -xvf RPi.GPIO-0.3.1a.tarCode: Select all
cd RPi.GPIO-0.3.1aCode: Select all
sudo python3 setup.py installCode: Select all
import RPi.GPIO as gpioCode: Select all
import RPi.GPIO as gpioCode: Select all
tar -zxvf RPi.GPIO-0.3.1a.tar.gzCode: Select all
wget http://raspberry-gpio-python.googlecode.com/files/python-rpi.gpio_0.3.1a-1_armhf.debCode: Select all
sudo dpkg -i python-rpi.gpio_0.3.1a-1_armhf.debIf you get that error message then you are using an old version (0.2.0). I suggest you download and install version 0.3.1a as described above Also note that the error message is because you are not running as root.Jochen wrote:I've installed GPIO and all that, but every time I run a program the error message
IOError: [Errno13] Permissiuon denied: '/sys/class/gpio/export'
I've built this lovely buffered input/output card but I have yet to get a single line working.
Jochen
I must admit that I have no idea whether I am running as root or not - I don't even know what that means. I'm used to systems where you can run your programs from anywhere.croston wrote:If you get that error message then you are using an old version (0.2.0). I suggest you download and install version 0.3.1a as described above Also note that the error message is because you are not running as root.Jochen wrote:I've installed GPIO and all that, but every time I run a program the error message
IOError: [Errno13] Permissiuon denied: '/sys/class/gpio/export'
I've built this lovely buffered input/output card but I have yet to get a single line working.
Jochen
When you booted up your Raspberry Pi and were asked for a user name, if you entered the default "Pi" name then you are running as the user "Pi". You would have had to log in as user "root" to be running as root. Root is the equivalent of "Administrator" on many other modern operating systems.Jochen wrote:I must admit that I have no idea whether I am running as root or not - I don't even know what that means. I'm used to systems where you can run your programs from anywhere.croston wrote:If you get that error message then you are using an old version (0.2.0). I suggest you download and install version 0.3.1a as described above Also note that the error message is because you are not running as root.Jochen wrote:I've installed GPIO and all that, but every time I run a program the error message
IOError: [Errno13] Permissiuon denied: '/sys/class/gpio/export'
I've built this lovely buffered input/output card but I have yet to get a single line working.
Jochen
Thanks for the help. I think I shall have to wait until RiscOS becomes more developed.
Jochen
Code: Select all
No module named RPi.GPIOCode: Select all
sudo python mybutton.pyCode: Select all
sudo python3 mybutton.pyCode: Select all
GPIO.setmode(GPIO.BOARD)Code: Select all
pi@raspberrypi ~ $ gunzip
-bash: $'\302\240gunzip': command not foundCode: Select all
pi@raspberrypi ~ $ gunzip
gzip: compressed data not read from a terminal. Use -f to force decompression.
For help, type: gzip -hCode: Select all
while not self.asleep():
sheep += 1