arcgis python脚本代码集成到flask web带来的问题?

执行arcpy.mapping.ListDataFrames(mxd, "图层")报错:'NoneType' object has no attribute 'name'
主要原因是DataFrames集合里面多一条脏数据,看截图,有没有遇到过?独立执行脚本没问题,在Flask框架下就这样了
bug.png
已邀请:

许丹石

赞同来自:

既然你使用的开发不是arcgis API for Python 而是 arcpy。此问题与Enterprise产品无关。建议更改问题类别为arcpy

要回复问题请先登录注册