laptop and a wrench

Bogue

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.

Dernière publication: January 31, 2023 ArcGIS Pro
Numéro d’ID de bogue BUG-000154675
EnvoiDecember 21, 2022
Dernière modificationJune 9, 2025
S’applique àArcGIS Pro
Version trouvée3.0.3
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
Version de correction2.2.0
StatutFixed

Solution de contournement

  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.

Étapes pour reproduire

ID de bogue: BUG-000154675

Logiciel:

  • ArcGIS Pro

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement