Hi all, faced with such a problem.
There is a bot which sends a ZIP archive, it saves on my computer, and then have to unpack to another folder, and then have other actions... For this is a bash script which when run from the console, the whole thing works successfully (archive unpacked without errors and everything is OK).
But using the bot, this script is, from python, the whole thing looks like this:
proc = subprocess.Popen('test.sh', stdout=subprocess.PIPE)
output = proc.stdout.read()
result = output
Error in logs following:
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
the latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of (the path to the archive), period.