"array.array: tostring() and fromstring() methods have been removed. They were aliases to tobytes() and frombytes(), deprecated since Python 3.2."
editing /usr/lib/python3/dist-packages/landscape/lib/network.py and replacing "res = status_cmd.tostring()" with "res = status_cmd.tobytes()" solves the problem
See https:/ /docs.python. org/3.9/ whatsnew/ 3.9.html# removed
"array.array: tostring() and fromstring() methods have been removed. They were aliases to tobytes() and frombytes(), deprecated since Python 3.2."
editing /usr/lib/ python3/ dist-packages/ landscape/ lib/network. py and replacing "res = status_ cmd.tostring( )" with "res = status_ cmd.tobytes( )" solves the problem