874 Views - Created 10/08/2020
File "/usr/local/lib/python3.7/dist-packages/ExpanderPi/ExpanderPi.py", line 702, in write_pin
self.__set_pin(pin, value, self.GPIOA, self.GPIOB)
File "/usr/local/lib/python3.7/dist-packages/ExpanderPi/ExpanderPi.py", line 440, in __set_pin
newval = self.__updatebyte(curval, pin, value)
AttributeError: 'IO' object has no attribute '_IO__updatebyte'
This error only occurs with this sentence: "write_pin", not with "read_pin" or "write_port" for example.
I think the Library instalation is correct because there is not error in "import ExpanderPi" and "set_port_direction"
Someone knows what the solution is?
This is the code...
# -*- coding: utf-8 -*-
import os, time, sys, glob
io = ExpanderPi.IO()
Sorry, there was a bug with the Expander Pi python library. Please can you download the updated version from our GitHub repository and see if that fixes your problem?
Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view, download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.