Hi,
I'm new to cherokee, and not very experimented in Python...
I use Werkzeug (http://werkzeug.pocoo.org/) for a small webapp.
I tried to use cherokee with uWSGI but it doesn't work, and don't know
why...
It's not possible with werkzeug whitout hacks ? bad config ? bad
permissions ? all together ?
does anyone try this framework on cherokee with success ?
I'm using cherokee 1.0.4 (try with 1.0.2) on ubuntu 10.04
my source information looks like :
/usr/bin/uwsgi -s 127.0.0.1:41540 -t 10 -M -p 1 -C -x
/home/julien/Workspaces/python/portal/portal_wsgi.xml
my portal_wsgi.xml:
=========================
<uwsgi>
<pythonpath>/home/julien/Workspace/python/portal/portal/</pythonpath>
<pythonpath>/home/julien/Workspace/python/portal/</pythonpath>
<app mountpoint="/">
<script>portal_wsgi</script>
</app>
</uwsgi>
=========================
my portal_wsgi.py
=========================
#!/usr/bin/python
import os, sys
from werkzeug import script
sys.path.append('/home/julien/Workspaces/python/portal')
def make_app():
from portal.portal.application import Application
return Application('http://localhost:5984')
application = make_app()
=========================
my log files
=========================
[uWSGI] parsing config file
/home/julien/Workspaces/python/portal/portal_wsgi.xml
*** Starting uWSGI 0.9.5.1 (64bit) on [Wed Jun 23 22:42:19 2010] ***
compiled with version: 4.4.3
Python version: 2.6.5 (r265:79063, Apr 16 2010, 14:15:55)
[GCC 4.4.3]
your memory page size is 4096 bytes
allocated 560 bytes (0 KB) for 1 request's buffer.
binding on TCP port: 41540
your server socket listen backlog is limited to 64 connections
initializing hooks...done.
added /home/julien/Workspace/python/portal/portal/ to pythonpath.
added /home/julien/Workspace/python/portal/ to pythonpath.
interpreter for app 0 initialized.
ImportError: No module named portal_wsgi
*** uWSGI is running in multiple interpreter mode !!! ***
spawned uWSGI master process (pid: 3783)
spawned uWSGI worker 1 (pid: 3784)
[pid: 3784|app: -1|req: -1/1] 127.0.0.1 () {58 vars in 1107 bytes} [Wed
Jun 23 22:42:20 2010] GET / => generated 46 bytes in 0 msecs (HTTP/1.1
500) 2 headers in 63 bytes (0 async switches on async core 0)
=========================
(all my files are in permissions 777 for tests)
If you have an idea ...
regards, Julien C.
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee