My bad, sorry! I intended to link to it, but my thinking was less clear at the end of the night. Please have a look at [Solved] Synapse upgrade fails, restore fails (setuptools 60 vs 68? psycopg2?) - #2 by wbk ; keep in mind that you’ll have to replace your own file names of course
Give it a try!