ken*_*nok 7 python django macos python-imaging-library
我正在尝试在我的机器上运行webapp/site,它在OSX 10.6.2上运行,我遇到了一些问题:
Caught an exeption while rending: The _imagingft C module is not installed
Run Code Online (Sandbox Code Playgroud)
在python中执行import _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
Run Code Online (Sandbox Code Playgroud)
似乎Freetype库是有问题的库.到目前为止,安装PIL或编译(?)jpeg和freetype库到目前为止没有错误.
我在django 1.1.1,python 2.6.2上.
小智 9
在(重新)安装PIL之前,添加以下sysmlinks以在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
Run Code Online (Sandbox Code Playgroud)
我也遇到过这个问题。无法使用 PIL 1.1.6 或 PIL 1.1.7 解决该问题。我从 ports 和 presto 安装了 py26-pil,它可以工作。
sudo port install py26-pil
Run Code Online (Sandbox Code Playgroud)
如果您没有端口,请访问http://www.macports.org/
| 归档时间: |
|
| 查看次数: |
4462 次 |
| 最近记录: |