laptop and a wrench

漏洞

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, 2023 ArcGIS 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

解决办法

  1. Under ArcGIS Pro's active conda environment, open the file, "Lib/site-packages/arcgis/mapping/_types.py".
  2. Comment out line 31, the line that starts with StreamLayer.
  3. Add the line "from arcgis.realtime import StreamLayer".
  4. Restart ArcGIS Pro.

重现步骤

漏洞 ID: BUG-000154675

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项