The add_layer function from the WebMap class of the arcgis.mapping module returns the error message, "ModuleNotFoundError: No module named 'arcgis.realtime.StreamLayer'" when running in ArcGIS Pro 3.0.x.
上次发布: January 31, 2023ArcGIS Pro
漏洞 ID 编号
BUG-000154675
已提交
December 21, 2022
上次修改时间
June 9, 2025
适用范围
ArcGIS Pro
找到的版本
3.0.3
操作系统
Windows OS
操作系统版本
10.0 64 Bit
修正版本
2.2.0
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
Under ArcGIS Pro's active conda environment, open the file, "Lib/site-packages/arcgis/mapping/_types.py".
Comment out line 31, the line that starts with StreamLayer.
Add the line "from arcgis.realtime import StreamLayer".