> Yes, arguments are a dict of strings, but the spooler doesn't process
> automatically
> I tried it manually but I get this
>
> uwsgi --socket :3031 --spooler /home/franciscocosta/spooler --master
> --processes 4 --import /opt/web2py/applications/app/modules/test.py
> --module /opt/web2py/applications/app/modules/uwsgidecorators.py
> *** Starting uWSGI 0.9.9.2 (64bit) on [Sat Dec  3 11:54:35 2011] ***
> compiled with version: 4.6.1 on 04 October 2011 13:08:10
> detected binary path: /usr/local/bin/uwsgi
> your memory page size is 4096 bytes
> uwsgi socket 0 bound to TCP address :3031 fd 3
> Python version: 2.7.2+ (default, Oct  4 2011, 20:41:12)  [GCC 4.6.1]
> Python main interpreter initialized at 0x230d2e0
> your server socket listen backlog is limited to 100 connections
> *** Operational MODE: preforking ***
> Traceback (most recent call last):
>   File "/opt/web2py/applications/app/modules/test.py", line 1, in <module>
>     from uwsgidecorators import *
> ImportError: No module named uwsgidecorators
> ImportError: Import by filename is not supported.



The problem is here, you do not have to import uwsgidecorators.py in that
way.
Be sure to have it in the pythonpath (--pp
/opt/web2py/applications/app/modules) and then you use the ---module
directive to load web2py

So:

--import -> import the code used by uwsgi api (the spooler in your case)
--module -> load the webapp (web2py)
--pp -> add a drectory to the pythonpath (you have to be sure that the
directory containing uwsgidecorators.py is added)


-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to