As you are in Python 3 , use
dict.items() instead of
iteritems() was removed in Python 3, so you can't use this method anymore.
Take a look at Python 3.0 Wiki Built-in Changes section, where it is stated:
I deployed Dokku for new my project and got some issues.
In the past, Dokku was easy to deploy, especially on Ubuntu (any currently supported release).
Some other users have had the same errors as me and are still working on a workaround.
The errors appear may be out of order.
# 1. Error: keyfile ‘/root/.ssh/id_rsa.pub’ not found.
# 2. File “/usr/share/dokku/contrib/dokku-installer.py”, line 23, in <module> if ‘:’ in hostname: