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, 2022ArcGIS 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`.
解决办法
Run the script in the Python window or in ArcGIS Notebooks within ArcGIS Pro.
Create the geodatabase within a separate process from the script to release the lock when the process closes.