two things are wrong: 1) that line "import gluon.import_all" should be commented (has been commented for at list six web2py versions) it is only used to build py2exe 2) even if you uncomment, gluon/import_all.py should be there.
You may have a very old version of web2py and some missing files. On Jan 31, 11:36 pm, pbreit <[email protected]> wrote: > Trying to run a background task from MacOS command line and getting error: > > pbreit$ python web2py.py -S myapp -M -N -R > applications/myapp/private/expire_items.py > Traceback (most recent call last): > File "web2py.py", line 3, in <module> > import gluon.import_all > ImportError: No module named gluon.import_all

