Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'PiFaceDigital' object has no attribute 'close' #6

Open
noanight opened this issue Apr 22, 2022 · 0 comments
Open

AttributeError: 'PiFaceDigital' object has no attribute 'close' #6

noanight opened this issue Apr 22, 2022 · 0 comments

Comments

@noanight
Copy link

Shutting down WebIOPi with pifFace configured throws an AttributeError

Log

2022-04-21 20:50:14 - WebIOPi - INFO - HTTP Server stopped
2022-04-21 20:50:14 - WebIOPi - DEBUG - Closing device GPIO - GPIO
2022-04-21 20:50:14 - WebIOPi - DEBUG - Closing device pifaceModule - PiFaceDigital(0)
2022-04-21 20:50:14 - WebIOPi - ERROR - 'PiFaceDigital' object has no attribute 'close'
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/WebIOPi-0.7.1-py3.9-linux-armv6l.egg/webiopi/__main__.py", line 75, in <module>
    main(sys.argv)
  File "/usr/local/lib/python3.9/dist-packages/WebIOPi-0.7.1-py3.9-linux-armv6l.egg/webiopi/__main__.py", line 71, in main
    server.stop()
  File "/usr/local/lib/python3.9/dist-packages/WebIOPi-0.7.1-py3.9-linux-armv6l.egg/webiopi/server/__init__.py", line 143, in stop
    manager.closeDevices()
  File "/usr/local/lib/python3.9/dist-packages/WebIOPi-0.7.1-py3.9-linux-armv6l.egg/webiopi/devices/manager.py", line 54, in closeDevices
    device.close()
AttributeError: 'PiFaceDigital' object has no attribute 'close'
2022-04-21 20:50:15 - WebIOPi - INFO - CoAP Server stopped

Possible fix

adding attribute close to piface.py

    def close(self):
        None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant