A community for Application Developers on OrangeScape's Platform-as-a-Service
We tried to import users into our application via the bulk upload feature. But we are getting import failed error message in the front end. On checking the logs in app engine, we found the following error.
ImportError: cannot import name importMapping
Kindly help us solve this issue.
attachment : appengine log for the request
While deploy, system will generate "importMapping" file. Please check this file presented in your app.zip or not?
Yes there is a importmapping.py in app.zip in the following path
We found and fixed the issue. Please deploy your application into the GAE and use it.
If you are using local setup, download enterprise.war file alone and use.
i am still getting the issue
Please download the source code from your appspot and download the latest gae.runtime.zip from community and compare the orangescape/model/server/Context.py file.
I don't have permissions to download files. please mail me the Context.py file, i will check and revert back
Please find the attachment.
The Context.py file downloaded from appspot has the following three lines missing
importMapping = unpickle(application_path, 'importmapping.pck')
from orangescape.application.importmapping import importMapping
# from orangescape.tests.functional.server.test.importmapping import importMapping
These three lines are fix for your issue.
While deploy your application should get these three lines.
Please check it.
I am deploying directly from the studio. I am not doing a manual deployment, So i think the problem is on the deployment server. Maybe it is caching the old files or something like.
This issue is due to cache. We are removed all cached files.
Please deploy and check the application.