Install uwsgi with plugins using 'pip'

I installed uwsgi using pip install uwsgi .

When I start uwsgi, I get a couple of errors. The command I run is uwsgi --master --emperor /etc/uwsgi/apps-enabled --die-on-term --uid www-data --gid www-data .

It seems like I'm missing the http and python plugins:

  [uWSGI] getting INI configuration from component_tracking_test.ini
 open ("./ http_plugin.so"): No such file or directory [core / utils.c line 3347]
 !!!  UNABLE to load uWSGI plugin: ./http_plugin.so: cannot open shared object file: No such file or directory !!!
 open ("./ python_plugin.so"): No such file or directory [core / utils.c line 3347]
 !!!  UNABLE to load uWSGI plugin: ./python_plugin.so: cannot open shared object file: No such file or directory !!!
 [emperor] removed uwsgi instance component_tracking_test.ini

How to install the necessary plugins, given that I installed uwsgi via pip?

+6
source share
2 answers

When I add "--binary-path / usr / local / bin / uwsgi" to the command (change the path to your wsgi garbage), the error disappears.

from document

binary-path argument: string

Force the binary path.

If you do not have uWSGI in the system path, you can force its path using this option to allow the reload system and it is easy for the Emperor to find the executable file.

+1
source

I had a similar problem and the reason was that I was running sudo uwsgi without realizing that sudo would not respect PATH and would run system-wide uwsgi . See this answer .

0
source

Source: https://habr.com/ru/post/944394/


All Articles