running Ubuntu 16.04.3

getting this error now on potato tv - think it's related to a python upgrade but was wondering if anyone else came across this.

https://pastebin.com/dvXBEuFj

Anyone let me know if they've run into this.. I've tried a few things to no avail.