May be this line :
if not request.env.web2py_runtime_gae:

is missing in referred method.

Can you try to change the method for test?

IN main.py line 445

def create_missing_folders():
    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), "")
    [add_path_first(path) for path in paths]

should be:

def create_missing_folders():
if not request.env.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), "")
    [add_path_first(path) for path in paths]


I don't know if this is really a solution, but worth a try.

I'll make some tests here too.

Bruno.

2010/12/22 dcrodjer <[email protected]>

> Hi,
> I just *updated my web2py* version to *1.91.1* but after the update I am
> unable to deploy my applications on *GAE*. The apps run on the local app
> engine skd with no errors. I even tried downloading a fresh source and
> deploying it but no effect
>
> I stll get an Internal server error and these are the details of the error
> from the admin log:
>
> <type 'exceptions.AttributeError'>: 'module' object has no attribute
> 'mkdir'
> Traceback (most recent call last):
> File
> "/base/data/home/apps/dcrodjer-web2py/1.347093779494156164/gaehandler.py",
> line 58, in <module>
> import gluon.main
> File
> "/base/data/home/apps/dcrodjer-web2py/1.347093779494156164/gluon/main.py",
> line 52, in <module>
> create_missing_folders()
> File
> "/base/data/home/apps/dcrodjer-web2py/1.347093779494156164/gluon/admin.py",
> line 449, in create_missing_folders
> os.mkdir(path)
>
>
> From this it seems that web2py is trying to make directories in the gae
> sandbox. I have tried removing all skipped files but still no avail. I have
> also tried deploying from the admin site ( But I don't think that would
> matter).
>
> Can someone please tell me what I am doing wrong or is there something that
> is needed to be done and I am unaware of?
>



-- 

Bruno Rocha
http://about.me/rochacbruno/bio

Reply via email to