> Hi,
>
> I installed uwsgi using the below on ubuntu.
>
> sudo UWSGI_PROFILE=gevent pip install --upgrade
> http://projects.unbit.it/downloads/uwsgi-lts.tar.gz
>
>
> I go to python and this is what I get.  Am I missing something?
>
>
>
> import uwsgi
> from uwsgidecorators import *
>
> @timer(30, target='spooler')
> def hello_world(signum):
>     print("30 seconds elapsed")
>
> Traceback (most recent call last)
>     import uwsgi
> ImportError: No module named uwsgi
>
> Thanks
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>

the uwsgi module is added to the python environment by the uWSGI server.
You cannot access it from outside uWSGI.

To have a shell-like prompt in the uWSGI environment you can use the
--pyshell option:


uwsgi --socket <foobar> --master --workers 2 --pyshell

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

Reply via email to