python使用PIL库报错,'NoneType' object has no attribute 'bands'
来源:互联网 发布:手立视高清网络摄像机 编辑:程序博客网 时间:2024/06/04 22:48
使用PIL库跑一个图片处理脚本,遇到'NoneType' object has no attribute 'bands'报错,报错截图如下:
这个应该是Image库的一个bug,解决方案是,定位到Image库中Image.py代码的split方法,进行如下修改:
然后再运行脚本就ok咯~
0 0
- python使用PIL库报错,'NoneType' object has no attribute 'bands'
- python PIL bug: 'NoneType' object has no attribute 'bands' (解决)
- python : 'NoneType' object has no attribute 'recv'
- Python: Attribute Error - 'NoneType' object has no attribute 'something'
- python __def__ Exception AttributeError: "'NoneType' object has no attribute
- python __def__ Exception AttributeError: "'NoneType' object has no attribute
- [Python][转]Exception AttributeError: "'NoneType' object has no attribute
- python提示AttributeError: 'NoneType' object has no attribute 'append'
- AttributeError: ‘NoneType’ object has no attribute ‘clone’
- AttributeError: 'NoneType' object has no attribute 'clone'
- AttributeError: 'NoneType' object has no attribute
- AttributeError: 'NoneType' object has no attribute 'startswith'
- python爬虫时 AttributeError: 'NoneType' object has no attribute 'children'错误提示
- python文件运行报错: 'NoneType' object has no attribute 'TF_DeleteStatus'
- Exception AttributeError: "'NoneType' object has no attribute
- scapy AttributeError: 'NoneType' object has no attribute 'route'解决办法
- selenium 2.0 'NoneType' object has no attribute 'send_keys'
- AttributeError: 'NoneType' object has no attribute 'sc' 解决方法!
- PHP实用方法
- 深入浅出linux系统umask值及其对应的文件权限讲解
- h264码率设定建议
- bindservice流程梳理
- maven跳过单元测试-maven.test.skip和skipTests的区别
- python使用PIL库报错,'NoneType' object has no attribute 'bands'
- XCODE常用调试方法
- 15个数的大小
- python异常处理基础笔记
- 基于TMS320F28335的运动控制器--开发与调试记录2
- memcached全面剖析--2.理解memcached的内存存储
- Spinner相互监听关联
- 2015-2016 下半学期 第二周 训练(2)
- Jenkins+Maven+SVN快速搭建持续集成环境(转)