peerchemist / Peerbox

DEPRECATED
GNU General Public License v3.0
19 stars 22 forks source link

TypeError: Type str doesn't support the buffer API #30

Closed peercoinops closed 7 years ago

peercoinops commented 7 years ago

Making a note receiving the following error

TypeError: Type str doesn't support the buffer API

Fixed by using str()

            status = sh.systemctl.status("{0}@{1}".format(mode, getpass.getuser()),_encoding="utf8")
            status = str(status).split("\n  ")
peercoinops commented 7 years ago

Seeing this issue on the newer debian 8.0. Created pull request #32