我使用PIP和使用XML啓動它加載我的應用程序安裝uWSGI。 XML配置包含<plugin>python</plugin>
。在我的新的服務器它導致了一個錯誤:PIP安裝uWSGI ./python_plugin.so錯誤
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
版本:
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'
但是,沒有。所以發現。我以前的系統有一個uwsgi安裝通過apt-get的,但是這是真的老了(我敢肯定它採用了PIP安裝uwsgi正常,但也許不是共享對象呢?)
一些背景資料:
- Ubuntu的LTS 12.0.4
- Python 2.7版(的virtualenv)
- 我已經在我的VENV安裝uWSGI,使用正常
pip install uwsgi
(無sudo
)
所以我有點無知:(我不能是世界上唯一擁有這個的人,對嗎?我應該自己編譯.so
對象嗎? (如果是這樣,如何?)或者是否有另一個很好的解決方案?
所以......我從XML文件中刪除了蟒蛇 ,現在加載...但我不瞭解爲什麼/何時需要。還要檢查它是否真的*現在可以工作 –
Carst
2013-04-10 21:27:06