Your file probably has references in it. You'll either need to import them into the scene, or add support for them into your script.