为了能快速了解并处理您的问题,请提供以下基础信息:
问题描述:数据库导入sql文件,提示[url=]zipfile.BadZipFile: File is not a zip file[/url]
相关截图(日志、错误):Traceback (most recent call last): File "/www/server/panel/BTPanel/__init__.py", line 2302, in publicObject res = run_obj.run(toObject, defs, get) File "/www/server/panel/BTPanel/__init__.py", line 2249, in run result = getattr(toObject, get.action)(get) File "class/database.py", line 1119, in InputSql if self.is_zip_password_protected(file): File "class/database.py", line 1092, in is_zip_password_protected zf = zipfile.ZipFile(zip_file_path) File "/www/server/panel/pyenv/lib/python3.7/zipfile.py", line 1258, in __init__ self._RealGetContents() File "/www/server/panel/pyenv/lib/python3.7/zipfile.py", line 1325, in _RealGetContents raise BadZipFile("File is not a zip file")zipfile.BadZipFile: File is not a zip file
|
|