Open GioPetry opened 4 years ago
Well it seems it can only be extracted by command line, My bad
Even I am facing the same issue
I got this today, calling the UnZip().
# My import with alias
from pyminizip import (
compress as ZipOne,
compress_multiple as ZipMany,
uncompress as UnZip)
# unzipping the file (single XLSX)
logger.error("Descompactando {} ...".format(zipFilename))
UnZip(zipFilename, ZipPWD, gettempdir(), 1)
if os.path.exists(xlsxFilename):
logger.error("Criado {} ...".format(xlsxFilename))
My SYSOUT shows:
2021-01-20 13:21:40.418 | ERROR | __main__:despachar_email_reiterando_preaprovacao:527 - Descompactando C:\Users\Willian\AppData\Local\Temp\PreApproval.20210119.zip ...
C:/Users/Willian/Projetos/inventario-digicert/__main__.py:528: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
UnZip(zipFilename, ZipPWD, gettempdir(), 1)
2021-01-20 13:21:40.418 | ERROR | __main__:despachar_email_reiterando_preaprovacao:530 - Criado C:\Users\Willian\AppData\Local\Temp\PreApproval.20210119.xlsx ...
But the XLSX file is there. The UnZip works just fine! It still bother me this ugly Warning! I wanna strip it out!
Hi There, here is my code:
This way and with singular file compress works flawlessy, BUT if I change the last line adding a password like
it acts really weird like it is asking the password for EACH FILE inside the folder; and it works just for the first one, if I type for the second it doesn't, look:
What's causing this? Thanks
N.B. Even in the cases it works I get this warning