laptop and a wrench

漏洞

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

上次发布: January 6, 2022 ArcGIS Pro
漏洞 ID 编号 BUG-000145328
已提交December 16, 2021
上次修改时间March 28, 2025
适用范围ArcGIS Pro
找到的版本2.7
操作系统Windows OS
操作系统版本10.0 64 Bit
状态Will Not Be Addressed

附加信息

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

解决办法

  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.

重现步骤

漏洞 ID: BUG-000145328

软件:

  • ArcGIS Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项