我试图在我的机器上运行一个webapp/site,它在OSX 10.6.2上运行,我遇到了一些问题:
Caught an exeption while rending: The _imagingft C module is not installed在python中导入_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。
发布于 2010-05-06 16:06:10
我也遇到过这个问题。PIL 1.1.6和PIL 1.1.7都不能解决这个问题。我从端口和presto安装了py26-pil,它工作正常。
sudo port install py26-pil如果您没有端口,请转到http://www.macports.org/
发布于 2011-02-19 07:09:54
在(重新)安装PIL之前,添加以下sysmlink以在Mac 10.6 Snow Leopard上启用freetype:
ln -s /usr/X11/include/freetype2 /usr/local/include/
ln -s /usr/X11/include/ft2build.h /usr/local/include/
ln -s /usr/X11/lib/libfreetype.6.dylib /usr/local/lib/
ln -s /usr/X11/lib/libfreetype.6.dylib /usr/local/lib/libfreetype.dylib发布于 2010-05-28 23:10:32
我找到了解决这个问题的办法。
首先,您需要下载Freetype2 http://freetype.sourceforge.net/index2.html并按照以下说明进行编译,然后再编译libjpeg和PIL http://fightingrabbits.com/archives/266。
就是这样。
https://stackoverflow.com/questions/2478123
复制相似问题