Hi Michael, I read the comment you mentioned and tried to do the same thing but there's no "module_directory" in my config/environment.py.
The comment is also suggesting to install the latest Pylons 0.9.7 so I tried but it again failed with the following error NameError: name 'egg_plugins' is not defined at line 25 column 22 in file It must be hard to have a documentation for fast-evolving system like Pylons... Let me know if there are any other things I could try to solve this.. On Mon, Jul 21, 2008 at 6:14 AM, Mike Orr <[EMAIL PROTECTED]> wrote: > > On Sun, Jul 20, 2008 at 9:55 AM, js <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I'm planning on moving my site to Google App Engine. >> Pylons is the Framework I choose for this. >> >> I learned Pylons works on app engine by using appenginemonkey >> so I tried by following the following doc. >> http://code.google.com/p/appengine-monkey/wiki/Pylons >> >> Ian Bicking's explanation is so clear that it's easy to read through and >> when I finished reading it, I got a working Pylons environment on >> Google App Engine! >> >> But the work is not so easy. After putting a controller and templates, >> I started getting the following error >> >> Module mako.util:41 in verify_directory >> << try: >> tries += 1 >> os.makedirs(dir, 0750) >> except: >> if tries > 5:>> os.makedirs(dir, 0750) >> AttributeError: 'module' object has no attribute 'makedirs' >> >> According to Ian, Mako in trunk works on Google App Engine, >> but it apparently doesn't work there. >> >> Is there anyone who make it work succesfully? >> Any suggestions/pointers would be greatly appriciated! > > Hi JS, I'm writing a book on Python on App Engine > (http://www.manning.com/gift/) and am just now sorting out what issues > Pylons has on it. So any tips from others who are using Pylons on App > Engine would be greatly appreciated. So far I've seen confirmations > that minimal applications work, but I don't know if anybody's tried a > larger app yet. > > Your problem sounds like it's related to Mako's template caching. App > Engine apps can't create directories or write files. The June 9th > comment on the page you cited suggests commenting out the > ``module_directory`` arg in environment.py to disable caching. > > Of course, that will diminish Mako's amazing speed. It remains to be > seen how much of a difference it makes. Perhaps down the road Mako > can be patched to put cached templates in Datastore. Cc'ing Mke Bayer > for comments. > > -- > Mike Orr <[EMAIL PROTECTED]> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---