Win7 64 位
Python 3.5.3
使用UEditor结合七牛SDK上传图片时候发现了
Traceback (most recent call last):
...
File "D:\Python\python34\lib\site-packages\qiniu\zone.py", line 124, in host_cache_file_path
return home + "/.qiniu_pythonsdk_hostscache.json"
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
原因是系统环境变量没有设置HOME
def host_cache_file_path(self):
home = os.getenv("HOME")
return home + "/.qiniu_pythonsdk_hostscache.json"
我想问一下这个是七牛的BUG呢,还是对Python3.x兼容性还不够?