Have re-installed and re installed and cleared data.caches and reinstalled its endless. Both the Diggz Add on and Chief Wizard install. THE SELECTED BUILD will install but once it extracts files theERROR message appears. check log. In doing that the ERROR is Python Cpp. 'zipile. BadZip file. Time after time after time in hundreds of updates about 6 days now CANNOT INSTALL Diggz Xenon v1,7 AIO Debrid Only.
3 URLS that exactly the same problem happens from, all installing right up until file extraction when same Error is shown.
https://nebulous42069.github.io/diggz https://tinyurl.com/diggz123 http://diggz1.me/diggzrepo.
Others will be experiencing this too and simply moving to other builds that install. In this DIGGZ inner sanctum surely someone can fix Thanks.
𝐃𝐢𝐠𝐠𝐳 𝐃𝐢𝐠𝐠𝐳 𝐃𝐢𝐠𝐠𝐳 𝐚𝐫𝐞 𝐲𝐨𝐮 𝐭𝐡𝐞𝐫𝐞 𝐚𝐬 𝐭𝐡𝐢𝐬 𝐢𝐬 𝐬𝐭𝐨𝐩𝐩𝐢𝐧𝐠 𝐦𝐲𝐬𝐞𝐥𝐟 𝐚𝐧𝐝 𝐩𝐫𝐨𝐛𝐛𝐥𝐲 𝐦𝐚𝐧𝐲 𝐨𝐭𝐡𝐞𝐫𝐬, 𝐟𝐫𝐨𝐦 𝐈𝐧𝐬𝐭𝐚𝐥𝐥𝐢𝐧𝐠 𝐭𝐡𝐞 𝐰𝐨𝐧𝐝𝐞𝐫𝐟𝐮𝐥 𝐃𝐢𝐠𝐠𝐳 𝐛𝐮𝐢𝐥𝐝𝐬 𝐨𝐧 𝟏,𝟕 𝐯.𝐩𝐝𝐚𝐭𝐞.
TOOK THIS FROM 'GOOGLE' can you address please ?
Unable to open zip file in Python - BadZipFile error
Asked 10 years, 11 months ago
Modified 10 years, 11 months ago
Viewed 1k times
0
When I create a zip file and try to open it in the same python code, why do I get BadZipFile error?
zip_file = "C:/Temp/tst_data_1022.txt"
filePath, fileName = os.path.split(zip_file)
baseFileName, fileExt = os.path.splitext(fileName)
destFtpFile = filePath + "/" + baseFileName + ".zip"
# Create the zip file and write to it
zFile = zipfile.ZipFile(destFtpFile, 'w', compression=zipfile.ZIP_DEFLATED, allowZip64=True)
zFile.write(zip_file, arcname=fileName)
# Read Zip file
zfile = zipfile.ZipFile(destFtpFile, 'r')
for name in zfile.namelist():
(dirname, filename) = os.path.split(name)
print "Decompressing " + filename
filename = "C:/Temp/" + filename
fd = open(filename,"w")
fd.write(zfile.read(name))
fd.close()
The zip file is created correctly. Error during reading: BadZipfile: File is not a zip file
Thanks,
python
Share
Improve this question
Follow
asked Nov 13, 2013 at 17:27
SreeniH's user avatar
SreeniH
40355 silver badges1212 bronze badges
Add a comment
1 Answer
Sorted by:
Highest score (default)
2
You are missing a call to zFile.close(), which will flush the remaining data that needs to be written to the zip file, and close the underlying file descriptor.