<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-size:0.83em;">On Saturday, 26 July 2025 09:07:42 HKT Alexandre Rossi wrote:</span></p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> It is not clear to me why you say uwsgi _expects_ the python module as</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> python_plugin.so</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> On Debian, the python module has always designated the python2 module, and</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> has been removed when python2 support was dropped.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> As far as I know, uwsgi expecting a module named python comes from either</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> your conf or your command line arguments. How do you launch uwsgi?</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">When I launch uwsgi using:</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="font-family:Hack;">uwsgi --plugin python,http --http-socket :9090 --queue-blocksize 65000 --wsgi-file /tmp/foobar.py</span></p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">it will fail to launch with the following error:</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">###</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">open("/usr/lib/uwsgi/plugins/python_plugin.so"): No such file or directory [core/utils.c line 3731]                   </p>
<p style="margin-top:12;margin-bottom:12;margin-left:0;margin-right:0;">!!! UNABLE to load uWSGI plugin: /usr/lib/uwsgi/plugins/python_plugin.so: cannot open shared object file: No such file or directory !!!</p>
<p style="margin-top:12;margin-bottom:12;margin-left:0;margin-right:0;">uwsgi: unrecognized option '--wsgi-file'                   </p>
<p style="margin-top:12;margin-bottom:12;margin-left:0;margin-right:0;">getopt_long() error</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">###</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">When I add the symlink (as noted previously)</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">python_plugin.so -> /etc/alternatives/uwsgi-plugin-python3</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">then uswgi launches and runs fine.</p>
<br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">thanks</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">-- </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">VisionOK</p>
</body>
</html>