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相容性還不夠?