View Single Post
Old 02-14-2010, 12:22 PM   #577
bookwyrm
Junior Member
bookwyrm began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2010
Device: kindle
Long time follower- new poster that needs some help

Hello everyone, I got a kindle about 2 years ago but am only now exploring the possibilities of trying to read electronic library books on my kindle since reading them on my MAC laptop is proving painful and cumbersome.
I've read most of the information on this site regarding removing drm from the library books to read on my kindle but am coming up with what I hope is a fixable error.
I have python 2.6 loaded, believe pycrypto is also loaded (not sure since there was not an install feature but when I click on the ineptpub v2 instead of a box opening up as stated in the instructions instead I get a line of script.
Has anyone run into this issue before? How do I resolve? Thanks

Example below

# 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.
"""

from __future__ import with_statement

__license__ = 'GPL v3'

import sys
import os
import zlib
import zipfile
from zipfile import ZipFile, ZIP_STORED, ZIP_DEFLATED
from contextlib import closing
import xml.etree.ElementTree as etree
import Tkinter
import Tkconstants
import tkFileDialog
import tkMessageBox

try:
from Crypto.Cipher import AES
from Crypto.PublicKey import RSA
except ImportError:
AES = None
RSA = None
bookwyrm is offline   Reply With Quote