laptop and a wrench

Error

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.

Última publicación: January 31, 2023 ArcGIS Pro
Número de ID del error BUG-000154675
EnviadoDecember 21, 2022
Última modificaciónJune 9, 2025
Relacionado conArcGIS Pro
Versión encontrada3.0.3
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
Versión corregida2.2.0
EstadoFixed

Solución alternativa

  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.

Pasos para reproducir

ID del error: BUG-000154675

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga