After I ran it once without Apache, it now works with Apache too. Any possible reason for that?
Julius V Sobota, 18. september 2010 o 23:55 +0200, Julius Minka napísal(a): > It works locally, the error occurs only on the server. > > V Sobota, 18. september 2010 o 14:46 -0700, mdipierro napísal(a): > > I do not know but ... > > Not all modules can go in the modules folder. Some of them exepect to > > be in sys.path > > > > On Sep 18, 3:18 pm, Julius Minka <[email protected]> wrote: > > > Trying to deploy web2py app in the Virtual Server with Debian installed > > > usinghttp://bazaar.launchpad.net/~mdipierro/web2py/devel/download/head:/se... > > > > > > results in this error: > > > > > > Error traceback > > > 1. > > > 2. > > > 3. > > > 4. > > > 5. > > > 6. > > > 7. > > > 8. > > > 9. > > > 10. > > > 11. > > > Traceback (most recent call last): > > > File "gluon/restricted.py", line 186, in restricted > > > exec ccode in environment > > > File "/home/www-data/web2py/applications/real/models/db.py", line 140, > > > in <module> > > > webgrid = local_import('webgrid') > > > File "gluon/compileapp.py", line 243, in <lambda> > > > local_import_aux(name,reload,app) > > > File "gluon/compileapp.py", line 174, in local_import_aux > > > module = __import__(name) > > > ImportError: No module named applications.real.modules.webgrid > > > Error snapshot > > > Detailed traceback description > > > * Exception: <type 'exceptions.ImportError'>(No module named > > > applications.real.modules.webgrid) > > > * Python 2.5.2: /usr/bin/python > > > * > > > > > > the webgrid.py is available in the modules directory > > > Why the import has failed? > > > Julius >

