This is a error cause by not full compatibility of KiCost with Py2 (https://github.com/xesscorp/KiCost/issues/332), try to install in Py3.
We are experiencing several error lately and I am not in time to fix all, so I open a KiCost - call of developers . I hope more developers/programmers could help with this and others issues.