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)
-   -  

Barnes and Noble: ignoblekey.py error: Could not locate B&N Reader installation

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

mtngr1 05-28-2010 06:42 PM

Barnes and Noble: ignoblekey.py error: Could not locate B&N Reader installation


 
I installed Python 2.6 first, then pycrypto-2.1.0. Is the key file for Barnes and Noble called bnepubkey.64? I click on Ignoble Key, it gives me the Error: Could not locate B&N Reader installation, but I have it installed and have the Ignoble Key in the directory. I then try and use Ignoble Key gen, and put the epub book that I have from Barnes and noble, then the saved name I want for the output book I want, and it spits out a bnepubkey.64, to which I put in the inept key, and I keep getting the error decoding ASN.1. Can someone please tell me what I have doing wrong?

TIA

mtngr1 05-28-2010 06:57 PM

AES key must be either 16,24, or 32 bytes


 
Now I am getting this error:AES key must be either 16,24, or 32 bytes long? I am using the bnepubkey.b64 that it spit out?

Stream Recorder 05-28-2010 11:10 PM

Re: Barnes and Noble: ignoblekey.py error: Could not locate B&N Reader installation


 
Quote:

Originally Posted by mtngr1 (Post 19227)
I installed Python 2.6 first, then pycrypto-2.1.0. Is the key file for Barnes and Noble called bnepubkey.64? I click on Ignoble Key, it gives me the Error: Could not locate B&N Reader installation, but I have it installed and have the Ignoble Key in the directory.

Create a copy of "ignoblekey.py". Then open "ignoblekey.py" with any text editor like Windows Notepad and change the BN_APPDATA_DIR variable from
Code:

BN_APPDATA_DIR = r'Barnes & Noble\DesktopReader'
to
Code:

BN_APPDATA_DIR = r'Barnes & Noble\BNDesktopReader'
or to whatever directory that is used for your B&N Reader installation.

mtngr1 05-29-2010 03:36 AM

Re: Barnes and Noble: ignoblekey.py error: Could not locate B&N Reader installation


 
Okay, I did that and now it's saying, Error: Problem locating B&N Reader DB. my Barnes and Noble is in Program Files\Barnes & Noble\BNDestopReader

Stream Recorder 05-29-2010 11:58 AM

Re: Barnes and Noble: ignoblekey.py error: Could not locate B&N Reader installation


 
Quote:

Originally Posted by mtngr1 (Post 19232)
Okay, I did that and now it's saying, Error: Problem locating B&N Reader DB. my Barnes and Noble is in Program Files\Barnes & Noble\BNDestopReader

B&N has probably changed the DB name. So when the script tries to find it using
Code:

dbpath = glob.glob(os.path.join(bndir, 'ClientAPI_*.db'))
you get the error.

Find the db name and change the code. If you use Windows 7 or Vista, see whether you have the following file
Code:

C:\Users\USERNAME\AppData\Roaming\Barnes & Noble\BNDesktopReader\ClientAPI.db
and in Windows XP see whether you have
Code:

C:\Documents and Settings\USER\Application Data\Barnes & Noble\BNDesktopReader\ClientAPI.db
If you do, then replace
Code:

dbpath = glob.glob(os.path.join(bndir, 'ClientAPI_*.db'))
with
Code:

dbpath = glob.glob(os.path.join(bndir, 'ClientAPI*.db'))
Let me know whether if you will get the "B&N User Key not found. Unexpected DB format?" error.

mtngr1 05-29-2010 02:18 PM

Re: Barnes and Noble: ignoblekey.py error: Could not locate B&N Reader installation


 
I ckd it in the registry and I did have that,so I copied pasted what you told me to change in ignoblekey using the pythonwin editor and now, the black dos box comes up and then disappears. No words or anything, just the dos box.

any ANONYMOUS forum user 05-30-2010 02:01 AM

Re: Barnes and Noble: ignoblekey.py error: Could not locate B&N Reader installation


 
Quote:

Originally Posted by mtngr1 (Post 19246)
I ckd it in the registry and I did have that,so I copied pasted what you told me to change in ignoblekey using the pythonwin editor and now, the black dos box comes up and then disappears. No words or anything, just the dos box.

open the folder and see whether you have that file. then post its path and show me the code that you use in python.

mtngr1 05-30-2010 10:57 AM

Re: Barnes and Noble: ignoblekey.py error: Could not locate B&N Reader installation


 
I'm confused because my Barnes and Noble ebooks are in my documents, but my Barnes and noble reader is in my Programs files\ Barnes and Noble\BNDesktopReader. I have windows xp, and here is what is part of what is in my code in ignoblekey-

def find_bnclientdb_path():
appdata = os.environ['APPDATA']
bndir = os.path.join(appdata, BN_APPDATA_DIR)
if not os.path.isdir(bndir):
raise IgnobleError('Could not locate B&N Reader installation')
dbpath = glob.glob(os.path.join(bndir, 'ClientAPI_*.db'))
if len(dbpath) == 0:
raise IgnobleError('Problem locating B&N Reader DB')
return sorted(dbpath)[-1]

mtngr1 05-30-2010 11:01 AM

Re: Barnes and Noble: ignoblekey.py error: Could not locate B&N Reader installation


 
This is what he was having me change. I copied, pasted this from my ignoblekey-
BN_KEY_KEY = 'uhk00000000'
BN_APPDATA_DIR = r'Barnes & Noble\BNDesktopReader'

mtngr1 05-30-2010 11:03 AM

Re: Barnes and Noble: ignoblekey.py error: Could not locate B&N Reader installation


 
I do not have BNDesktopReaderClientAPI.db anywhere on my c drive.


All times are GMT -6. The time now is 05:18 AM.