Andre_Leonardo
Posts: 59
Joined: Wed Nov 12, 2014 1:47 am

RPIO library issues

Mon Mar 30, 2015 12:07 pm

I tried to use the RPIO library for servo controlling using given examples.
http://pythonhosted.org/RPIO/index.html
When I execute the code I get a error

SystemError: This module can only be run on a Raspberry Pi!

What is the reason for this kind of error. I'm using the raspberry pi 2 with raspbian installed. :?:

User avatar
DougieLawson
Posts: 38882
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RPIO library issues

Mon Mar 30, 2015 12:29 pm

You need to scrub all old versions of RPi.GPIO from your system and install the latest version.

sudo apt-get purge python{,3}-rpi.gpio
find /usr -name "*GPIO*" | xargs sudo rm -rf
sudo apt-get install python{,3}-rpi.gpio

It's a bit of a sledgehammer approach but should get 0.5.11 as the only version anywhere in your Python paths.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

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

Re: RPIO library issues

Mon Mar 30, 2015 12:32 pm

DougieLawson wrote:You need to scrub all old versions of RPi.GPIO from your system and install the latest version.
...
Won't help him with RPIO.GPIO.

The official RPIO.GPIO fork has not yet been updated for the Pi2. If you go to github you will find a fork which has been updated, i.e. https://github.com/tylerwowen/RPIO

User avatar
DougieLawson
Posts: 38882
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RPIO library issues

Mon Mar 30, 2015 12:35 pm

joan wrote:
DougieLawson wrote:You need to scrub all old versions of RPi.GPIO from your system and install the latest version.
...
Won't help him with RPIO.GPIO.

The official RPIO.GPIO fork has not yet been updated for the Pi2. If you go to github you will find a fork which has been updated, i.e. https://github.com/tylerwowen/RPIO
Oh dear, I didn't spot he was using that ancient pile of cobwebware.
Stop using RPIO.GPIO switch to RPi.GPIO or to Joan's excellent pigpio/pigiod (which both work on ALL raspberries).
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

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

Re: RPIO library issues

Mon Mar 30, 2015 12:39 pm

DougieLawson wrote: ...
switch to RPi.GPIO or to Joan's excellent pigpio/pigiod (which both work on ALL raspberries).
pigpio has no built-in support for debounce (other OP thread) so it will have to be RPi.GPIO.

Andre_Leonardo
Posts: 59
Joined: Wed Nov 12, 2014 1:47 am

Re: RPIO library issues

Mon Mar 30, 2015 1:20 pm

Can I use multiple PWM pins using the RPI.GPIO and I also want to use debounce so what is the best solution

Andre_Leonardo
Posts: 59
Joined: Wed Nov 12, 2014 1:47 am

Re: RPIO library issues

Mon Mar 30, 2015 1:23 pm

joan wrote:
DougieLawson wrote: ...
switch to RPi.GPIO or to Joan's excellent pigpio/pigiod (which both work on ALL raspberries).
pigpio has no built-in support for debounce (other OP thread) so it will have to be RPi.GPIO.
Is it possible to use multiple PWM pins in RPI.GPIO and I also wan to use debounce so what is the best solution.

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

Re: RPIO library issues

Mon Mar 30, 2015 2:00 pm

Andre_Leonardo wrote: ...
Is it possible to use multiple PWM pins in RPI.GPIO and I also wan to use debounce so what is the best solution.
RPi.GPIO is software PWM. So the servos will be erratic.

The best solution is for you to make an attempt at adding debounce to your existing code.

Andre_Leonardo
Posts: 59
Joined: Wed Nov 12, 2014 1:47 am

Re: RPIO library issues

Tue Mar 31, 2015 1:10 am

joan wrote:

RPi.GPIO is software PWM. So the servos will be erratic.

The best solution is for you to make an attempt at adding debounce to your existing code.
RPIO isn't it good to use, Is there issues with that, I saw in the documentation it gives PWMs to 1us accurately
or
Can I use pigpio and RPI.GPIO together

User avatar
DougieLawson
Posts: 38882
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RPIO library issues

Tue Mar 31, 2015 8:17 am

It looks like RPIO has been updated for RPI2B, but you will need to install it from a git clone of https://github.com/tylerwowen/RPIO
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

VecH
Posts: 41
Joined: Tue Dec 09, 2014 5:30 pm

Re: RPIO library issues

Fri Oct 28, 2016 1:04 am

Raspberry Pi 2
Raspbian Jessie (updated)

Code: Select all

root@rpi /opt/voda # uname -a
Linux rpi 4.4.21-v7+ #911 SMP Thu Sep 15 14:22:38 BST 2016 armv7l GNU/Linux

Code: Select all

root@rpi /opt/voda # apt-get install python-setuptools
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-setuptools is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Code: Select all

root@rpi /opt/voda # easy_install -U RPIO
Searching for RPIO
Reading https://pypi.python.org/simple/RPIO/
Best match: RPIO 0.10.0
Processing RPIO-0.10.0-py2.7-linux-armv7l.egg
RPIO 0.10.0 is already the active version in easy-install.pth
Installing rpio script to /usr/local/bin
Installing rpio-curses script to /usr/local/bin

Using /usr/local/lib/python2.7/dist-packages/RPIO-0.10.0-py2.7-linux-armv7l.egg
Processing dependencies for RPIO
Finished processing dependencies for RPIO
I need a working rpio-curses and rpio

All installed and updated, get the error:

Code: Select all

root@rpi /opt/voda # rpio-curses
Traceback (most recent call last):
  File "/usr/local/bin/rpio-curses", line 4, in <module>
    __import__('pkg_resources').run_script('RPIO==0.10.0', 'rpio-curses')
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 742, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1674, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/RPIO-0.10.0-py2.7-linux-armv7l.egg/EGG-INFO/scripts/rpio-curses", line 74, in <module>

  File "build/bdist.linux-armv7l/egg/RPIO/__init__.py", line 115, in <module>
  File "build/bdist.linux-armv7l/egg/RPIO/_GPIO.py", line 7, in <module>
  File "build/bdist.linux-armv7l/egg/RPIO/_GPIO.py", line 6, in __bootstrap__
SystemError: This module can only be run on a Raspberry Pi!

User avatar
Hove
Posts: 1205
Joined: Sun Oct 21, 2012 6:55 pm
Location: Cotswolds, UK
Contact: Website

Re: RPIO library issues

Fri Oct 28, 2016 2:38 pm

Get RPIO from the original source which now has a beta version supporting all new RPi's using the mailbox API to determine DMA addresses. https://github.com/metachris/RPIO/tree/v2. It's only beta because metacris hasn't made it the master yet.

I've been using it since I made those changes and it works beautifully. It will run in parallel with standard RPi.GPIO if you need some function not supported on RPIO.
www.pistuffing.co.uk - Raspberry Pi and other stuffing!

VecH
Posts: 41
Joined: Tue Dec 09, 2014 5:30 pm

Re: RPIO library issues

Sat Oct 29, 2016 4:15 am

How to iunstall alternate version ?
In order to establish what commands please

User avatar
Hove
Posts: 1205
Joined: Sun Oct 21, 2012 6:55 pm
Location: Cotswolds, UK
Contact: Website

Re: RPIO library issues

Sat Oct 29, 2016 6:28 am

VecH wrote:How to iunstall alternate version ?
In order to establish what commands please
You don't need to uninstall the previous version, just installing the new version overwrites the old version.

To install it goto https://github.com/metachris/RPIO/tree/v2

Click the green "Clone or Download" button
Click "Download ZIP"
Unzip the package on your Raspberry Pi
cd to the new directory (named the same as the package you downloaded)
sudo python setup.py install

That then puts all the bits where needed and you can just use it in your code.
www.pistuffing.co.uk - Raspberry Pi and other stuffing!

VecH
Posts: 41
Joined: Tue Dec 09, 2014 5:30 pm

Re: RPIO library issues

Sat Oct 29, 2016 8:08 pm

These steps will overwrite package

User avatar
Hove
Posts: 1205
Joined: Sun Oct 21, 2012 6:55 pm
Location: Cotswolds, UK
Contact: Website

Re: RPIO library issues

Sun Oct 30, 2016 6:39 am

VecH wrote:These steps will overwrite package
Yes, as I said above, it will overwrite the old faulty RPIO package with the new working RPIO package. Why's that a problem?
www.pistuffing.co.uk - Raspberry Pi and other stuffing!

VecH
Posts: 41
Joined: Tue Dec 09, 2014 5:30 pm

Re: RPIO library issues

Sun Oct 30, 2016 10:00 am

rpio-curses will work?

User avatar
Hove
Posts: 1205
Joined: Sun Oct 21, 2012 6:55 pm
Location: Cotswolds, UK
Contact: Website

Re: RPIO library issues

Sun Oct 30, 2016 11:29 am

VecH wrote:rpio-curses will work?
I don't see why not, but I've never tried it.
www.pistuffing.co.uk - Raspberry Pi and other stuffing!

VecH
Posts: 41
Joined: Tue Dec 09, 2014 5:30 pm

Re: RPIO library issues

Sun Oct 30, 2016 11:58 am

Code: Select all

root@vdk-etalon ~/rpio # git clone https://github.com/metachris/RPIO.git
Cloning into 'RPIO'...
remote: Counting objects: 2136, done.
remote: Total 2136 (delta 0), reused 0 (delta 0), pack-reused 2136
Receiving objects: 100% (2136/2136), 1.91 MiB | 364.00 KiB/s, done.
Resolving deltas: 100% (1263/1263), done.
Checking connectivity... done.

root@vdk-etalon ~/rpio # cd RPIO/

root@vdk-etalon ~/rpio/RPIO # 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-armv7l/egg
running install_lib
running build_py
creating build
creating build/lib.linux-armv7l-2.7
creating build/lib.linux-armv7l-2.7/RPIO
copying source/RPIO/_RPIO.py -> build/lib.linux-armv7l-2.7/RPIO
copying source/RPIO/Exceptions.py -> build/lib.linux-armv7l-2.7/RPIO
copying source/RPIO/__init__.py -> build/lib.linux-armv7l-2.7/RPIO
creating build/lib.linux-armv7l-2.7/RPIO/PWM
copying source/RPIO/PWM/__init__.py -> build/lib.linux-armv7l-2.7/RPIO/PWM
running build_ext
building 'RPIO._GPIO' extension
creating build/temp.linux-armv7l-2.7
creating build/temp.linux-armv7l-2.7/source
creating build/temp.linux-armv7l-2.7/source/c_gpio
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c source/c_gpio/py_gpio.c -o build/temp.linux-armv7l-2.7/source/c_gpio/py_gpio.o -Wno-error=declaration-after-statement
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c source/c_gpio/c_gpio.c -o build/temp.linux-armv7l-2.7/source/c_gpio/c_gpio.o -Wno-error=declaration-after-statement
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c source/c_gpio/cpuinfo.c -o build/temp.linux-armv7l-2.7/source/c_gpio/cpuinfo.o -Wno-error=declaration-after-statement
source/c_gpio/cpuinfo.c: In function ‘get_cpuinfo_revision’:
source/c_gpio/cpuinfo.c:50:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
         fgets(buffer, sizeof(buffer) , fp);
         ^
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-armv7l-2.7/source/c_gpio/py_gpio.o build/temp.linux-armv7l-2.7/source/c_gpio/c_gpio.o build/temp.linux-armv7l-2.7/source/c_gpio/cpuinfo.o -o build/lib.linux-armv7l-2.7/RPIO/_GPIO.so
building 'RPIO.PWM._PWM' extension
creating build/temp.linux-armv7l-2.7/source/c_pwm
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c source/c_pwm/pwm.c -o build/temp.linux-armv7l-2.7/source/c_pwm/pwm.o -Wno-error=declaration-after-statement
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c source/c_pwm/pwm_py.c -o build/temp.linux-armv7l-2.7/source/c_pwm/pwm_py.o -Wno-error=declaration-after-statement
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-armv7l-2.7/source/c_pwm/pwm.o build/temp.linux-armv7l-2.7/source/c_pwm/pwm_py.o -o build/lib.linux-armv7l-2.7/RPIO/PWM/_PWM.so
creating build/bdist.linux-armv7l
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/RPIO
copying build/lib.linux-armv7l-2.7/RPIO/_GPIO.so -> build/bdist.linux-armv7l/egg/RPIO
copying build/lib.linux-armv7l-2.7/RPIO/_RPIO.py -> build/bdist.linux-armv7l/egg/RPIO
copying build/lib.linux-armv7l-2.7/RPIO/Exceptions.py -> build/bdist.linux-armv7l/egg/RPIO
creating build/bdist.linux-armv7l/egg/RPIO/PWM
copying build/lib.linux-armv7l-2.7/RPIO/PWM/_PWM.so -> build/bdist.linux-armv7l/egg/RPIO/PWM
copying build/lib.linux-armv7l-2.7/RPIO/PWM/__init__.py -> build/bdist.linux-armv7l/egg/RPIO/PWM
copying build/lib.linux-armv7l-2.7/RPIO/__init__.py -> build/bdist.linux-armv7l/egg/RPIO
byte-compiling build/bdist.linux-armv7l/egg/RPIO/_RPIO.py to _RPIO.pyc
byte-compiling build/bdist.linux-armv7l/egg/RPIO/Exceptions.py to Exceptions.pyc
byte-compiling build/bdist.linux-armv7l/egg/RPIO/PWM/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-armv7l/egg/RPIO/__init__.py to __init__.pyc
creating stub loader for RPIO/_GPIO.so
creating stub loader for RPIO/PWM/_PWM.so
byte-compiling build/bdist.linux-armv7l/egg/RPIO/_GPIO.py to _GPIO.pyc
byte-compiling build/bdist.linux-armv7l/egg/RPIO/PWM/_PWM.py to _PWM.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
installing scripts to build/bdist.linux-armv7l/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/scripts-2.7
copying and adjusting source/scripts/rpio -> build/scripts-2.7
copying and adjusting source/scripts/rpio-curses -> build/scripts-2.7
changing mode of build/scripts-2.7/rpio from 644 to 755
changing mode of build/scripts-2.7/rpio-curses from 644 to 755
creating build/bdist.linux-armv7l/egg/EGG-INFO/scripts
copying build/scripts-2.7/rpio -> build/bdist.linux-armv7l/egg/EGG-INFO/scripts
copying build/scripts-2.7/rpio-curses -> build/bdist.linux-armv7l/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-armv7l/egg/EGG-INFO/scripts/rpio to 755
changing mode of build/bdist.linux-armv7l/egg/EGG-INFO/scripts/rpio-curses to 755
copying source/RPIO.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying source/RPIO.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying source/RPIO.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying source/RPIO.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
writing build/bdist.linux-armv7l/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/RPIO-0.10.1-py2.7-linux-armv7l.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing RPIO-0.10.1-py2.7-linux-armv7l.egg
Copying RPIO-0.10.1-py2.7-linux-armv7l.egg to /usr/local/lib/python2.7/dist-packages
Removing RPIO 0.10.0 from easy-install.pth file
Adding RPIO 0.10.1 to easy-install.pth file
Installing rpio script to /usr/local/bin
Installing rpio-curses script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/RPIO-0.10.1-py2.7-linux-armv7l.egg
Processing dependencies for RPIO==0.10.1
Finished processing dependencies for RPIO==0.10.1

root@vdk-etalon ~/rpio/RPIO # python3 setup.py install
running install
Checking .pth file support in /usr/local/lib/python3.4/dist-packages/
/usr/bin/python3 -E -c pass
TEST PASSED: /usr/local/lib/python3.4/dist-packages/ appears to support .pth files
running bdist_egg
running 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
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-armv7l/egg
running install_lib
running build_py
creating build/lib.linux-armv7l-3.4
creating build/lib.linux-armv7l-3.4/RPIO
copying source/RPIO/_RPIO.py -> build/lib.linux-armv7l-3.4/RPIO
copying source/RPIO/Exceptions.py -> build/lib.linux-armv7l-3.4/RPIO
copying source/RPIO/__init__.py -> build/lib.linux-armv7l-3.4/RPIO
creating build/lib.linux-armv7l-3.4/RPIO/PWM
copying source/RPIO/PWM/__init__.py -> build/lib.linux-armv7l-3.4/RPIO/PWM
running build_ext
building 'RPIO._GPIO' extension
creating build/temp.linux-armv7l-3.4
creating build/temp.linux-armv7l-3.4/source
creating build/temp.linux-armv7l-3.4/source/c_gpio
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c source/c_gpio/py_gpio.c -o build/temp.linux-armv7l-3.4/source/c_gpio/py_gpio.o -Wno-error=declaration-after-statement
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c source/c_gpio/c_gpio.c -o build/temp.linux-armv7l-3.4/source/c_gpio/c_gpio.o -Wno-error=declaration-after-statement
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c source/c_gpio/cpuinfo.c -o build/temp.linux-armv7l-3.4/source/c_gpio/cpuinfo.o -Wno-error=declaration-after-statement
source/c_gpio/cpuinfo.c: In function ‘get_cpuinfo_revision’:
source/c_gpio/cpuinfo.c:50:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
         fgets(buffer, sizeof(buffer) , fp);
         ^
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/source/c_gpio/py_gpio.o build/temp.linux-armv7l-3.4/source/c_gpio/c_gpio.o build/temp.linux-armv7l-3.4/source/c_gpio/cpuinfo.o -o build/lib.linux-armv7l-3.4/RPIO/_GPIO.cpython-34m.so
building 'RPIO.PWM._PWM' extension
creating build/temp.linux-armv7l-3.4/source/c_pwm
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c source/c_pwm/pwm.c -o build/temp.linux-armv7l-3.4/source/c_pwm/pwm.o -Wno-error=declaration-after-statement
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c source/c_pwm/pwm_py.c -o build/temp.linux-armv7l-3.4/source/c_pwm/pwm_py.o -Wno-error=declaration-after-statement
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/source/c_pwm/pwm.o build/temp.linux-armv7l-3.4/source/c_pwm/pwm_py.o -o build/lib.linux-armv7l-3.4/RPIO/PWM/_PWM.cpython-34m.so
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/RPIO
copying build/lib.linux-armv7l-3.4/RPIO/_GPIO.cpython-34m.so -> build/bdist.linux-armv7l/egg/RPIO
copying build/lib.linux-armv7l-3.4/RPIO/_RPIO.py -> build/bdist.linux-armv7l/egg/RPIO
copying build/lib.linux-armv7l-3.4/RPIO/Exceptions.py -> build/bdist.linux-armv7l/egg/RPIO
creating build/bdist.linux-armv7l/egg/RPIO/PWM
copying build/lib.linux-armv7l-3.4/RPIO/PWM/_PWM.cpython-34m.so -> build/bdist.linux-armv7l/egg/RPIO/PWM
copying build/lib.linux-armv7l-3.4/RPIO/PWM/__init__.py -> build/bdist.linux-armv7l/egg/RPIO/PWM
copying build/lib.linux-armv7l-3.4/RPIO/__init__.py -> build/bdist.linux-armv7l/egg/RPIO
byte-compiling build/bdist.linux-armv7l/egg/RPIO/_RPIO.py to _RPIO.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/RPIO/Exceptions.py to Exceptions.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/RPIO/PWM/__init__.py to __init__.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/RPIO/__init__.py to __init__.cpython-34.pyc
creating stub loader for RPIO/_GPIO.cpython-34m.so
creating stub loader for RPIO/PWM/_PWM.cpython-34m.so
byte-compiling build/bdist.linux-armv7l/egg/RPIO/_GPIO.py to _GPIO.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/RPIO/PWM/_PWM.py to _PWM.cpython-34.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
installing scripts to build/bdist.linux-armv7l/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/scripts-3.4
copying and adjusting source/scripts/rpio -> build/scripts-3.4
copying and adjusting source/scripts/rpio-curses -> build/scripts-3.4
changing mode of build/scripts-3.4/rpio from 644 to 755
changing mode of build/scripts-3.4/rpio-curses from 644 to 755
creating build/bdist.linux-armv7l/egg/EGG-INFO/scripts
copying build/scripts-3.4/rpio -> build/bdist.linux-armv7l/egg/EGG-INFO/scripts
copying build/scripts-3.4/rpio-curses -> build/bdist.linux-armv7l/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-armv7l/egg/EGG-INFO/scripts/rpio to 755
changing mode of build/bdist.linux-armv7l/egg/EGG-INFO/scripts/rpio-curses to 755
copying source/RPIO.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying source/RPIO.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying source/RPIO.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying source/RPIO.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
writing build/bdist.linux-armv7l/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
RPIO.__pycache__._GPIO.cpython-34: module references __file__
RPIO.PWM.__pycache__._PWM.cpython-34: module references __file__
creating 'dist/RPIO-0.10.1-py3.4-linux-armv7l.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing RPIO-0.10.1-py3.4-linux-armv7l.egg
creating /usr/local/lib/python3.4/dist-packages/RPIO-0.10.1-py3.4-linux-armv7l.egg
Extracting RPIO-0.10.1-py3.4-linux-armv7l.egg to /usr/local/lib/python3.4/dist-packages
Adding RPIO 0.10.1 to easy-install.pth file
Installing rpio script to /usr/local/bin
Installing rpio-curses script to /usr/local/bin

Installed /usr/local/lib/python3.4/dist-packages/RPIO-0.10.1-py3.4-linux-armv7l.egg
Processing dependencies for RPIO==0.10.1
Finished processing dependencies for RPIO==0.10.1

root@vdk-etalon ~/rpio/RPIO # rpio-curses
Traceback (most recent call last):
  File "/usr/local/bin/rpio-curses", line 4, in <module>
    __import__('pkg_resources').run_script('RPIO==0.10.1', 'rpio-curses')
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 534, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 1438, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 59, in execfile
    exec(compile(open(fn).read(), fn, 'exec'), globs, locs)
  File "/usr/local/lib/python3.4/dist-packages/RPIO-0.10.1-py3.4-linux-armv7l.egg/EGG-INFO/scripts/rpio-curses", line 74, in <module>
    import RPIO
  File "/usr/local/lib/python3.4/dist-packages/RPIO-0.10.1-py3.4-linux-armv7l.egg/RPIO/__init__.py", line 115, in <module>
    import RPIO._GPIO as _GPIO
SystemError: This module can only be run on a Raspberry Pi!
If download RPIO-2.zip

Code: Select all

root@vdk-etalon ~/rpio # cd RPIO-2/

root@vdk-etalon ~/rpio/RPIO-2 # python setup.py install
/usr/local/lib/python2.7/dist-packages/setuptools/dist.py:285: UserWarning: Normalizing '2.0.0-beta1' to '2.0.0b1'
  normalized_version,
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-armv7l/egg
running install_lib
running build_py
creating build
creating build/lib.linux-armv7l-2.7
creating build/lib.linux-armv7l-2.7/RPIO
copying source/RPIO/_RPIO.py -> build/lib.linux-armv7l-2.7/RPIO
copying source/RPIO/Exceptions.py -> build/lib.linux-armv7l-2.7/RPIO
copying source/RPIO/__init__.py -> build/lib.linux-armv7l-2.7/RPIO
creating build/lib.linux-armv7l-2.7/RPIO/PWM
copying source/RPIO/PWM/__init__.py -> build/lib.linux-armv7l-2.7/RPIO/PWM
running build_ext
building 'RPIO._GPIO' extension
creating build/temp.linux-armv7l-2.7
creating build/temp.linux-armv7l-2.7/source
creating build/temp.linux-armv7l-2.7/source/c_gpio
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c source/c_gpio/py_gpio.c -o build/temp.linux-armv7l-2.7/source/c_gpio/py_gpio.o -Wno-error=declaration-after-statement
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c source/c_gpio/c_gpio.c -o build/temp.linux-armv7l-2.7/source/c_gpio/c_gpio.o -Wno-error=declaration-after-statement
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c source/c_gpio/cpuinfo.c -o build/temp.linux-armv7l-2.7/source/c_gpio/cpuinfo.o -Wno-error=declaration-after-statement
source/c_gpio/cpuinfo.c: In function ‘get_cpuinfo_revision’:
source/c_gpio/cpuinfo.c:50:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
         fgets(buffer, sizeof(buffer) , fp);
         ^
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-armv7l-2.7/source/c_gpio/py_gpio.o build/temp.linux-armv7l-2.7/source/c_gpio/c_gpio.o build/temp.linux-armv7l-2.7/source/c_gpio/cpuinfo.o -o build/lib.linux-armv7l-2.7/RPIO/_GPIO.so
building 'RPIO.PWM._PWM' extension
creating build/temp.linux-armv7l-2.7/source/c_pwm
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c source/c_pwm/pwm.c -o build/temp.linux-armv7l-2.7/source/c_pwm/pwm.o -Wno-error=declaration-after-statement
In file included from source/c_pwm/pwm.c:88:0:
source/c_pwm/mailbox.h:34:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
 int mbox_open();
 ^
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c source/c_pwm/mailbox.c -o build/temp.linux-armv7l-2.7/source/c_pwm/mailbox.o -Wno-error=declaration-after-statement
In file included from source/c_pwm/mailbox.c:38:0:
source/c_pwm/mailbox.h:34:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
 int mbox_open();
 ^
source/c_pwm/mailbox.c:246:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
 int mbox_open() {
     ^
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c source/c_pwm/pwm_py.c -o build/temp.linux-armv7l-2.7/source/c_pwm/pwm_py.o -Wno-error=declaration-after-statement
In file included from source/c_pwm/pwm_py.c:27:0:
source/c_pwm/mailbox.h:34:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
 int mbox_open();
 ^
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-armv7l-2.7/source/c_pwm/pwm.o build/temp.linux-armv7l-2.7/source/c_pwm/mailbox.o build/temp.linux-armv7l-2.7/source/c_pwm/pwm_py.o -o build/lib.linux-armv7l-2.7/RPIO/PWM/_PWM.so
creating build/bdist.linux-armv7l
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/RPIO
copying build/lib.linux-armv7l-2.7/RPIO/_GPIO.so -> build/bdist.linux-armv7l/egg/RPIO
copying build/lib.linux-armv7l-2.7/RPIO/_RPIO.py -> build/bdist.linux-armv7l/egg/RPIO
copying build/lib.linux-armv7l-2.7/RPIO/Exceptions.py -> build/bdist.linux-armv7l/egg/RPIO
creating build/bdist.linux-armv7l/egg/RPIO/PWM
copying build/lib.linux-armv7l-2.7/RPIO/PWM/_PWM.so -> build/bdist.linux-armv7l/egg/RPIO/PWM
copying build/lib.linux-armv7l-2.7/RPIO/PWM/__init__.py -> build/bdist.linux-armv7l/egg/RPIO/PWM
copying build/lib.linux-armv7l-2.7/RPIO/__init__.py -> build/bdist.linux-armv7l/egg/RPIO
byte-compiling build/bdist.linux-armv7l/egg/RPIO/_RPIO.py to _RPIO.pyc
byte-compiling build/bdist.linux-armv7l/egg/RPIO/Exceptions.py to Exceptions.pyc
byte-compiling build/bdist.linux-armv7l/egg/RPIO/PWM/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-armv7l/egg/RPIO/__init__.py to __init__.pyc
creating stub loader for RPIO/_GPIO.so
creating stub loader for RPIO/PWM/_PWM.so
byte-compiling build/bdist.linux-armv7l/egg/RPIO/_GPIO.py to _GPIO.pyc
byte-compiling build/bdist.linux-armv7l/egg/RPIO/PWM/_PWM.py to _PWM.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
installing scripts to build/bdist.linux-armv7l/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/scripts-2.7
copying and adjusting source/scripts/rpio -> build/scripts-2.7
copying and adjusting source/scripts/rpio-curses -> build/scripts-2.7
changing mode of build/scripts-2.7/rpio from 644 to 755
changing mode of build/scripts-2.7/rpio-curses from 644 to 755
creating build/bdist.linux-armv7l/egg/EGG-INFO/scripts
copying build/scripts-2.7/rpio -> build/bdist.linux-armv7l/egg/EGG-INFO/scripts
copying build/scripts-2.7/rpio-curses -> build/bdist.linux-armv7l/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-armv7l/egg/EGG-INFO/scripts/rpio to 755
changing mode of build/bdist.linux-armv7l/egg/EGG-INFO/scripts/rpio-curses to 755
copying source/RPIO.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying source/RPIO.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying source/RPIO.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying source/RPIO.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
writing build/bdist.linux-armv7l/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/RPIO-2.0.0b1-py2.7-linux-armv7l.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing RPIO-2.0.0b1-py2.7-linux-armv7l.egg
Copying RPIO-2.0.0b1-py2.7-linux-armv7l.egg to /usr/local/lib/python2.7/dist-packages
Removing RPIO 0.10.1 from easy-install.pth file
Adding RPIO 2.0.0b1 to easy-install.pth file
Installing rpio script to /usr/local/bin
Installing rpio-curses script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/RPIO-2.0.0b1-py2.7-linux-armv7l.egg
Processing dependencies for RPIO==2.0.0b1
Finished processing dependencies for RPIO==2.0.0b1

root@vdk-etalon ~/rpio/RPIO-2 # python3 setup.py install
running install
Checking .pth file support in /usr/local/lib/python3.4/dist-packages/
/usr/bin/python3 -E -c pass
TEST PASSED: /usr/local/lib/python3.4/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
writing top-level names to source/RPIO.egg-info/top_level.txt
writing source/RPIO.egg-info/PKG-INFO
writing dependency_links to source/RPIO.egg-info/dependency_links.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-armv7l/egg
running install_lib
running build_py
creating build/lib.linux-armv7l-3.4
creating build/lib.linux-armv7l-3.4/RPIO
copying source/RPIO/_RPIO.py -> build/lib.linux-armv7l-3.4/RPIO
copying source/RPIO/Exceptions.py -> build/lib.linux-armv7l-3.4/RPIO
copying source/RPIO/__init__.py -> build/lib.linux-armv7l-3.4/RPIO
creating build/lib.linux-armv7l-3.4/RPIO/PWM
copying source/RPIO/PWM/__init__.py -> build/lib.linux-armv7l-3.4/RPIO/PWM
running build_ext
building 'RPIO._GPIO' extension
creating build/temp.linux-armv7l-3.4
creating build/temp.linux-armv7l-3.4/source
creating build/temp.linux-armv7l-3.4/source/c_gpio
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c source/c_gpio/py_gpio.c -o build/temp.linux-armv7l-3.4/source/c_gpio/py_gpio.o -Wno-error=declaration-after-statement
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c source/c_gpio/c_gpio.c -o build/temp.linux-armv7l-3.4/source/c_gpio/c_gpio.o -Wno-error=declaration-after-statement
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c source/c_gpio/cpuinfo.c -o build/temp.linux-armv7l-3.4/source/c_gpio/cpuinfo.o -Wno-error=declaration-after-statement
source/c_gpio/cpuinfo.c: In function ‘get_cpuinfo_revision’:
source/c_gpio/cpuinfo.c:50:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
         fgets(buffer, sizeof(buffer) , fp);
         ^
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/source/c_gpio/py_gpio.o build/temp.linux-armv7l-3.4/source/c_gpio/c_gpio.o build/temp.linux-armv7l-3.4/source/c_gpio/cpuinfo.o -o build/lib.linux-armv7l-3.4/RPIO/_GPIO.cpython-34m.so
building 'RPIO.PWM._PWM' extension
creating build/temp.linux-armv7l-3.4/source/c_pwm
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c source/c_pwm/pwm.c -o build/temp.linux-armv7l-3.4/source/c_pwm/pwm.o -Wno-error=declaration-after-statement
In file included from source/c_pwm/pwm.c:88:0:
source/c_pwm/mailbox.h:34:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
 int mbox_open();
 ^
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c source/c_pwm/mailbox.c -o build/temp.linux-armv7l-3.4/source/c_pwm/mailbox.o -Wno-error=declaration-after-statement
In file included from source/c_pwm/mailbox.c:38:0:
source/c_pwm/mailbox.h:34:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
 int mbox_open();
 ^
source/c_pwm/mailbox.c:246:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
 int mbox_open() {
     ^
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c source/c_pwm/pwm_py.c -o build/temp.linux-armv7l-3.4/source/c_pwm/pwm_py.o -Wno-error=declaration-after-statement
In file included from source/c_pwm/pwm_py.c:27:0:
source/c_pwm/mailbox.h:34:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
 int mbox_open();
 ^
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.4/source/c_pwm/pwm.o build/temp.linux-armv7l-3.4/source/c_pwm/mailbox.o build/temp.linux-armv7l-3.4/source/c_pwm/pwm_py.o -o build/lib.linux-armv7l-3.4/RPIO/PWM/_PWM.cpython-34m.so
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/RPIO
copying build/lib.linux-armv7l-3.4/RPIO/_GPIO.cpython-34m.so -> build/bdist.linux-armv7l/egg/RPIO
copying build/lib.linux-armv7l-3.4/RPIO/_RPIO.py -> build/bdist.linux-armv7l/egg/RPIO
copying build/lib.linux-armv7l-3.4/RPIO/Exceptions.py -> build/bdist.linux-armv7l/egg/RPIO
creating build/bdist.linux-armv7l/egg/RPIO/PWM
copying build/lib.linux-armv7l-3.4/RPIO/PWM/_PWM.cpython-34m.so -> build/bdist.linux-armv7l/egg/RPIO/PWM
copying build/lib.linux-armv7l-3.4/RPIO/PWM/__init__.py -> build/bdist.linux-armv7l/egg/RPIO/PWM
copying build/lib.linux-armv7l-3.4/RPIO/__init__.py -> build/bdist.linux-armv7l/egg/RPIO
byte-compiling build/bdist.linux-armv7l/egg/RPIO/_RPIO.py to _RPIO.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/RPIO/Exceptions.py to Exceptions.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/RPIO/PWM/__init__.py to __init__.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/RPIO/__init__.py to __init__.cpython-34.pyc
creating stub loader for RPIO/_GPIO.cpython-34m.so
creating stub loader for RPIO/PWM/_PWM.cpython-34m.so
byte-compiling build/bdist.linux-armv7l/egg/RPIO/_GPIO.py to _GPIO.cpython-34.pyc
byte-compiling build/bdist.linux-armv7l/egg/RPIO/PWM/_PWM.py to _PWM.cpython-34.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
installing scripts to build/bdist.linux-armv7l/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/scripts-3.4
copying and adjusting source/scripts/rpio -> build/scripts-3.4
copying and adjusting source/scripts/rpio-curses -> build/scripts-3.4
changing mode of build/scripts-3.4/rpio from 644 to 755
changing mode of build/scripts-3.4/rpio-curses from 644 to 755
creating build/bdist.linux-armv7l/egg/EGG-INFO/scripts
copying build/scripts-3.4/rpio -> build/bdist.linux-armv7l/egg/EGG-INFO/scripts
copying build/scripts-3.4/rpio-curses -> build/bdist.linux-armv7l/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-armv7l/egg/EGG-INFO/scripts/rpio to 755
changing mode of build/bdist.linux-armv7l/egg/EGG-INFO/scripts/rpio-curses to 755
copying source/RPIO.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying source/RPIO.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying source/RPIO.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying source/RPIO.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
writing build/bdist.linux-armv7l/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
RPIO.__pycache__._GPIO.cpython-34: module references __file__
RPIO.PWM.__pycache__._PWM.cpython-34: module references __file__
creating 'dist/RPIO-2.0.0_beta1-py3.4-linux-armv7l.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing RPIO-2.0.0_beta1-py3.4-linux-armv7l.egg
creating /usr/local/lib/python3.4/dist-packages/RPIO-2.0.0_beta1-py3.4-linux-armv7l.egg
Extracting RPIO-2.0.0_beta1-py3.4-linux-armv7l.egg to /usr/local/lib/python3.4/dist-packages
Removing RPIO 0.10.1 from easy-install.pth file
Adding RPIO 2.0.0-beta1 to easy-install.pth file
Installing rpio script to /usr/local/bin
Installing rpio-curses script to /usr/local/bin

Installed /usr/local/lib/python3.4/dist-packages/RPIO-2.0.0_beta1-py3.4-linux-armv7l.egg
Processing dependencies for RPIO==2.0.0-beta1
Finished processing dependencies for RPIO==2.0.0-beta1

root@vdk-etalon ~/rpio/RPIO-2 # rpio-curses
Traceback (most recent call last):
  File "/usr/local/bin/rpio-curses", line 4, in <module>
    __import__('pkg_resources').run_script('RPIO==2.0.0-beta1', 'rpio-curses')
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 534, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 1438, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 59, in execfile
    exec(compile(open(fn).read(), fn, 'exec'), globs, locs)
  File "/usr/local/lib/python3.4/dist-packages/RPIO-2.0.0_beta1-py3.4-linux-armv7l.egg/EGG-INFO/scripts/rpio-curses", line 96, in <module>
    GPIO_LIST = get_gpiolist()
  File "/usr/local/lib/python3.4/dist-packages/RPIO-2.0.0_beta1-py3.4-linux-armv7l.egg/EGG-INFO/scripts/rpio-curses", line 78, in get_gpiolist
    if RPIO.sysinfo()[1] == 'B+':
  File "/usr/local/lib/python3.4/dist-packages/RPIO-2.0.0_beta1-py3.4-linux-armv7l.egg/RPIO/__init__.py", line 186, in sysinfo
    return (RPI_REVISION_HEX,) + MODEL_DATA[RPI_REVISION_HEX.lstrip("0")]
KeyError: 'a21041'

User avatar
Hove
Posts: 1205
Joined: Sun Oct 21, 2012 6:55 pm
Location: Cotswolds, UK
Contact: Website

Re: RPIO library issues

Sun Oct 30, 2016 12:16 pm

OK, so it seems the rpio-curses script needs updating to recognise newer models of the Raspberry Pi. What model of Raspberry Pi are you running this on?
www.pistuffing.co.uk - Raspberry Pi and other stuffing!

User avatar
DougieLawson
Posts: 38882
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RPIO library issues

Sun Oct 30, 2016 12:28 pm

Hove wrote:OK, so it seems the rpio-curses script needs updating to recognise newer models of the Raspberry Pi. What model of Raspberry Pi are you running this on?
The OP told you with

Code: Select all

KeyError: 'a21041'
which looks like it's a 3B.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

VecH
Posts: 41
Joined: Tue Dec 09, 2014 5:30 pm

Re: RPIO library issues

Sun Oct 30, 2016 12:34 pm

understood nothing
what should I do?

User avatar
Hove
Posts: 1205
Joined: Sun Oct 21, 2012 6:55 pm
Location: Cotswolds, UK
Contact: Website

Re: RPIO library issues

Sun Oct 30, 2016 12:55 pm

The problem is in RPIO/source/RPIO/__init__.py line 150 onwards where there is missing information about newer models of RPi's for the GPIO code.

I could fix this relatively easy IFF I knew how to update someone else Git repository. I only ever add, commit and push on my own. If someone could tell me what steps I need to update metachris' repository for this change, I'm happy to go ahead. I just don't want to do this by guessing and wrecking his repository as a result.
www.pistuffing.co.uk - Raspberry Pi and other stuffing!

User avatar
DougieLawson
Posts: 38882
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RPIO library issues

Sun Oct 30, 2016 12:57 pm

If you do it online at http://github.com/metachris then the website will generate the fork for you. When the code is written and tested you can do a pull request to get metachris to merge your changes with his repo.

There's nothing you can do to destroy the original version unless you're added as a member of that project.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

VecH
Posts: 41
Joined: Tue Dec 09, 2014 5:30 pm

Re: RPIO library issues

Sun Oct 30, 2016 1:05 pm

I do not understand what want from me? what data to put to get a working rpio-curses

I have RPi B, RPi 2B

Return to “Raspberry Pi OS”