• Bug#1109812: Bookworm uwsgi-plugin-python3 2.0.21-5.1 , filename of mod

    From VisionOK@21:1/5 to All on Thu Jul 24 09:20:01 2025
    This is a multi-part message in MIME format.

    Package: uwsgi-plugin-python3
    Version: 2.0.21-5.1

    when loading python module in uwsgi, uwsgi expects to find it in:

    /usr/lib/uwsgi/plugins/python_plugin.so

    But uwsgi-plugin-python3 only provides:

    /usr/lib/uwsgi/plugins/python3_plugin.so

    which is a symlink to

    /etc/alternatives/uwsgi-plugin-python3

    To make loading python module work I had to manually create another symlink with the
    name that uwsgi expects:

    python_plugin.so -> /etc/alternatives/uwsgi-plugin-python3


    Fix either uwsgi-plugin-python3 or uwsgi so they both provide and refer to the same file.


    thanks
    --
    VisionOK

    <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;">Package: uwsgi-plugin-python3</span></p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Version: 2.0.21-5.1</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">when loading python module in uwsgi, uwsgi expects to find it in:</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">/usr/lib/uwsgi/plugins/python_plugin.so</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">But uwsgi-plugin-python3 only provides:</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">/usr/lib/uwsgi/plugins/python3_plugin.so</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">which is a symlink to</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">/etc/alternatives/uwsgi-plugin-python3</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">To make loading python module work I had to manually create another symlink with the name that uwsgi expects:</p>
    <br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">python_plugin.so -&gt; /etc/alternatives/uwsgi-plugin-python3</p>
    <br /><br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Fix either uwsgi-plugin-python3 or uwsgi so they both provide and refer to the same file.</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>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From VisionOK@21:1/5 to All on Mon Jul 28 09:50:01 2025
    This is a multi-part message in MIME format.

    On Saturday, 26 July 2025 09:07:42 HKT Alexandre Rossi wrote:

    It is not clear to me why you say uwsgi _expects_ the python module as python_plugin.so

    On Debian, the python module has always designated the python2 module, and has been removed when python2 support was dropped.

    As far as I know, uwsgi expecting a module named python comes from either your conf or your command line arguments. How do you launch uwsgi?

    When I launch uwsgi using:

    uwsgi --plugin python,http --http-socket :9090 --queue-blocksize 65000 --wsgi-file /tmp/
    foobar.py

    it will fail to launch with the following error:

    ###
    open("/usr/lib/uwsgi/plugins/python_plugin.so"): No such file or directory [core/utils.c
    line 3731]
    !!! UNABLE to load uWSGI plugin: /usr/lib/uwsgi/plugins/python_plugin.so: cannot open
    shared object file: No such file or directory !!!
    uwsgi: unrecognized option '--wsgi-file'
    getopt_long() error
    ###

    When I add the symlink (as noted previously)

    python_plugin.so -> /etc/alternatives/uwsgi-plugin-python3

    then uswgi launches and runs fine.


    thanks
    --
    VisionOK

    <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;">&gt; 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;">&gt; python_plugin.so</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; 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;">&gt; has been removed when python2 support was dropped.</p>
    <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; </p> <p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt; 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;">&gt; 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(&quot;/usr/lib/uwsgi/plugins/python_plugin.so&quot;): 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 -&gt; /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>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)