I actually faced the same error a while ago, because I restored the backup of an ERPNext version 13 server to version 12 server(which I installed through easy install script), to resolve this I updated the new server to the same version as of the old server and restored the backup again. Now everything is working fine.