laptop and a wrench

Error

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

Última publicación: January 6, 2022 ArcGIS Pro
Número de ID del error BUG-000145328
EnviadoDecember 16, 2021
Última modificaciónMarch 28, 2025
Relacionado conArcGIS Pro
Versión encontrada2.7
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoWill Not Be Addressed

Información adicional

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`.

Solución alternativa

  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.

Pasos para reproducir

ID del error: BUG-000145328

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