NDB ImportError!

108 views
Skip to first unread message

Waleed Abdulla

unread,
Sep 24, 2012, 10:59:15 PM9/24/12
to google-appengine
Hi all,
    I'm getting random import errors from time to time. They start on one of the instances, and then that instance keeps generating those errors until I shut it down. 

    I tried putting a _ah/warmup request, and in that request I do the import:

 from google.appengine.ext import ndb

   But that doesn't seem to solve the problem. What am I missing? I'm including the stack trace below.

Thanks
Waleed


----

2012-09-24 13:28:32.968 /panorama/blogger?&stream_suffix=__blogger&last_visit_date=1348495705&view=manage&offset=0&limit=5&parent_page_name=panorama 500 291ms 0kb Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1 AlexaToolbar/alxf-2.15
80.87.92.2 - - [24/Sep/2012:13:28:32 -0700] "GET /panorama/blogger?&stream_suffix=__blogger&last_visit_date=1348495705&view=manage&offset=0&limit=5&parent_page_name=panorama HTTP/1.1" 500 0 "http://www.networkedblogs.com/panorama" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1 AlexaToolbar/alxf-2.15" "www.networkedblogs.com" ms=291 cpu_ms=238 instance=00c61b117c7c127a4e5e1415265fc670470c
E 2012-09-24 13:28:32.788
Traceback (most recent call last):
  File "/base/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 195, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/base/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 250, in _LoadHandler
    __import__(cumulative_path)
  File "/base/data/home/apps/s~networkedblogshr/live.361951794551741701/website/panorama_page.py", line 9, in <module>
    from google.appengine.ext import ndb
  File "/base/python27_runtime/python27_lib/versions/1/google/appengine/ext/ndb/__init__.py", line 7, in <module>
    from tasklets import *
  File "/base/python27_runtime/python27_lib/versions/1/google/appengine/ext/ndb/tasklets.py", line 68, in <module>
    from .google_imports import apiproxy_stub_map
  File "/base/python27_runtime/python27_lib/versions/1/google/appengine/ext/ndb/google_imports.py", line 23, in <module>
    from google.appengine.api import prospective_search
  File "/base/python27_runtime/python27_lib/versions/1/google/appengine/api/prospective_search/__init__.py", line 24, in <module>
    from prospective_search import *
  File "/base/python27_runtime/python27_lib/versions/1/google/appengine/api/prospective_search/prospective_search.py", line 75, in <module>
    from google.appengine.api.prospective_search import error_pb
ImportError: cannot import name error_pb

Anand Mistry

unread,
Sep 25, 2012, 1:41:35 AM9/25/12
to google-a...@googlegroups.com
Is a DeadlineExceededError exception raised on the first request to the instance?

Waleed Abdulla

unread,
Sep 25, 2012, 2:41:07 AM9/25/12
to google-a...@googlegroups.com
The first request is the warmup request, and in my case it only has 3 lines to import ndb, db, and one other module. So it shouldn't take a long time at all. I can't verify right now since I already killed the instance, but I think a DeadlineExceededError is very unlikely in this case.



--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/0rcUU4U_gOIJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Reply all
Reply to author
Forward
0 new messages