laptop and a wrench

Bogue

The raster .save() function holds onto a file it just saved and prevents it from being deleted.

Dernière publication: April 22, 2019 ArcGIS for Desktop
Numéro d’ID de bogue BUG-000105099
EnvoiMay 11, 2017
Dernière modificationJune 5, 2024
S’applique àArcGIS for Desktop
Version trouvée10.5
Système d’exploitationWindows OS
Version du système d’exploitation7
StatutWill Not Be Addressed

Informations supplémentaires

This is expected behavior. While Python is running and pointing to a raster object, that raster cannot be deleted. The object must be removed from the Python environment.

Solution de contournement

Use del to delete the raster saved by the .save function before using shutil.rmtree to delete the directory (Un-comment line30).

Étapes pour reproduire

ID de bogue: BUG-000105099

Logiciel:

  • ArcGIS for Desktop

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