I am using bottle as my framework. So, for testing I assume then?
Then when I run uwsgi on the socket then all is well?
try:
from uwsgidecorators import *
import uwsgi
except:
pass
On Wed, Jun 13, 2012 at 3:59 PM, Roberto De Ioris <[email protected]> wrote:
>
>> 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
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi