I would like to get someone's expert help on this. I'm trying to use the
ineptepub.py script on my Mac running Leopard 10.5.8, and I have no clue what I'm doing when it comes to Python and Crypto.
I obtained the Python 2.6.2 for the Mac package (it seems to be called MacPython) and installed it by double clicking its .mpkg installer, resulting in a Python 2.6 folder in my Applications folder. This folder has a Python Launcher app, an IDLE app, a Build Applet app, an Update Shell Profile command file, and a folder of Extras. I am not sure if the actual Python interpreter is in there???
I also obtained what seems to be PyCrypto 2.0.1. The installer, pycrypto-2.0.1.tar.gz, expanded into a pycrypto-2.0.1 folder on my desktop. Here is where I start to get lost. The included README file says:
The modules are packaged using the Distutils, so you can simply run "python setup.py build" to build the package, and "python setup.py install" to install it.
Huh? Does that mean to run those commands in Terminal? In doing so, I figured I had to use the
cd command in Terminal to change my current directory to the pycrypto-2.0.1 folder on my desktop. Then I entered
python setup.py build and saw a raft of messages rolling by in my Terminal window. Though there were several "warning" messages, there didn't seem to be any errors. So I entered
python setup.py install and got a handful of running ... messages, a lot of copying ... messages, and then:
running install_egg_info
Removing /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pycrypto-2.0.1-py2.6.egg-info
Writing /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pycrypto-2.0.1-py2.6.egg-info
I gather that means Crypto installed properly???
But now I try to run my
ineptepub.py script -- it's on my desktop -- which I copied and renamed from
ineptepub.pyw. Downloaded from the Web, it's the script version that starts out:
#! /usr/bin/python
# ineptepub.pyw, version 2
# To run this program install Python 2.6 from
http://www.python.org/download/
# and PyCrypto from
http://www.voidspace.org.uk/python/m...shtml#pycrypto
# (make sure to install the version for Python 2.6). Save this script file as
# ineptepub.pyw and double-click on it to run it.
# Revision history:
# 1 - Initial release
# 2 - Rename to INEPT, fix exit code
"""
Decrypt Adobe ADEPT-encrypted EPUB books.
"""
I had to use Get Info in the Mac Finder to direct that double clicking on
.py files should open Python Launcher rather than IDLE, which seems to be the Python development environment. After doing that, when I double click on
ineptepub.py, I see an app called
Python try to run the script but instead fail on an error message:
This script requires PyCrypto, which must be installed separately. Read the top-of-script comment for details.
I also saw a new window open up in Terminal, with the contents:
Last login: Mon Oct 19 12:23:16 on ttys002
[iMac:~] eric% cd '/Users/eric/Desktop/' && '/usr/local/bin/pythonw' '/Users/eric/Desktop/ineptepub.py' && echo Exit status: $? && exit 1
OK, so at this point I'm
totally lost. I thought I installed PyCrypto, but now I'm being told I
need to install PyCrypto.
Can someone please help me get this working? Thanks in advance ...