Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/355.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 无法转换<;字段>;出类拔萃_Python_Excel_Error Handling_Openpyxl_Jira Rest Api - Fatal编程技术网

Python 无法转换<;字段>;出类拔萃

Python 无法转换<;字段>;出类拔萃,python,excel,error-handling,openpyxl,jira-rest-api,Python,Excel,Error Handling,Openpyxl,Jira Rest Api,在从JIRA rest API将字段导入excel时,我经常遇到这个问题 我的输出结果是 [None, None, None, None, <JIRA Resolution: name='Fixed', id='1'>, None, None, <JIRA Resolution: name='Fixed', id='1'>, None, None, None, <JIRA Resolution: name='Done', id='10000'&

在从JIRA rest API将字段导入excel时,我经常遇到这个问题

我的输出结果是

[None,
 None,
 None,
 None,
 <JIRA Resolution: name='Fixed', id='1'>,
 None,
 None,
 <JIRA Resolution: name='Fixed', id='1'>,
 None,
 None,
 None,
 <JIRA Resolution: name='Done', id='10000'>,
 <JIRA Resolution: name='Done', id='10000'>,
 <JIRA Resolution: name='Done', id='10000'>,
 <JIRA Resolution: name='Done', id='10000'>,
错误是

    217         elif value is not None:
--> 218             raise ValueError("Cannot convert {0!r} to Excel".format(value))
    219 
    220         self._value = value

ValueError: Cannot convert <JIRA Resolution: name='Fixed', id='1'> to Excel
217 elif值不是无:
-->218 raise VALUERROR(“无法将{0!r}转换为Excel”。格式(值))
219
220自身价值=价值
ValueError:无法转换为Excel
    217         elif value is not None:
--> 218             raise ValueError("Cannot convert {0!r} to Excel".format(value))
    219 
    220         self._value = value

ValueError: Cannot convert <JIRA Resolution: name='Fixed', id='1'> to Excel