osm2city sources have been updated to use Python 3.8, updated requirements.txt and been tested again Postgresql 12. If you are using Ubuntu or some of its derivates, then 20.04 LTS is fine as a basis (be aware that Postgresql default port is 5434 in version 12 on Ubuntu).
Please use Python 3.8 and use pip install requirements.txt in a virtual environment.