Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UNABLE to load uWSGI plugin: ./python3_plugin.so: cannot open shared object file: No such file or directory

On my Fedora workstation, I'm getting this error:

!!! UNABLE to load uWSGI plugin: ./python3_plugin.so: cannot open shared object file: No such file or directory !!!

But on the server (CentOS Linux) it works fine.

To get around this, I need to say this in my uwsgi.ini file

plugins-dir = /usr/lib64/uwsgi/
plugins = python3

But on the server, I can just do this:

plugins = python3

On my workstation, I did uninstall/reinstall uwsgi using dnf. I do have the python plugin installed in the /usr/lib64/uwsgi folder. It came from dnf install uwsgi-plugin-python3

I'm confused.

like image 399
101010 Avatar asked Jan 08 '17 17:01

101010


1 Answers

This worked for me. Example path: (Note: No / at the end)

plugins-dir = /usr/local/lib/uwsgi

plugins         = python37

and make sure that your python37_plugin.so file is inside the /usr/local/lib/uwsgi folder

like image 152
Sam NKH Avatar answered Sep 23 '22 14:09

Sam NKH