Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jackdesert/3015200944599fe2f13853287ad4e670 to your computer and use it in GitHub Desktop.
Save jackdesert/3015200944599fe2f13853287ad4e670 to your computer and use it in GitHub Desktop.
pip install uwsgi - python3_plugin.so no found
# Install System-wide
sudo apt install -y uwsgi-core uwsgi-plugin-python3
# Run system uwsgi: this works!
$ cd ~/myproject
$ uwsgi --ini production.ini
[uWSGI] getting INI configuration from production.ini
# Install uwsgi via pip
# (A virtual environment is set up in "env/")
cd ~/myproject
env/bin/python3 -m pip install uwsgi
# Run pip-installed uwsgi:
$ env/bin/uwsgi --ini production.ini
[uWSGI] getting INI configuration from production.ini
open("./python3_plugin.so"): No such file or directory [core/utils.c line 3721]
!!! UNABLE to load uWSGI plugin: ./python3_plugin.so: cannot open shared object file: No such file or directory !!!
@afreepenguin
Copy link

You ever solve this?

@MoonCactus
Copy link

Yep same issue here ...

@MoonCactus
Copy link

MoonCactus commented Nov 17, 2022

Update: looks like passing the complete path helps in the ini file, eg.:

plugins = /usr/lib/uwsgi/plugins/python310_plugin.so

(but now it complains about an undefined symbol: uwsgi_legion_scrolls, probably due to a version mismatch)

@janedenone
Copy link

janedenone commented May 27, 2024

The reference to the python plugin in production.ini is not needed with the pip-installed uwsgi – Python support is baked into the binary.

@artmaniac
Copy link

thx~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment