did you download the source code version, right ? the archive at http://www.web2py.com/examples/static/web2py_src.zip has gluon/main.py
On Sunday, April 21, 2013 8:12:43 AM UTC+2, mke...@halstead.com 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.