Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Removing DRM protection from eBooks (http://stream-recorder.com/forum/forumdisplay.php?f=63)
-   -  

ineptepub.py error: zipfile.BadZipfile: File name in directory OPS/ and header differ

(http://stream-recorder.com/forum/showthread.php?t=6990)

Worbey 05-14-2010 09:05 AM

ineptepub.py error: zipfile.BadZipfile: File name in directory OPS/ and header differ


 
Bought an ADE DRM'd ebook, followed the process on how to unDRM it, worked flawlessly.

Woohoo, it works! Or so i thought.......

I bought another 6 from the same etailer. Of these only one work, the others all exhibited the same kind of error:-

Code:

$ python ineptepub_v2.py adeptkey.der DRMeBooks/xxxxxxxxxxxx.epub CrackedeBooks/xxxxxxxxxxxx.epub
Traceback (most recent call last):
  File "ineptepub_v2.py", line 339, in <module>
    sys.exit(cli_main())
  File "ineptepub_v2.py", line 223, in cli_main
    data = inf.read(path)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/zipfile.py", line 836, in read
    return self.open(name, "r", pwd).read()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/zipfile.py", line 876, in open
    zinfo.orig_filename, fname)
zipfile.BadZipfile: File name in directory "OPS/XXXXXXXXXXXXX_oe0?" and header "OPS/XXXXXXXXXXXXX_oeb_opf_r1.opf" differ.

OS X 10.6.3

Anyone got any ideas?

The other errors are
Code:

zipfile.BadZipfile: File name in directory "?G?N" and header "OEBPS/XXXXXXXXXXXXX_oeb_c58_r1.html" differ.

zipfile.BadZipfile: File name in directory "OPS/XXXXXXXXXXXXX_oeb_c38_r1.htm" and header "OPS/XXXXXXXXXXXXX_oeb_c38_r1.html" differ.

zipfile.BadZipfile: File name in directory "OPS/images/XXXXXXXXXXXXX_04." and header "OPS/images/XXXXXXXXXXXXX_04.jpg" differ.

zipfile.BadZipfile: File name in directory "OPS/XXXXXXXXXXXXX_EpilogA!" and header "OPS/XXXXXXXXXXXXX_Epilogue.html" differ.


Worbey 05-14-2010 11:08 AM

Re: ineptepub.py error: zipfile.BadZipfile: File name in directory ....


 
Problem solved:

renaming the epub file to a zip file, unzipping into a new folder and then dropping the folder onto the "ePub Zip 1.0.2" app recreated the epub, which then ran thru ineptepub_v2 with no errors.

:)


All times are GMT -6. The time now is 05:27 PM.