https://pythonhosted.org/RPIO/#installation seems outdated
gitawayu opened this issue · 0 comments
Hi Chris,
I tried to install RPIO using the instructions on https://pythonhosted.org/RPIO/#installation but:-
pi@host:~/.local/bin $ sudo apt-get install python-setuptools
[this bit worked!]
pi@host:~/.local/bin $ sudo easy_install -U RPIO
sudo: easy_install: command not found
and
pi@host:~/tmp $ git clone https://github.com/metachris/RPIO.git
Cloning into 'RPIO'...
remote: Enumerating objects: 2139, done.
remote: Total 2139 (delta 0), reused 0 (delta 0), pack-reused 2139
Receiving objects: 100% (2139/2139), 1.92 MiB | 398.00 KiB/s, done.
Resolving deltas: 100% (1264/1264), done.
pi@host:~/tmp $ cd RPIO/
pi@host:~/tmp/RPIO $ sudo python setup.py install
running install
running bdist_egg
running egg_info
creating source/RPIO.egg-info
writing source/RPIO.egg-info/PKG-INFO
writing top-level names to source/RPIO.egg-info/top_level.txt
writing dependency_links to source/RPIO.egg-info/dependency_links.txt
writing manifest file 'source/RPIO.egg-info/SOURCES.txt'
reading manifest file 'source/RPIO.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'source/RPIO.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv6l/egg
running install_lib
running build_py
creating build
creating build/lib.linux-armv6l-2.7
creating build/lib.linux-armv6l-2.7/RPIO
copying source/RPIO/Exceptions.py -> build/lib.linux-armv6l-2.7/RPIO
copying source/RPIO/_RPIO.py -> build/lib.linux-armv6l-2.7/RPIO
copying source/RPIO/init.py -> build/lib.linux-armv6l-2.7/RPIO
creating build/lib.linux-armv6l-2.7/RPIO/PWM
copying source/RPIO/PWM/init.py -> build/lib.linux-armv6l-2.7/RPIO/PWM
running build_ext
building 'RPIO._GPIO' extension
creating build/temp.linux-armv6l-2.7
creating build/temp.linux-armv6l-2.7/source
creating build/temp.linux-armv6l-2.7/source/c_gpio
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-InigCj/python2.7-2.7.16=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c source/c_gpio/py_gpio.c -o build/temp.linux-armv6l-2.7/source/c_gpio/py_gpio.o -Wno-error=declaration-after-statement
source/c_gpio/py_gpio.c:28:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
Ideally I would like to install with python3, but I couldn't even get the instructions on that page to work...
I would also prefer to install without having to build anything, ideally with apt-get (which knows about dependencies and is cleaner for upgrading and uninstallation).
Any help appreciated!
Thanks!
Tim.