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

Input function doen't work #108

Open
fishwolf opened this issue Apr 5, 2018 · 0 comments
Open

Input function doen't work #108

fishwolf opened this issue Apr 5, 2018 · 0 comments

Comments

@fishwolf
Copy link

fishwolf commented Apr 5, 2018

sudo apt-get install python3-setuptools
sudo apt-get install python3-dev
download https://pypi.python.org/pypi/RPIO
cd RPIO
sudo python3 setup.py install

Value = RPIO.input(Pin) is always the same value, with button up and down
and
rpio-curses return this error

Traceback (most recent call last):
File "/usr/local/bin/rpio-curses", line 4, in
import('pkg_resources').run_script('RPIO==2.0.0b1', 'rpio-curses')
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 739, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1494, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python3.5/dist-packages/RPIO-2.0.0b1-py3.5-linux-armv7l.egg/EGG-INFO/scripts/rpio-curses", line 501, in
main()
File "/usr/local/lib/python3.5/dist-packages/RPIO-2.0.0b1-py3.5-linux-armv7l.egg/EGG-INFO/scripts/rpio-curses", line 467, in main
d.start()
File "/usr/local/lib/python3.5/dist-packages/RPIO-2.0.0b1-py3.5-linux-armv7l.egg/EGG-INFO/scripts/rpio-curses", line 423, in start
self.draw()
File "/usr/local/lib/python3.5/dist-packages/RPIO-2.0.0b1-py3.5-linux-armv7l.egg/EGG-INFO/scripts/rpio-curses", line 182, in draw
screen.addstr(pos_y, POS_GPIOLIST_X+9, "%s " % (GPIO_FUNCTIONS[func]), curses.color_pair(3) if func == 4 else 0)
KeyError: 3

Thanks

@fishwolf fishwolf changed the title Input doen't work with python3 Input function doen't work Apr 7, 2018
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

1 participant