Ed, Howard, et al.:
I went back to square one and deleted /Library/Frameworks/Python.framework/Versions/2.6/ on my system and then reinstalled Python 2.6 and then PyCrypto from their respective downloaded installers ... and everything is working fine now!
I can't be sure of this, but the problem could have had to do with my having renamed one copy of my installed pycrypto-2.0.1 folder, calling it Crypto. I did that because my examining the ineptepub.py script seemed to indicate that it wanted to find PyCrypto in a folder having the name Crypto. I was floundering around trying to see why the ineptepub.py script wasn't working originally, and thought I'd try that. But maybe it wasn't working for some other reason, which I managed to fix, but then it wouldn't work because I had renamed the folder. Before I did the re-installs, I deleted that folder, so the re-installs may have been superfluous.
Anyway, thanks for all your help.
Now that I'm up and running, I'd like to ask for some clarifications about how all this works. First, I note that the original post said to rename my .pyw files and change their extensions to .py. What was that for? What is the significance of the "w" which I had to strip away?
Two, am I correct in saying that I can't run on a Mac the script that creates the adeptkey.der file, that it has to be run under Windows? Why is that? It would seem to be a major drawback, since a lot of Mac users don't have access to Windows. (I happen to be able to run Windows under Parallels Desktop, so I was able to get around this problem.)
Three, in installing PyCrypto, the associated README file suggests there is a need to run python setup.py build and python setup.py install. I find (1) only the latter is needed; (2) after a successful install of Python 2.6, invoking python from the command line in Terminal in fact uses Python 2.6, which is good; (3) I had to include the full path to setup.py, i.e., /Users/eric/Desktop/INEPT/pycrypto-2.0.1/setup.py, by dragging the Finder icon of that file to the Terminal window. Does that square with your understanding?
Also, I'd like to mention my reason for using ineptepub: I read eBooks on my iPhone in the Stanza app, and I'd like to be able to borrow eBooks from the Maryland Digital Consortium, which includes all of Maryland's public libraries. These eBooks come in ADEPT/EPUB format (also ADEPT/PDF, but I'm not interested in that) and accordingly can't be used in Stanza or any other reader app on the iPhone — unless the DRM is stripped off!
Thanks again ...
Eric
|