User avatar
JonnyAlpha
Raspberry Pi Certified Educator
Raspberry Pi Certified Educator
Posts: 572
Joined: Sat Nov 02, 2013 2:06 pm

Cannot Install Python RPIO

Sun Jan 03, 2016 5:19 pm

Hi;

I have bought an Adafruit Pan and Tilt and am trying to control it using the info on the Dawn Robotics site here:

http://blog.dawnrobotics.co.uk/2013/10/ ... mment-1101

The script that is linked from this page is here:

https://github.com/DawnRobotics/pi_pan_ ... control.py

It uses the RPIO Python library however I cannot seem to install it, I have tried using the instructions on the DAGU page using PIP as well as the easy_install option from the RPIO page here:

http://pythonhosted.org/RPIO/

When trying to install RPIO as instructed above using sudo pip install RPIO I get an error:

compilation terminated
error: command ‘arm-linux-gnueabihf -gcc’ failed with exit status 1

I also get a similar error when using easy_install, sudo apt-get install RPIO also fails?

Any ideas
Raspberry Pi Certified Educator. Main Hardware - Raspberry Pi 1 model B revision 2, Raspberry Pi 2 model B, Pi Camera

User avatar
joan
Posts: 14959
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Cannot Install Python RPIO

Sun Jan 03, 2016 5:30 pm

It should work unless you are using a Pi2.

User avatar
jojopi
Posts: 3274
Joined: Tue Oct 11, 2011 8:38 pm

Re: Cannot Install Python RPIO

Sun Jan 03, 2016 5:44 pm

JonnyAlpha wrote:compilation terminated
error: command ‘arm-linux-gnueabihf -gcc’ failed with exit status 1
The actual error message will be above those lines.

As a guess, if the error is "Python.h: No such file or directory", then the solution is "sudo apt-get install python-dev python3-dev".

User avatar
JonnyAlpha
Raspberry Pi Certified Educator
Raspberry Pi Certified Educator
Posts: 572
Joined: Sat Nov 02, 2013 2:06 pm

Re: Cannot Install Python RPIO

Sun Jan 03, 2016 6:51 pm

joan wrote:It should work unless you are using a Pi2.
Ah yes this was on an RPi 2.
Raspberry Pi Certified Educator. Main Hardware - Raspberry Pi 1 model B revision 2, Raspberry Pi 2 model B, Pi Camera

User avatar
JonnyAlpha
Raspberry Pi Certified Educator
Raspberry Pi Certified Educator
Posts: 572
Joined: Sat Nov 02, 2013 2:06 pm

Re: Cannot Install Python RPIO

Sun Jan 03, 2016 6:52 pm

jojopi wrote:
JonnyAlpha wrote:compilation terminated
error: command ‘arm-linux-gnueabihf -gcc’ failed with exit status 1
The actual error message will be above those lines.

As a guess, if the error is "Python.h: No such file or directory", then the solution is "sudo apt-get install python-dev python3-dev".
Yes I seem to recall the last error message state Python.h No such file or directory :-)
Raspberry Pi Certified Educator. Main Hardware - Raspberry Pi 1 model B revision 2, Raspberry Pi 2 model B, Pi Camera

User avatar
JonnyAlpha
Raspberry Pi Certified Educator
Raspberry Pi Certified Educator
Posts: 572
Joined: Sat Nov 02, 2013 2:06 pm

Re: Cannot Install Python RPIO

Sun Jan 03, 2016 7:08 pm

Just found this:

viewtopic.php?f=28&t=101209

Looks like i'll have to redo the code :-(
Raspberry Pi Certified Educator. Main Hardware - Raspberry Pi 1 model B revision 2, Raspberry Pi 2 model B, Pi Camera

Return to “Python”