Hi,
i am trying to get uwsgi to work with flask and proving to be
difficult. Why do I get the below?
root@localhost:/etc# /usr/local/bin/uwsgi --socket 127.0.0.1:6001
--file /home/ubuntu/workspace/rtbopsConfig/rtbDashboard3/run.py
--callable app --processes 4
*** Starting uWSGI 1.2.6 (64bit) on [Tue Sep 11 08:55:24 2012] ***
compiled with version: 4.6.3 on 11 September 2012 07:11:26
detected number of CPU cores: 4
current working directory: /etc
detected binary path: /usr/local/bin/uwsgi
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
*** WARNING: you are running uWSGI without its master process manager ***
your memory page size is 4096 bytes
detected max file descriptor number: 100000
lock engine: pthread robust mutexes
uwsgi socket 0 bound to TCP address 127.0.0.1:6001 fd 3
Python version: 2.7.3 (default, Aug 1 2012, 05:25:23) [GCC 4.6.3]
*** Python threads support is disabled. You can enable it with
--enable-threads ***
Python main interpreter initialized at 0x18b6010
your server socket listen backlog is limited to 100 connections
*** Operational MODE: preforking ***
Traceback (most recent call last):
File "/home/ubuntu/workspace/rtbopsConfig/rtbDashboard3/run.py",
line 6, in <module>
from app import app
ImportError: No module named app
unable to load app 0 (mountpoint='') (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (pid: 24805, cores: 1)
spawned uWSGI worker 2 (pid: 24818, cores: 1)
spawned uWSGI worker 3 (pid: 24819, cores: 1)
spawned uWSGI worker 4 (pid: 24820, cores: 1)
try:
import uwsgi
except:
pass
#!flask/bin/python
from app import app
if __name__ == '__main__':
app.run()
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi