pip 安装的 uWSGI ./python_plugin.so 错误 [英] pip-installed uWSGI ./python_plugin.so error

查看:58
本文介绍了pip 安装的 uWSGI ./python_plugin.so 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 pip 安装了 uWSGI,并使用 XML 启动它以加载我的应用程序.XML 配置包含 python.在我的新服务器上,它导致错误:

I've installed uWSGI using pip and start it up with an XML to load my application. The XML config contains <plugin>python</plugin>. On my new server it leads to an error:

open("./python_plugin.so"): No such file or directory [core/utils.c line 3321]
!!! UNABLE to load uWSGI plugin: ./python_plugin.so: cannot open shared object file: No such file or directory !!!

我可以找到 .c.o 版本:

I can find the .c and the .o versions:

sudo find / -name 'python_plugin.c'
/srv/www/li/venv/build/uwsgi/build/uwsgi/plugins/python/python_plugin.c
/srv/www/li/venv/build/uwsgi/plugins/python/python_plugin.c
sudo find / -name 'python_plugin.o'
/srv/www/li/venv/build/uwsgi/build/uwsgi/plugins/python/python_plugin.o
/srv/www/li/venv/build/uwsgi/plugins/python/python_plugin.o
sudo find / -name 'python_plugin.so'

但没有找到 .so.我以前的系统通过 apt-get 安装了 uwsgi,但这真的很旧(我很确定它通常使用 uwsgi 安装的 pip,但也许不是用于共享对象?)

But no .so found. My previous system had a uwsgi install through apt-get, but that's really old (and I'm quite sure it uses the pip installed uwsgi normally, but maybe not for shared objects then?)

一些背景信息:

  • Ubuntu 12.0.4 LTS
  • Python 2.7(虚拟环境)
  • 我已经在我的 venv 中安装了 uWSGI,使用普通的 pip install uwsgi(没有 sudo)

所以我有点不知所措:(我不可能是世界上唯一拥有这个的人,对吗?我应该自己编译 .so 对象吗?(如果是这样,如何?) 或者还有其他好的解决方案吗?

So I'm a tad clueless :( I can't be the only person in the world to have this, right? Should I compile the .so objects myself? (If so, how?) Or is there another great solution?

推荐答案

发行版应该以模块化方式打包 uWSGI,将每个功能作为插件.但是当您使用特定于语言的方式(pip、gem...)安装时,相关语言已嵌入,因此您无需加载插件

Distros should package uWSGI in a modular way, with each feature as a plugin. But when you install using language specific ways (pip, gem...) the relevant language is embedded, so you do not need to load the plugin

这篇关于pip 安装的 uWSGI ./python_plugin.so 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆