[uWSGI] python plugin

Jose Jachuf jjachuf at gmail.com
Sun Jul 10 03:42:37 CEST 2016

FreeBSD 10.3
Python27 (default pyhon)
uwsgi 2.0.13 installed from ports [1]

I want to deploy a web application that runs on a virtualenv with python34.

My configuration file is:

socket =
protocol = http
chdir = /home/jose/trabajos/farmaenv/farma

virtualenv = /home/jose/trabajos/farmaenv/venv
##pythonpath = /home/jose/trabajos/farmaenv/venv
pythonpath = /home/jose/trabajos/farmaenv/venv/lib64/python3.4
pythonpath = /home/jose/trabajos/farmaenv/venv/lib64/python3.4/site-packages

module = wsgi
callable = application

no-site = true
master = true
processes = 2
uid = www
gid = www
chmod-socket = 664
vacuum = true

if I install uwsgi in virtualenv it works well. However, and I want to use
the system uwsgi.

For that and based on the documentation [2]

# cd /usr/ports/www/uwsgi
# make extract
# cd work/uwsgi-2.0.13
# python3.4 uwsgiconfig.py --plugin plugins/python core python34

With this got python34_plugin.so file

# cp python34_plugin.so /home/jose/trabajos/farmaenv/plugins/

Add the following to the configuration file:

plugins-dir = /home/jose/trabajos/farmaenv/plugins
plugin = python34

running wsgi:

# uwsgi -T --ini /home/jose/trabajos/farmaenv/farma/farma.ini
[uWSGI] getting INI configuration from
!!! UNABLE to load uWSGI plugin: ./python34_plugin.so: Undefined symbol
"uwsgi_route_api_func" !!!

Best Regards

[1] https://svnweb.freebsd.org/ports/head/www/uwsgi/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.unbit.it/pipermail/uwsgi/attachments/20160710/7ca652aa/attachment.html>

More information about the uWSGI mailing list