Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

uWSGI: No request plugin is loaded, you will not be able to manage requests

Tags:

python

uwsgi

I've loaded uWSGI v 1.9.20, built from source. I'm getting this error, but how do I tell which plugin is needed?

!!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!! no request plugin is loaded, you will not be able to manage requests. you may need to install the package for your language of choice, or simply load it with --plugin. !!!!!!!!!!! END OF WARNING !!!!!!!!!! 

Which plugin should be loaded?

like image 626
101010 Avatar asked Nov 24 '13 16:11

101010


2 Answers

I had this problem and was stuck for hours.

Python2

My issue is different than the answer listed, make sure you have plugins = python in your uwsgi .ini file and you install the uwsgi python plugin:

sudo apt-get install uwsgi-plugin-python 

Python3

If you're using Python3, use the same approach and do:

sudo apt-get install uwsgi-plugin-python3 

then add plugins = python3 inside your uwsgi .ini file.


After I did the above my application worked. Obviously this is for python projects, but a similar approach is required for other projects.

like image 69
KVISH Avatar answered Sep 20 '22 17:09

KVISH


It might be easiest to install uwsgi through pip instead of the package manager from the OS you're using, the package in pip is usually more up to date than the package managers from the OS you might be using:

sudo pip install uwsgi 

This solved it for me anyway.

For using multiple Python versions on the same server, I would advice to take a look at virtualenv:
https://virtualenv.pypa.io/en/latest/

like image 41
gitaarik Avatar answered Sep 19 '22 17:09

gitaarik