Problem with msfconsole

I seem to get this error:

For any exploit I attempt to run.

I’ve tried msfdb reinit; msfconsole -qx db_rebuild_cache -x exit
I’ve tried to reinstall metasploit.

Same problem.