Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
304 views
in Technique[技术] by (71.8m points)

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

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?

question from:https://stackoverflow.com/questions/20176959/uwsgi-no-request-plugin-is-loaded-you-will-not-be-able-to-manage-requests

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...