On Jul 8, 10:30 am, "Brett Morgan" <
brett.mor...@gmail.com> wrote:
> Just noticed that protocol buffers have been released. I am guessing this is
> the same protocol buffers that are in the AppEngine source base.
>
> So I suppose the question is, is it possible to write a protocol buffer
> server that will interop with the AppEngine SDK?
Different question, but related: I would love to use these protocol
buffers in the Google App Engine. But when I try to import a _pb2.py
file, I get error:
<type 'exceptions.ImportError'>: No module named protobuf
I tried to copy protobuf-2.0.0beta/python/build/lib/google/ into my
app engine project, but that caused all sorts of name space problems
which I am not expert enough to deal with. So instead I copied
protobuf-2.0.0beta/python/build/lib/google/protobuf/ and removed the
"google." from the import statements. (Yes I know that is not
elegant).
This results in the following error:
File "/base/data/home/apps/osm-route-altitude-profile/1.17/protobuf/
internal/input_stream.py", line 60, in __init__
self._buffer = buffer(s)
RuntimeError: cannot create buffer objects in restricted execution
mode
So my guess is that we need to wait for the app engine team to either
white-list some stuff or drop in Protobuf.
Can't wait: it is extremely easy to use so far.
Sjors