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

v2 beta: Script rpio fails on Pi3 #99

Open
Thad-BC opened this issue Jul 24, 2017 · 2 comments
Open

v2 beta: Script rpio fails on Pi3 #99

Thad-BC opened this issue Jul 24, 2017 · 2 comments

Comments

@Thad-BC
Copy link

Thad-BC commented Jul 24, 2017

Running script RPIO/source/scripts/rpio with option --sysinfo results in an error:

pi@raspberrypi:~/RPIO/RPIO/source/scripts $ rpio --sysinfo
Script not started as root. Running sudo...
Traceback (most recent call last):
  File "/usr/local/bin/rpio", line 4, in <module>
    __import__('pkg_resources').run_script('RPIO==2.0.0-beta1', 'rpio')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 534, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1445, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/RPIO-2.0.0_beta1-py2.7-linux-armv7l.egg/EGG-INFO/scripts/rpio", line 353, in <module>
    
  File "/usr/local/lib/python2.7/dist-packages/RPIO-2.0.0_beta1-py2.7-linux-armv7l.egg/EGG-INFO/scripts/rpio", line 346, in main
    
  File "build/bdist.linux-armv7l/egg/RPIO/__init__.py", line 186, in sysinfo
KeyError: 'a22082'

This apparently results from not including the recent hardware versions in the checking code.
This should be updated to recognize the RPi3.
Also, it would be helpful to print a formatted message if run on unrecognized hardware.
I plan to submit a PR for this.

Environment:
RPIO version: v2 (2016.06.02: 07c776f)
Hardware: RPi 3, BCM2709, rev. a22082
OS: Raspbian GNU/Linux 8
Python: 2.7.9

@JamesGKent
Copy link

i had to fork and patch this lately so i could use it on my pi zero w, i updated the list with all the currently known versions of the pi, you can give it a try here: https://github.com/JamesGKent/RPIO/tree/v2

@Thad-BC
Copy link
Author

Thad-BC commented Jul 27, 2017 via email

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

2 participants