One more note: it seems like there must be more configuration steps involved for Windows setup than are documented. In addition to changes in wsgihandler.py, it looks like utils.py also has to be modified. It is looking for files in the unix directory structure which are named differently in the Windows directory structure. For instance, utils.py is looking for contrib.aes but on Windows, this is located in the contrib directory and calles aes.py.
Is there a whole set of setup configuration instructions needed for a Windows/Apache runtime environment that I missed somewhere???? Thanks again. On Sunday, April 21, 2013 2:12:43 AM UTC-4, [email protected] wrote: > > I'm trying to run my web2py app behind Apache on Windows, however, when > Apache loads wsgihandler.py and tries to execute the line: > > import gluon.main > > it fails with the error: > > [Sun Apr 21 00:27:54 2013] [error] [client 127.0.0.1] mod_wsgi (pid=1644): > Target WSGI script 'C:/Documents and Settings/mkerins/My > Documents/web2py/wsgihandler.py' cannot be loaded as Python module. > [Sun Apr 21 00:27:54 2013] [error] [client 127.0.0.1] mod_wsgi (pid=1644): > Exception occurred processing WSGI script 'C:/Documents and > Settings/mkerins/My Documents/web2py/wsgihandler.py'. > [Sun Apr 21 00:27:54 2013] [error] [client 127.0.0.1] Traceback (most > recent call last): > [Sun Apr 21 00:27:54 2013] [error] [client 127.0.0.1] File "C:/Documents > and Settings/mkerins/My Documents/web2py/wsgihandler.py", line 33, in > <module> > [Sun Apr 21 00:27:54 2013] [error] [client 127.0.0.1] import gluon.main > [Sun Apr 21 00:27:54 2013] [error] [client 127.0.0.1] ImportError: No > module named gluon.main > > When I look in the web2py base directory (*this is a Windows > installation*) , there is no file named "gluon.main". Should > wsgihandler.py be pointing to a different file to load other than > "gluon.main" or do I need to get gluon.main from somewhere? > > If I have to get gluon.main, where do I download it from and why isn't it > part of the Windows installation?? > > Thanks. > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

