OpenScanEu/OpenScan

ZIP64 extensions error

Opened this issue · 1 comments

I remember having this error in before but it wasn't (somehow) causing any issue :

Dec  1 14:42:16 OpenScanPi Node-RED[269]: 1 Dec 14:42:16 - [error] [python3-function:Run Routine] Traceback (most recent call last):
Dec  1 14:42:16 OpenScanPi Node-RED[269]:   File "<string>", line 269, in <module>
Dec  1 14:42:16 OpenScanPi Node-RED[269]: 1 Dec 14:42:16 - [error] [python3-function:Run Routine]   File "<string>", line 248, in python_function
Dec  1 14:42:16 OpenScanPi Node-RED[269]:   File "<string>", line 166, in zip
Dec  1 14:42:16 OpenScanPi Node-RED[269]:   File "/usr/lib/python2.7/zipfile.py", line 824, in __exit__
Dec  1 14:42:16 OpenScanPi Node-RED[269]: 1 Dec 14:42:16 - [error] [python3-function:Run Routine]     self.close()
Dec  1 14:42:16 OpenScanPi Node-RED[269]:   File "/usr/lib/python2.7/zipfile.py", line 1371, in close
Dec  1 14:42:16 OpenScanPi Node-RED[269]: 1 Dec 14:42:16 - [error] [python3-function:Run Routine]     " would require ZIP64 extensions")
Dec  1 14:42:16 OpenScanPi Node-RED[269]: zipfile.LargeZipFile: Central directory offset would require ZIP64 extensions
Dec  1 14:42:16 OpenScanPi Node-RED[269]: 1 Dec 14:42:16 - [error] [python3-function:Run Routine] Python Function process exited with code 1
Dec  1 14:42:16 OpenScanPi Node-RED[269]: 1 Dec 14:42:16 - [info] [python3-function:Run Routine] Python function 'Run Routine' running on PID 3146

I fixed it by going into Run Routine module on scan tab

line 101

    with ZipFile("/home/pi/shared/temp.zip", "a", allowZip64=True) as zip:

to

    with ZipFile("/home/pi/shared/temp.zip", "a") as zip:

There might be a reason it tried to make a > 2^31 bits file.

It tried to generate a file for some reason with all the unreferenced pictures in it.
The archive weights ~2gb but only "contains 4 pics"


But when you open it with 7zip, it shows much more files :