Deferred task execution failure because of a failing import

24 views
Skip to first unread message

Ivo Bellin Salarin

unread,
Sep 6, 2017, 8:52:41 AM9/6/17
to Google App Engine

Hi all,

How can we diagnose a python ImportError on GAE standard? The `import` builtin is being replaced by a GAE stub. I would like to enable detailed logging of the modules being loaded, from which path, and which was the sys.path at the moment of the error. Do I have any option other than adding those instructions before the failing imports?

Shivam(Google Cloud Support)

unread,
Sep 6, 2017, 3:50:15 PM9/6/17
to Google App Engine
Are you aware that you can view the error in the Stackdriver error reporting. You would have to try-catch the import error similar to as show in the example here.
Reply all
Reply to author
Forward
0 new messages