Open glider126 opened 5 years ago
Environment:
Request Method: POST Request URL: http://192.168.41.122:9000/cabinet/%E5%8C%97%E4%BA%AC%E5%8C%97%E8%8B%91IDC%E6%9C%BA%E6%88%BF/%E5%8C%97%E4%BA%AC%E5%8C%97%E8%8B%91IDC%E6%9C%BA%E6%88%BF/import_cabinet/
Django Version: 1.11 Python Version: 3.6.5 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'dc_info.apps.DcInfoConfig', 'dc_user.apps.DcUserConfig', 'xadmin', 'crispy_forms', 'reversion'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'middleware.login.IsLoginMiddleware']
Traceback:
File "/usr/lib/python3.6/site-packages/openpyxl/reader/excel.py" in _validate_archive
File "/usr/lib64/python3.6/zipfile.py" in init
File "/usr/lib64/python3.6/zipfile.py" in _RealGetContents
During handling of the above exception (File is not a zip file), another exception occurred:
File "/usr/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
File "/root/IDC_Manage-master/dc_info/views/cabinet.py" in import_cabinet
File "/root/IDC_Manage-master/dc_info/utils/handel_excel.py" in handel_import_cabinet
File "/usr/lib/python3.6/site-packages/openpyxl/reader/excel.py" in load_workbook
Exception Type: BadZipFile at /cabinet/xxxIDC机房/xxxIDC机房/import_cabinet/ Exception Value: File is not a zip file
Environment:
Request Method: POST Request URL: http://192.168.41.122:9000/cabinet/%E5%8C%97%E4%BA%AC%E5%8C%97%E8%8B%91IDC%E6%9C%BA%E6%88%BF/%E5%8C%97%E4%BA%AC%E5%8C%97%E8%8B%91IDC%E6%9C%BA%E6%88%BF/import_cabinet/
Django Version: 1.11 Python Version: 3.6.5 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'dc_info.apps.DcInfoConfig', 'dc_user.apps.DcUserConfig', 'xadmin', 'crispy_forms', 'reversion'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'middleware.login.IsLoginMiddleware']
Traceback:
File "/usr/lib/python3.6/site-packages/openpyxl/reader/excel.py" in _validate_archive
File "/usr/lib64/python3.6/zipfile.py" in init
File "/usr/lib64/python3.6/zipfile.py" in _RealGetContents
During handling of the above exception (File is not a zip file), another exception occurred:
File "/usr/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
File "/root/IDC_Manage-master/dc_info/views/cabinet.py" in import_cabinet
File "/root/IDC_Manage-master/dc_info/utils/handel_excel.py" in handel_import_cabinet
File "/usr/lib/python3.6/site-packages/openpyxl/reader/excel.py" in load_workbook
File "/usr/lib/python3.6/site-packages/openpyxl/reader/excel.py" in _validate_archive
File "/usr/lib64/python3.6/zipfile.py" in init
File "/usr/lib64/python3.6/zipfile.py" in _RealGetContents
Exception Type: BadZipFile at /cabinet/xxxIDC机房/xxxIDC机房/import_cabinet/ Exception Value: File is not a zip file