Your comments

I got the same error, to fix it just make the change on line 120 from this pull request

https://github.com/ajenti/ajenti/pull/882/files

the file is located here: /usr/lib/python2.7/site-packages/ajenti/compat.py

Hope this will be included soon in the release