Enviroment: 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: [uwsgi] socket = 127.0.0.1:9002 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 /home/jose/trabajos/farmaenv/farma/farma.ini !!! UNABLE to load uWSGI plugin: ./python34_plugin.so: Undefined symbol "uwsgi_route_api_func" !!! Best Regards José [1] https://svnweb.freebsd.org/ports/head/www/uwsgi/ [2] http://uwsgi-docs.readthedocs.io/en/latest/WSGIquickstart.html#bonus-multiple-python-versions-for-the-same-uwsgi-binary
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
