Dear Users,
I am trying to run my simple webpy script in CGI mode. However, the script
produces Server Errors because it tries to load wsgi and fastcgi modules that I
do not have installed. From the apache error.log:
Traceback (most recent call last):
File "/home/drx/public_html/wut/code.py", line 74, in <module>
app.run()
File "/home/drx/public_html/wut/web/application.py", line 311, in run
return wsgi.runwsgi(self.wsgifunc(*middleware))
File "/home/drx/public_html/wut/web/wsgi.py", line 35, in runwsgi
return runfcgi(func, None)
File "/home/drx/public_html/wut/web/wsgi.py", line 16, in runfcgi
import flup.server.fcgi as flups
ImportError: No module named flup.server.fcgi
[Fri Sep 16 12:26:05 2011] [error] [client 127.0.0.1] Premature end of script
headers: code.py
My .htaccess, located in the same directory, says:
Options +ExecCGI
AddHandler cgi-script .py
DirectoryIndex code.py index.html
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /~drx/wut/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/favicon.ico$
RewriteCond %{REQUEST_URI} !^(/.*)+code.py/
RewriteRule ^(.*)$ code.py/$1 [L]
</IfModule>
Why does webpy think it needs to run as fastcgi? Do I need to install other
python modules?
Bests,
Dragan
--
http://noobz.cc/
http://digitalfolklore.org/
http://contemporary-home-computing.org/1tb/
--
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.