Closed alfonsodg closed 10 years ago
From rick.b.m...@gmail.com on February 24, 2010 16:34:18
I'm chasing down my problems with (2) above. It appears the windows installer does not include wsgihandler.py, but it is in the sources.
I've got to build mod_wsgi from sources because, for Windows, there are only Python 2.6 versions available. That was messing things up, too.
From massimod...@gmail.com on March 22, 2010 13:56:34
Was this fixed? The book file in question was thought for Unix not windows. Please look for help on the google mailing list ( http://groups.google.com/group/web2py ). I will close this issue since it is about the book, not the code.
Status: Invalid
From rick.b.m...@gmail.com on February 24, 2010 18:30:31
I'm learning web2py, have been having success with the new version of the book, and tried to get it working with apache today. Thanks for your efforts. I like it so far.
In the book in http://web2py.com/book/default/section/11/5 (Setup Apache and mod_wsgi on Windows), near the end of the page where the Virtual Host is specified:
(1) This line gives a "Regex could not be compiled" error:
<LocationMatch "^(/[ /static/.)"> [ I get past the error if I change: /[ / to //. ]
(2) What should be used for the following?
There is no file in the release I have (Version 1.75.2) by that name. There is one in the mercurial repository which I cut-and-pasted and put into "C:/web2py/wsgihandler.py", but now I see in web2py-error.log:
[Wed Feb 24 14:56:47 2010] [error] [client 127.0.0.1] mod_wsgi (pid=188): Target WSGI script 'C:/web2py/wsgihandler.py' cannot be loaded as Python module. [Wed Feb 24 14:56:47 2010] [error] [client 127.0.0.1] mod_wsgi (pid=188): Exception occurred processing WSGI script 'C:/web2py/wsgihandler.py'. [Wed Feb 24 14:56:47 2010] [error] [client 127.0.0.1] Traceback (most recent call last): [Wed Feb 24 14:56:47 2010] [error] [client 127.0.0.1] File "C:/web2py/wsgihandler.py", line 24, in
[Wed Feb 24 14:56:47 2010] [error] [client 127.0.0.1] import gluon.main
[Wed Feb 24 14:56:47 2010] [error] [client 127.0.0.1] ImportError: No
module named gluon.main
Original issue: http://code.google.com/p/web2py/issues/detail?id=71