-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Just installed a new pifacerelayplus relay unit onto a B+ V1.2 RPI. Followed documentation on setup then initial testing which all worked perfectly. Next copied simple Python3 program from doc to further test relay operations, which again worked perfectly.
CODE: SELECT ALL
import pifacerelayplus
import time
pfr = pifacerelayplus.PiFaceRelayPlus(pifacerelayplus.RELAY)
pfr.relays[0].toggle()
time.sleep(2)
pfr.relays[0].toggle()
After the program python3 relayonoff.py was run the following was displayed:
pi@raspberrypi:sudo python3 relayonoff.py
Exception ignored in: <bound method PiFaceRelayPlus.del of <pifacerelayplus.
core.PiFaceRelayPlus object at 0X76a687f0>>
Traceback (most recent call last):
File "/usr/lib/python3/dist—packages/pifacerelayplus/core.py", line 227, in
del
File "/usr/lib/python3/dist—packages/pifacerelayplus/core.py", line 238, in di
sable_interrupts
File "/usr/lib/python3/dist—packages/pifacecommon/interrupts.py", line 242, in
gpio_interrupts_disable
File "/usr/lib/python3/dist—packages/pifacecommon/interrupts.py", line 412, in
set_gpio_interrupt_edge
NameError: name 'open' is not defined
Considering that the program runs successfully it appears the module "python3-pifacerelayplus" must have errors still embedded in it. At this point I cannot use the hardware until the software issue is resolved or that there is an alternative coding routine available.