On 15 Dec 2007, at 17:20, clinch wrote: > I've looked in the apache logs and here's what I found: > > File "/home/chris/public_html/hello.py", line 1, in ? > mod_wsgi (pid=6377): Exception occurred within WSGI script '/home/ > chris/public_html/hello.py'. > mod_wsgi (pid=6377): Target WSGI script '/home/chris/public_html/ > hello.py' cannot be loaded as Python module. > > The code I'm using for hello.py is the exact same found on the > frontpage of http://webpy.org/ with the addition of the line: > > application = web.wsgifunc(web.webpyfunc(urls, globals())) > > Perhaps I'm missing something in wsgi, or maybe web.py? If anyone > could help, I would greatly appreciate it.
I usually get that error when the module is not importable for whatever reason. Try opening an interactive Python session and doing "import hello"... see if you get any errors there. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
