我試圖在我的機器上運行webapp/site,它在OSX 10.6.2上運行,我遇到了一些問題:在pythonDjango/PIL錯誤 - 在呈現時捕獲到異常:_imagingft C模塊未安裝
Caught an exeption while rending: The _imagingft C module is not installed
做進口_imagingft給了我這樣的:
>>> import _imagingft
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/Library/Python/2.6/site-packages/PIL/_imagingft.so,
2): Symbol not found: _FT_Done_Face
Referenced from: /Library/Python/2.6/site-packages/PIL/_imagingft.so
Expected in: flat namespace
in /Library/Python/2.6/site-packages/PIL/_imagingft.so
這似乎FreeType庫是有問題的人。到目前爲止,在安裝PIL或編譯(?)jpeg和freetype庫時目前沒有錯誤。
我在Django 1.1.1上,python 2.6.2。
你是怎麼安裝PIL? – 2010-03-19 16:00:52
我在XP上運行Python 2.6的PIL 1.1.7時遇到了同樣的錯誤。如果沒有解決方案,請嘗試使用PIL 1.1.6。 – 2010-03-19 16:04:46
@Dmitry 使用sudo蟒蛇的setup.py安裝 – kenok 2010-03-19 16:43:08