OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

Ok, it was an error on my part.
I had the following in my configuration file:

[web]
listen = localhost:5432

[database]
database uri = postgresql://postgres:password@localhost:5432/

Being a noob, I was trying to use the same port for the database and the client!

You have to use a different port for the client.