I have found a difference in compiling python files inside zip archive between regular python' zipimport and GAE version: GAE zipimport feature fails to compile python module if it has no end-of-line (0x0A) character at the end of the .py file. Testcase application is attached.
Importing such from zip archive module gives the following exception: <type 'exceptions.IndentationError'>: unindent does not match any outer indentation level (noeol.py, line 5) Traceback (most recent call last): File "/base/data/home/apps/kedder-experiments/1-alpha.330054091195923889/start.py", line 4, in <module> from zipimporttest import noeol as eoltest File "/base/python_dist/lib/python2.5/py_zipimport.py", line 230, in load_module code = compile(source, fullpath, 'exec') Note, that the same file, but with EOL at the end gets imported fine. Both file version are imported from unzipped package file as well. This behaviour makes impossible to bundle app with .egg versions of some modules (like mako for example): they work well locally, but stops working when deployed on GAE. -- Andrey Lebedev Software engineer --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---