Installing RPi.GPIO on Volumio 1.55

I’ve been trying to get rpi gpio working on the latest version of volumio. I’ve had no luck downloading the taz.gz file directly and running the setup script contained in it. It appears to try to compile something but the compiler is not installed. I can get the installer for v0.1.0 of the rpi gpio to install but it doesn’t contain most of the necessary calls. I’ve also tried everything in these 2 threads

gpio-pins-control-volume-t2219.html
rpi-volumio-gpio-for-python-t1491.html

but they both seem to only work for the older versions of volumio

Is there a solution for accessing the gpio pins in the most recent version or is there a place to download 1.4?

Thanks

Hi,

Did you update the code to the latets version of python-rpi.gpio?

wget http://sourceforge.net/projects/raspberry-gpio-python/files/raspbian-wheezy/python-rpi.gpio_0.5.11-1_armhf.deb

and of course

sudo dpkg -i python-rpi.gpio_0.5.11-1_armhf.deb

Kind regards

Harry

[code]login as: pi
pi@volumio’s password:
Linux volumio 3.18.5-v7+ #748 SMP PREEMPT Wed Feb 4 21:33:52 GMT 2015 armv7l
___
/_ \ __
__ __ //\ \ __ __ ___ ___ /_\ ___
/\ /\ \ / __\\ \ \ /\ \/\ \ /' __ __\/\ \ / __
\ \ _/ |/\ \L\ \
\ _\ \ _\ /\ /\ /\ \ \ /\ \L\
\ _
/ \ _//_\ _/\ _\ _\ _\ _\ _/
// // // // /////////___/

         Free Audiophile Linux Music Player - Version 1.55

             C 2013 Michelangelo Guarise - Volumio.org

Volumio Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Oct 15 16:27:16 2015
pi@volumio:~$ wget --no-check-certificate http://sourceforge.net/projects/raspbe rry-gpio-python/files/raspbian-wheezy/python-rpi.gpio_0.5.11-1_armhf.deb
–2015-10-15 16:28:27-- http://sourceforge.net/projects/raspberry-gpio-python/f iles/raspbian-wheezy/python-rpi.gpio_0.5.11-1_armhf.deb
Resolving sourceforge.net (sourceforge.net)… 216.34.181.60
Connecting to sourceforge.net (sourceforge.net)|216.34.181.60|:80… connected.
HTTP request sent, awaiting response… 301 Moved Permanently
Location: http://sourceforge.net/projects/raspberry-gpio-python/files/raspbian-w heezy/python-rpi.gpio_0.5.11-1_armhf.deb/ [following]
–2015-10-15 16:28:28-- http://sourceforge.net/projects/raspberry-gpio-python/f iles/raspbian-wheezy/python-rpi.gpio_0.5.11-1_armhf.deb/
Reusing existing connection to sourceforge.net:80.
HTTP request sent, awaiting response… 302 Found
Location: http://sourceforge.net/projects/raspberry-gpio-python/files/raspbian-w heezy/python-rpi.gpio_0.5.11-1_armhf.deb/download [following]
–2015-10-15 16:28:28-- http://sourceforge.net/projects/raspberry-gpio-python/f iles/raspbian-wheezy/python-rpi.gpio_0.5.11-1_armhf.deb/download
Reusing existing connection to sourceforge.net:80.
HTTP request sent, awaiting response… 302 Found
Location: http://downloads.sourceforge.net/project/raspberry-gpio-python/raspbia n-wheezy/python-rpi.gpio_0.5.11-1_armhf.deb?r=&ts=1444922908&use_mirror=skylines ervers [following]
–2015-10-15 16:28:28-- http://downloads.sourceforge.net/project/raspberry-gpio -python/raspbian-wheezy/python-rpi.gpio_0.5.11-1_armhf.deb?r=&ts=1444922908&use_ mirror=skylineservers
Resolving downloads.sourceforge.net (downloads.sourceforge.net)… 216.34.181.59
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.5 9|:80… connected.
HTTP request sent, awaiting response… 302 Moved Temporarily
Location: http://172.17.11.37:15871/cgi-bin/blockpage.cgi?ws-session=2283730396 [following]
–2015-10-15 16:28:28-- http://172.17.11.37:15871/cgi-bin/blockpage.cgi?ws-sess ion=2283730396
Connecting to 172.17.11.37:15871… connected.
HTTP request sent, awaiting response… 200 OK
Length: 1944 (1.9K) [text/html]
Saving to: `python-rpi.gpio_0.5.11-1_armhf.deb’

100%[======================================>] 1,944 --.-K/s in 0s

2015-10-15 16:28:28 (40.4 MB/s) - `python-rpi.gpio_0.5.11-1_armhf.deb’ saved [19 44/1944]

pi@volumio:~$ sudo dpkg -i python-rpi.gpio_0.5.11-1_armhf.deb
dpkg-deb: error: `python-rpi.gpio_0.5.11-1_armhf.deb’ is not a debian format arc hive
dpkg: error processing python-rpi.gpio_0.5.11-1_armhf.deb (–install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
python-rpi.gpio_0.5.11-1_armhf.deb
[/code]
It’s not already installed so I don’t understand why it would fail there.

https://blog.adafruit.com/2015/02/05/how-to-fix-error-loading-rpi-gpio-python-library-on-your-brand-new-raspberry-pi-2/

sudo apt-get update sudo apt-get install build-essential python-dev python-pip mercurial cd ~ hg clone http://hg.code.sf.net/p/raspberry-gpio-python/code raspberry-gpio-python-code cd raspberry-gpio-python-code sudo python setup.py install
pick the default for all the prompts

this appears to have done the trick. I don’t have a multimeter to check the pin outs but it looks like its working. Will update later.