Closed magenois closed 4 years ago
Pull requests to fix this are welcome!
Note that Python 2 will be officially unsupported in less than a year (January 1, 2020): https://python3statement.org/
Since Python 2 is now officially out of support, Python 2 fixes won't be added anymore.
getting this error when running in pigpio mode on Python 2.7
Changing line 226 in pigpio.py from:
self._writescript = self.pi.store_script(bytes(piscript, 'utf-8'))
to :self._writescript = self.pi.store_script(piscript.encode('utf-8'))
fixes the issue.
bytes() function is not backward compatible to Python 2