我想在我的项目中使用python3.4,但是我收到了错误:
!!!无法加载uWSGI插件:./ python34_plugin.so:未定义的符号:spool_request !!!
我在dir中有文件,但它只是不起作用。
uwsgi
#mysite_uwsgi.ini file
[uwsgi]
# Django-related settings
# the base directory (full path)
chdir = /data/mysite/project
# Django's wsgi file
wsgi-file = /data/mysite/project/mysite/wsgi.py
# the virtualenv (full path)
home = /data/mysite/venv/pt3
# master
master = True
plugins-dir = /usr/lib/uwsgi/plugins
plugins = python34
# maximum number of worker processes
processes = 5
# the socket
socket = /tmp/mysite.sock
# ... with appropriate permissions - may be needed
chmod-socket = 666
# clear environment on exit
vacuum = true
# account to start process
uid = root
gid = root
# Output messages to log
daemonize=/var/log/uwsgi/mysite.log
PS。对不起我的英文
答案 0 :(得分:1)
您可能使用了不同的uWSGI构建配置文件或源代码版本来构建您的python插件和uwsgi二进制文件。
要修复该问题,请克隆您要使用的uWSGI版本的源代码并编译它并使用正确的插件:
make buildprofile
PYTHON=python3.4 ./uwsgi --build-plugin "plugins/python python34"
执行此操作后,停止系统中的所有uWSGI服务器,用新构建的服务器替换系统中的uWSGI二进制文件,用新服务器替换python 3.4的插件并再次启动uWSGI。