Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

RPIO install error #54

Closed
peter-mason-dpm opened this issue Feb 22, 2015 · 8 comments
Closed

RPIO install error #54

peter-mason-dpm opened this issue Feb 22, 2015 · 8 comments

Comments

@peter-mason-dpm
Copy link

I did this on my RPi2
$ sudo apt-get install python-setuptools
$ sudo easy_install -U RPIO

and got this

pi@raspberrypi ~/RPIO $ sudo easy_install -U RPIO
Searching for RPIO
Reading http://pypi.python.org/simple/RPIO/
Best match: RPIO 0.10.0
Downloading https://pypi.python.org/packages/source/R/RPIO/RPIO-0.10.0.tar.gz#md5=cefc45422833dcafcd59b78dffc540f4
Processing RPIO-0.10.0.tar.gz
Running RPIO-0.10.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-iyUVZN/RPIO-0.10.0/egg-dist-tmp-mlGrcH
source/c_gpio/py_gpio.c:28:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1

I tried this

$ git clone https://github.com/metachris/RPIO.git
$ cd RPIO
$ sudo python setup.py install

with a similar result.
can anyone tell me what I need to do please?

@joan2937
Copy link

It looks like you haven't got the Python development environment.

sudo apt-get install python-dev

and/or

sudo apt-get install python3-dev

@peter-mason-dpm
Copy link
Author

Joan
I started with unix last century but did more hardware than software and finding what I need to do now, then how to do it is a mystery.At the dawn of the epoch with assmbler it was all more obvious.

thank you.
installing python3-dev did the trick and GPIO seems to have installed, BUT python still does not import it. Even the examples do not run.
Traceback (most recent call last):
File "/home/pi/RPIO/examples/example1_interrupts.py", line 5, in
import RPIO
ImportError: No module named RPIO

@joan2937
Copy link

I've just installed for python 2 and 3 and both work. You have to launch Python with sudo to be able to import the module. It does not work on the new model Pi 2.

@peter-mason-dpm
Copy link
Author

I have RPi2. I would like a good pwm module.

I am running python 3 under IDLE

pi@raspberrypi ~/Desktop/igs $ sudo python3 igs_0v30.py
Traceback (most recent call last):
File "igs_0v30.py", line 10, in
import RPIO as g
ImportError: No module named RPIO
pi@raspberrypi ~/Desktop/igs $

@joan2937
Copy link

My pigpio library does PWM (among other things). http://abyz.co.uk/rpi/pigpio/

@peter-mason-dpm
Copy link
Author

The scope looks interesting I will look at that with interest.
Does the RPi2 do C++? {seems like gcc to answer my own question}
Do you have a plan to make an analogue, with adc, version?

@joan2937
Copy link

Yes, all the normal packages are available on the Pi 2. gcc supports C/C++ (and the rest) out of the box.

@cuchiaram
Copy link

Wow closed back in 2015....I must be goofy because this should now be seamless but I've tried all online recommendations to get my Pi 3B with Raspian to recognize RPIO in any way form or fashion. hmmmm

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants