Ubuntu 13.10 下 Python2.7版 PIL 的一个bug修复
2014-04-05 12:12
337 查看
报错为:
解决方法,参考这个网址:
https://github.com/jj1bdx/wspr/tree/master/FIX-Ubuntu-13.04
将上面的ImageDraw.py替换原来的即可:
https://github.com/python-imaging/Pillow/blob/1f41e25b4feec620ad32e8b3a9b28466f63b3afe/PIL/ImageDraw.py
替换到 下面的目录下, 注意修改权限为644,
同时要将该目录下的ImageDraw.pyc删除
Traceback (most recent call last): File "twrp_font3.py", line 43, in <module> text.text(((width_en-text_size[0])/2,y_en), en[i], 255, font_en) File "/usr/lib/python2.7/dist-packages/PIL/ImageDraw.py", line 256, in text ink, fill = self._getink(fill) File "/usr/lib/python2.7/dist-packages/PIL/ImageDraw.py", line 144, in _getink if self.palette and not Image.isNumberType(ink): AttributeError: 'module' object has no attribute 'isNumberType'
解决方法,参考这个网址:
https://github.com/jj1bdx/wspr/tree/master/FIX-Ubuntu-13.04
将上面的ImageDraw.py替换原来的即可:
https://github.com/python-imaging/Pillow/blob/1f41e25b4feec620ad32e8b3a9b28466f63b3afe/PIL/ImageDraw.py
替换到 下面的目录下, 注意修改权限为644,
同时要将该目录下的ImageDraw.pyc删除
/usr/lib/python2.7/dist-packages/PIL/
相关文章推荐
- 本地化环境下ArcGIS Python API中的SSL及locale的bug修复过程
- 学习python 的一个bug
- 我用4年时间解决了Python GIL的一个bug...
- 2007.06.05 最佳分割阈值,修复一个bug
- 初学python:Ubuntu安装一个可视编程IDE
- 关于glusterfs-3.0.4中AFR修复的一个bug
- Python: Ubuntu14下用PyInstaller打包.py成一个单独的可执行文件_20160701_七侠镇莫尛貝
- Ubuntu 13.10 下安装python 3.3 IDLE
- python安装第三方包之后无法导入相应模块(一个容易忽略的bug)
- 第三方开源动画库EasyAnimation中一个小bug的修复
- 修复ubuntu下因indicator applet的bug导致VNC客户端无法输入s和m的方法
- ubuntu 下从一个python文件中调用另外的一个python文件中的类!
- 第三方开源动画库EasyAnimation中一个小bug的修复
- 使用patch修补python中serial.tools中的一个Bug
- linux内核4.8.1于10月7日发布,Linus Torvalds修复了4.8版里一个新bug
- 开源验证码程序 Securimage 3.0 的一个小bug修复
- Android一个权限相关的bug修复过程
- 可能是python 2.3中的一个bug
- 修复 ThinkPHP3.2.3 抛出异常模块的一个BUG,关闭字段缓存功能
- 关于ios横竖屏显示不正常的一个Bug修复