laptop and a wrench

Bug

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.

Last Published: January 31, 2023 ArcGIS Pro
Bug ID Number BUG-000154675
SubmittedDecember 21, 2022
Last ModifiedJune 9, 2025
Applies toArcGIS Pro
Version found3.0.3
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version Fixed2.2.0
StatusFixed

Workaround

  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.

Steps to Reproduce

Bug ID: BUG-000154675

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options