Sorry, my mistake. I resolved it Earlier, I was not sure about the tables in my applications >From the welcome home page->This Page->Database, I got the URL for the database and replaced the string 'welcome' with my application name. This displayed all tables in my database in GAE. This works both in the GAE development and production environment
Best Ram On Aug 13, 7:35 am, chitram <[email protected]> wrote: > Thanks for the quick reply. > > Earlier, I tested my application locally by running ./web2py and it > works fine. All the folders as mentioned in the gluon/admin.py are > available under ~/web2py.. When I tried to run the application in the > GAE development environment (dev_appserver.py web2py), I get this > error. > > The following are are the sequence to the mkdir error: > 1. Welcome application appears > 2.http://localhost:8080/admin/default/edit/welcome/controllers/default.py > brings up the edit screen > 3. Click on 'Site' brings the Installed applications page > 4. click on edit under welcome application brings the mkdir error. > > All I wanted was to insert new tables for welcome application. Is > there a different approach to do the same? > > In an act of desperation, I commented the code in gluon/admin.py as > follows: > def create_missing_folders(): > if not global_settings.web2py_runtime_gae: > #for path in ('applications', 'deposit', 'site-packages', > 'logs'): > #path = abspath(path, gluon=True) > #if not os.path.exists(path): > #os.mkdir(path) > paths = (global_settings.gluon_parent, abspath('site-packages', > gluon=True), abspath('gluon', gluon=True), '') > [add_path_first(path) for path in paths] > > I got the same error again, after restarting the application and > reverted back > > Thanks in advance for the help > > Best > Ram > > On Aug 13, 4:17 am, Massimo Di Pierro <[email protected]> > wrote: > > > > > > > > > You deploying an app that you have not run locally. Some folders have > > missing and have not been created so GAE tries to create them for you > > and fails (no write access). You must create all folders it needs > > before using GAE. This is done automatically when you run the app. > > > On 12 Ago, 14:58,chitram<[email protected]> wrote: > > > > I am getting this error in this version too while trying to deploy it > > > on a GAE development environment > > > > I am running the latest web2py version 1.98.2 > > > > ***** > > > web2py™ Version 1.98.2 (2011-08-04 00:47:09) > > > Python Python 2.5.6: /usr/local/bin/python > > > ****** > > > Traceback (most recent call last): > > > File "/home/ramaseshan/web2py/gluon/restricted.py", line 192, in > > > restricted > > > exec ccode in environment > > > File "/home/ramaseshan/web2py/applications/admin/controllers/ > > > default.py:design", line 1224, in <module> > > > File "/home/ramaseshan/web2py/gluon/globals.py", line 145, in > > > <lambda> > > > self._caller = lambda f: f() > > > File "/home/ramaseshan/web2py/applications/admin/controllers/ > > > default.py:design", line 742, in design > > > AttributeError: 'module' object has no attribute 'mkdir' > > > > Best regards > > > ram

