laptop and a wrench

Bogue

RasterManager.add() fails to add image services.

Dernière publication: June 12, 2019 ArcGIS API for Python
Numéro d’ID de bogue BUG-000122655
EnvoiMay 28, 2019
Dernière modificationJune 28, 2025
S’applique àArcGIS API for Python
Version trouvée1.6.1
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
Version de correction1.9.0
StatutFixed

Solution de contournement

It is possible to resolve this issue by manually changing the source code, however only follow this instruction if it's required.

  1. Make a backup of the _layer.py file referenced in the runtime error (e.g. /opt/anaconda3/envs/gdal/lib/python3.6/site-packages/arcgis/raster/_layer.py).
  2. Open the original _layer.py file to perform edits.
  3. Locate the _add_rasters function.
  4. Modify the line that reads "service_url = [service_url]" to "service_url = service_url"
  5. Save changes (if using a Jupyter Notebook also restart the kernel).

 

After making the above changes the function works as expected with a service URL.

 

Étapes pour reproduire

ID de bogue: BUG-000122655

Logiciel:

  • ArcGIS API for Python

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