Same code deployed on development system works fine but once deployed to 
production fails with following error:


Traceback (most recent call last): File 
"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py"
, line 240, in Handle handler = _config_handle.add_wsgi_middleware(self.
_LoadHandler()) File 
"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py"
, line 299, in _LoadHandler handler, path, err = LoadObject(self._handler) 
File 
"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py"
, line 85, in LoadObject obj = __import__(path[0]) ImportError: No module 
named urlhandlers

Following is the URL Handler code

import tracebackimport datetimefrom google.appengine.api import taskqueueimport 
reimport webapp2from utilities.logger import logThis, AEL_LEVEL_INFO, 
AEL_LEVEL_CRITICALfrom constants.constants import GAET_MASTERTASK_NAME, 
GAEQ_FOR_MASTERTASKimport sys
class QueueAMasterTask(webapp2.RequestHandler): 
    def get(self):
        try:
            dt =datetime.datetime.now()
            logThis(AEL_LEVEL_INFO, 'Master Task added to its Q at[%s]' %(dt))  
          
            task_name = GAET_MASTERTASK_NAME + str(datetime.datetime.now())
            task_name = re.sub('[^a-zA-Z0-9_-]', '_', task_name)
            taskqueue.add(queue_name=GAEQ_FOR_MASTERTASK,name=task_name)
            logThis(AEL_LEVEL_INFO, "OK-MASTER TASK ADD")
        except taskqueue.DuplicateTaskNameError:
            logThis(AEL_LEVEL_CRITICAL, "EXCEPTION on QueueAMasterTask-" +     
traceback.format_exc())
        except:
            logThis(AEL_LEVEL_CRITICAL, "EXP on QueueAMasterTask-" +     
traceback.format_exc())

app = webapp2.WSGIApplication([('/QueueAMasterTask', QueueAMasterTask)
               ], debug=True)

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/92d69b7b-c007-481e-8fdc-f5ea00e5af84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to