google-code-export / appengine-devappserver2-experiment

Automatically exported from code.google.com/p/appengine-devappserver2-experiment
0 stars 0 forks source link

ImportError from _sqlite3/python sandbox #66

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Gather a significant number of results (>~50) from parallel future queries 
as part of a request;
2. The error message below will occasionally occur - roughly once every 20 
requests.

What is the expected output? What do you see instead?

The expected output is completion of the command.

Instead, the output is the following traceback:

      WARNING  09 Apr 2013 14:30:02  suspended generator _count_async(query.py:1231) raised ImportError()
      WARNING  09 Apr 2013 14:30:02  suspended generator helper(context.py:800) raised ImportError()
Traceback (most recent call last):
  File "/Users/bmh/GitRepos/MyProject/contrib/flask/app.py", line 1262, in full_dispatch_request
    rv = self.dispatch_request()
  File "/Users/bmh/GitRepos/MyProject/contrib/flask/app.py", line 1248, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/Users/bmh/GitRepos/MyProject/nassau/users/views.py", line 362, in concerns
    colocated_events    = colocated_events,
  File "/Users/bmh/GitRepos/MyProject/nassau/utils/views.py", line 85, in success
    data    = data,
  File "/Users/bmh/GitRepos/MyProject/nassau/utils/views.py", line 65, in as_json
    default=multi_handler)
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 238, in dumps
    **kw).encode(obj)
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py", line 201, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/encoder.py", line 264, in iterencode
    return _iterencode(o, 0)
  File "/Users/bmh/GitRepos/MyProject/nassau/utils/views.py", line 19, in multi_handler
    obj = obj.get_result()
  File "/Users/bmh/GitRepos/appengine-devappserver2-experiment/google/appengine/ext/ndb/tasklets.py", line 325, in get_result
    self.check_success()
  File "/Users/bmh/GitRepos/appengine-devappserver2-experiment/google/appengine/ext/ndb/context.py", line 800, in helper
    batch, i, ent = yield inq.getq()
  File "/Users/bmh/GitRepos/appengine-devappserver2-experiment/google/appengine/ext/ndb/query.py", line 899, in run_to_queue
    batch = yield rpc
  File "/Users/bmh/GitRepos/appengine-devappserver2-experiment/google/appengine/ext/ndb/tasklets.py", line 454, in _on_rpc_completion
    result = rpc.get_result()
  File "/Users/bmh/GitRepos/appengine-devappserver2-experiment/google/appengine/api/apiproxy_stub_map.py", line 604, in get_result
    return self.__get_result_hook(self)
  File "/Users/bmh/GitRepos/appengine-devappserver2-experiment/google/appengine/datastore/datastore_query.py", line 2528, in __query_result_hook
    self._batch_shared.conn.check_rpc_success(rpc)
  File "/Users/bmh/GitRepos/appengine-devappserver2-experiment/google/appengine/datastore/datastore_rpc.py", line 1222, in check_rpc_success
    rpc.check_success()
  File "/Users/bmh/GitRepos/appengine-devappserver2-experiment/google/appengine/api/apiproxy_stub_map.py", line 570, in check_success
    self.__rpc.CheckSuccess()
  File "/Users/bmh/GitRepos/appengine-devappserver2-experiment/google/appengine/api/apiproxy_rpc.py", line 156, in _WaitImpl
    self.request, self.response)
  File "/Users/bmh/GitRepos/appengine-devappserver2-experiment/google/appengine/ext/remote_api/remote_api_stub.py", line 200, in MakeSyncCall
    self._MakeRealSyncCall(service, call, request, response)
  File "/Users/bmh/GitRepos/appengine-devappserver2-experiment/google/appengine/ext/remote_api/remote_api_stub.py", line 234, in _MakeRealSyncCall
    raise pickle.loads(response_pb.exception())
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1382, in loads
    return Unpickler(file).load()
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 858, in load
    dispatch[key](self)
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1090, in load_global
    klass = self.find_class(module, name)
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1124, in find_class
    __import__(module)
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
    from dbapi2 import *
  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
  File "/Users/bmh/GitRepos/appengine-devappserver2-experiment/google/appengine/tools/devappserver2/python/sandbox.py", line 861, in load_module
    raise ImportError
ImportError

What version of the product are you using? On what operating system?

1.7.6 on Mac OS X 10.8.3

Please provide any additional information below.

I get no extra information when running with '--log_level debug'.

Original issue reported on code.google.com by brianmh...@gmail.com on 9 Apr 2013 at 2:31