I'd like to use a pure-python module, however when ever I run my app
it complains that the python interpreter cannot find the module?
What is the correct procedure for including 3rd party python modules
within app-engine applications?
Thanks in advance
--
Brad.
OK - I have the source too - but I'm not sure where to put it. I've
tried including it in my project's src directory but it still
complains.
I'm trying to use google's protocol buffers modules:
from google.protobuf import descriptor
I have the following in my source directory:
google/protobuf/descriptor.py (plus a bunch of other related files/directories)
myapp.py - my application which imports the above module
But its still not right. I'm sure its something silly but I've been
trying many different things so far without success.
Your help is much appreciated!
Regards
--
Brad
I've checked and these files are present.
How are other people using 3rd party python modules? Do you have to
give any special arguments when starting dev_appserver.py ?
Regards
--
Brad.
Thanks very much Marce, I think I'm nearly there now!
Just one more thing now tho, I'm getting this error now:
<type 'exceptions.NameError'>: name 'true' is not defined
args = ("name 'true' is not defined",)
message = "name 'true' is not defined"
This is from here:
application = webapp.WSGIApplication(
[('/', MainPage),
('/pbmessage', PBMessageHandler)],
debug=true)
The definition of true (and probably other def's) seems to have
disappeared (as a result of the import_fixer ?)
Regards
--
Brad.
Seems to work like a charm now tho. Many thanks for your help guys,
its very much appreciated.
Is there any chance of having the protocol buffers core modules
included in the SDK in future? This would open up the possibilities of
writing protobuf based RPC-over-HTTP applications without the learning
curve I've just had to go through :-)
Kind Regards
--
Brad.