Created
July 10, 2018 14:00
-
-
Save jackdesert/3015200944599fe2f13853287ad4e670 to your computer and use it in GitHub Desktop.
pip install uwsgi - python3_plugin.so no found
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 !!! |
The reference to the python plugin in production.ini
is not needed with the pip-installed uwsgi – Python support is baked into the binary.
thx~
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update: looks like passing the complete path helps in the ini file, eg.:
(but now it complains about an
undefined symbol: uwsgi_legion_scrolls
, probably due to a version mismatch)