uwsgi can't find python plugin
17,088
Solution 1
I just ended up using Phusion Passenger to run my application. It was as simple as configuring and running Nginx.
Solution 2
You need to have the plugin installed.
sudo apt-get install uwsgi-plugin-python3
Solution 3
For ubuntu and python3: make sure the result of "which uwsgi" is: /usr/local/bin/uwsgi and remove the following settings in your .ini file: plugin=python3
Then try again.
Related videos on Youtube
Author by
Neel Boy
Updated on September 18, 2022Comments
-
Neel Boy over 1 year
I'm trying to deploy a python app to my Ubuntu 12.04.1 VPS running Nginx / uWSGI. I've setup my server following this guide. When I restart uWSGI I get this message:
nickd@my-vps:~$ sudo /etc/init.d/uwsgi restart [sudo] password for nickd: * Restarting app server(s) uwsgi [uWSGI] getting INI configuration from /usr/share/uwsgi/conf/default.ini [uWSGI] parsing config file /etc/uwsgi/apps-enabled/application.net.xml open("./python_plugin.so"): No such file or directory [core/utils.c line 4700] !!! UNABLE to load uWSGI plugin: ./python_plugin.so: cannot open shared object file: No such file or directory !!! Tue Dec 11 15:18:06 2012 - [WARNING] option "app" is deprecated: use the more advanced "mount" option
My application.net.xml:
<uwsgi> <plugin>python</plugin> <socket>/run/uwsgi/app/application.net/application.net.socket</socket> <pythonpath>/var/www/apps/application/</pythonpath> <app mountpoint="/"> <script>wsgi_configuration_module</script> </app> <master/> <processes>4</processes> <harakiri>60</harakiri> <reload-mercy>8</reload-mercy> <cpu-affinity>1</cpu-affinity> <stats>/tmp/stats.socket</stats> <max-requests>2000</max-requests> <limit-as>512</limit-as> <reload-on-as>256</reload-on-as> <reload-on-rss>192</reload-on-rss> <no-orphans/> <vacuum/> </uwsgi>
My INI config is default.
Any help getting uWSGI to load the python plugin would be appreciated.
-
Serguei Fedorov over 5 years"I used something else" is not a valid answer to this question.
-
Priyanka Khadgi almost 4 yearsThis is the most accurate way to verify what is going but will still create a problem is you application needs a library that only exists in virtual environment
-
appleyuchi almost 4 yearsI'm sorry that if you don't use python virtual environment
-
Priyanka Khadgi almost 4 yearsIn fact I uninstalled uwsgi from virtual environment. Your answer is giving a valuable advice for debugging that's why I upvoted it