I installed PostgreSql on my Windows machine. I can connect to PostgreSql through cmd. But when I want to launch pgAdmin I am getting this error message.
In my case, the problem was non-ascii username.
Find pgAdmin installation and open/create config_local.py in editor, add this:
config_local.py
DATA_DIR = "C:/Data/pgAdmin" # set non-ascii path here
and run setup.py using python interpreter.
setup.py