'The _imagingft C module is not installed' 当被 CUPS 调用时(_lp 或 root)
'The _imagingft C module is not installed' when called by CUPS (_lp or root)
OSX: 10.10.5
Python: 2.7
点冻结:PIL==1.1.7,枕头==2.0.0
酿造清单:freetype
我有一个 Python 脚本 运行ning 作为 /usr/libexec/cups/backend 中的 CUPS 后端。 运行 当我从终端提示以用户或 root 身份调用它时它很好...但是当 CUPS 通过打印机调用它时出现错误。
错误
The _imagingft C module is not installed
同样,当 运行以 root 或用户身份从终端提示符中打开它时,不会发生此错误。
我已经尝试通过将后端文件的权限分别更改为 755 和 750,以 _lp 和 root 的身份将其设置为 运行。观察 'ps' 确认当 755 时它 运行 是 _lp(用户 26),当设置为 750 时它 运行 是根用户(用户 0)。
Freetype、libjpg、PILlow 等都可以通过 pip 或 homebrew 正确安装。
我很茫然。
我错过了什么。
当它从 CUPS 运行s 时,有没有办法改变用户(虽然,再次,当我从终端提示 运行 它作为 root 时,它 运行很好)。
路径问题?我应该在哪里为 CUPS 更正这个?
谢谢。
我也试过了...
brew unlink freetype && brew link --overwrite freetype
没有效果。
尝试通过 Python Wheels 安装 Pillow:
pip install --upgrade pip
pip install wheel
pip uninstall Pillow
pip install --use-wheel Pillow
OSX: 10.10.5
Python: 2.7
点冻结:PIL==1.1.7,枕头==2.0.0
酿造清单:freetype
我有一个 Python 脚本 运行ning 作为 /usr/libexec/cups/backend 中的 CUPS 后端。 运行 当我从终端提示以用户或 root 身份调用它时它很好...但是当 CUPS 通过打印机调用它时出现错误。
错误
The _imagingft C module is not installed
同样,当 运行以 root 或用户身份从终端提示符中打开它时,不会发生此错误。
我已经尝试通过将后端文件的权限分别更改为 755 和 750,以 _lp 和 root 的身份将其设置为 运行。观察 'ps' 确认当 755 时它 运行 是 _lp(用户 26),当设置为 750 时它 运行 是根用户(用户 0)。
Freetype、libjpg、PILlow 等都可以通过 pip 或 homebrew 正确安装。
我很茫然。
我错过了什么。
当它从 CUPS 运行s 时,有没有办法改变用户(虽然,再次,当我从终端提示 运行 它作为 root 时,它 运行很好)。
路径问题?我应该在哪里为 CUPS 更正这个?
谢谢。
我也试过了...
brew unlink freetype && brew link --overwrite freetype
没有效果。
尝试通过 Python Wheels 安装 Pillow:
pip install --upgrade pip
pip install wheel
pip uninstall Pillow
pip install --use-wheel Pillow