You can check the logs in your var folder for some clues. When I looked there after this error, I found a message saying that there was a dependency missing, in my case a datatype extension that was used in my custom class, but missing in the new install. After adding and activating the extension, the import worked fine.