Thanks.  No, since I was on Windows I was only developing with binaries and 
didn't know I needed source files as well - didn't see that in the book...
I downloaded the src files and do see gluon/main.py now.  

So, in wsgihandler.py do I now change "import gluon.main" to "import 
main.py"?   I tried "import gluon/main.py" and that gave me a syntax error 
on the '/'.
Do I have to copy some or all .py files from web2py/gluon to web2py so they 
can be found??

If there is documentation on how to configure this part on a Windows 
system, please point me there.   I've been searching for info on this but 
have found anything that addresses these seemingly simple issues.

Thanks for your help!!

On Sunday, April 21, 2013 2:12:43 AM UTC-4, 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.


Reply via email to