There is one realted error I'm getting as well

/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/
runtime/wsgi.py:85: ImportWarning: Not importing directory 
'/base/data/home/apps/s~apps-1149/1.391373453171312456/urlhandlers': 
missing __init__.py

Can it be because I'm importing some custom libraries?


On Monday, March 14, 2016 at 11:28:05 AM UTC-7, Khalid Razzaq wrote:
>
>
> 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/f1bd1daf-550f-4c5d-ae26-258b166f33cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to