laptop and a wrench

Bogue

The error message, "PermissionError: [Errno 13] Permission denied:" is returned when running a Python script to convert a file geodatabase to a ZIP file.

Dernière publication: January 6, 2022 ArcGIS Pro
Numéro d’ID de bogue BUG-000145328
EnvoiDecember 16, 2021
Dernière modificationMarch 28, 2025
S’applique àArcGIS Pro
Version trouvée2.7
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutWill Not Be Addressed

Informations supplémentaires

The .lock files are required for data access optimization. There is no reason to write .lock files into an archive. It is easy to update the code to accomplish this. In the innermost loop just before zipf.write, type `if os.path.splitext(file)[1] == ".lock": continue`.

Solution de contournement

  1. Run the script in the Python window or in ArcGIS Notebooks within ArcGIS Pro.
  2. Create the geodatabase within a separate process from the script to release the lock when the process closes.
  3. Zip the file within the same script.

Étapes pour reproduire

ID de bogue: BUG-000145328

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