Quote:
Originally Posted by wirehead
Well, I read thru the entire thread and didn’t see my problem addressed which, I hope, doesn’t mean I’m the only one having the problem ;-)
Everything works gr8 for PDFs so I know everything is installed correctly. But, I get an error MSG for epubs: Error: File name in directory “O
Mac OSX 10.5.8, Python 2.6, PyCrypto 2.1.0, ineptepub_v2.py [I noticed you just appended the py after pyw...]
I tried the zip trick, the files were readable - someone said not to rezip the mimetype file...?
This is the 1st x trying epub. I DLed it from the Overdrive.
Gr8 info you’ve provided. I bought an iPad and couldn’t wait to read books on it. DRM is so nonsensical - I can buy a hard cover, read it, gift it, and not expect the gestapo to kick down my door but buy a digital book and I can’t even share it to my iPad!!
|
First step is to see if the Sony Reader application or ADE will read the original ePUB. If so, this should work. If not, then this method will not work.
Okay a few ideas...
Did you try to your work via the command line (Terminal.app), or with OSX Finder (double-clicking the ineptepub.pyw)?
On the command line, you can run a simple fix for your epub without unzipping it.
Code:
% cp your-epub.epub new-epub.epub
% zip -F new-epub.epub
Note the cp copies the original to a new file in case something goes wrong.
Then you can try running ineptepub.pyw on the
new-epub.epub file.
If using Finder, you can't do this "fix" trick, and you have to unzip/re-zip. When you unzip the epub, the mimetype file is created with NO permissions at all, so you can't read or write to it (a "wtf!" is in order here). You can, however, change permissions simply, and then it will re-zip into an epub just fine.
Terminal.app (command line)
Code:
% chmod a+r <unzip-dir>/mimetype
You can also do it via the Finder, single-clicking on the mimetype, selecting "Get Info" from the menu and in the "Sharing & Permissions" tab at the bottom of the Info window, you change "Privilege" to "Read only" or "Read & Write" (won't matter which) across the board. Now you can re-zip to a new ePub, and you're ready for ineptepub.pyw. This probably is not your issue though.
If these hints don't work, feel free to post the whole set of error messages, exactly as they appear on screen.
-Pie