I'm trying to deploy my web.py app with lighttpd. It doesn't work if
import matplotlib.
This works:
hello.py:
#!/usr/bin/python
import web
# Say hello.
class Index:
def GET(self): return 'hello web.py'
if __name__ == "__main__":
app = web.application(('/*', 'Index'), globals())
app.run()
/etc/init.d/lighttpd restart
I go to my site and see "hello web.py".
But if I add `import matplotlib` to hello.py and restart the server,
then when I go to the site I get a 500 - Internal Server Error.
Here's `/var/log/lighttpd/error.log`:
2010-12-24 00:17:31: (log.c.166) server started
2010-12-24 00:17:42: (mod_fastcgi.c.1734) connect failed: Connection
refused on
unix:/tmp/fastcgi.socket-0
2010-12-24 00:17:42: (mod_fastcgi.c.3037) backend died; we'll
disable it for 1 s
econds and send the request to another backend instead: reconnects:
0 load: 1
2010-12-24 00:17:43: (mod_fastcgi.c.2582) unexpected end-of-file
(perhaps the fa
stcgi process died): pid: 4074 socket: unix:/tmp/fastcgi.socket-0
2010-12-24 00:17:43: (mod_fastcgi.c.3320) child exited, pid: 4074
status: 1
2010-12-24 00:17:43: (mod_fastcgi.c.3367) response not received,
request sent: 9
53 on socket: unix:/tmp/fastcgi.socket-0 for /hello.py?, closing
connection
2010-12-24 00:20:30: (server.c.1503) server stopped by UID = 0 PID =
4095
2010-12-24 00:20:30: (log.c.166) server started
Any suggestions?
--
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.