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.

any ANONYMOUS forum user 05-30-2010 12:32 PM

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


 
Quote:

Originally Posted by mtngr1 (Post 19273)
I do not have BNDesktopReaderClientAPI.db anywhere on my c drive.

Change the Windows Explorer settings to allow to show hidden and system files and folders. Then if you have Windows 7 or Vista, go to
Code:

C:\Users\USERNAME\AppData\Roaming\

mtngr1 05-30-2010 04:38 PM

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


 
I have Windows XP and I have it set to show all files and that file is no where to be found on my HD.

any ANONYMOUS forum user 05-31-2010 12:51 AM

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


 
Quote:

Originally Posted by mtngr1 (Post 19279)
I have Windows XP and I have it set to show all files and that file is no where to be found on my HD.

In Windows XP it should be in
Code:

C:\Documents and Settings\USER\Application Data

mtngr1 05-31-2010 10:11 AM

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


 
Okay, found it! When I was doing a search, I was searching under user, and I must I've only installed it under my Documents and Settings. It's found in C:\Documents and Settings\USER\Application Data\Barnes & Noble\BNDesktopReader\ClientAPI

any ANONYMOUS forum user 05-31-2010 11:33 AM

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


 
Quote:

Originally Posted by mtngr1 (Post 19293)
Okay, found it! When I was doing a search, I was searching under user, and I must I've only installed it under my Documents and Settings. It's found in C:\Documents and Settings\USER\Application Data\Barnes & Noble\BNDesktopReader\ClientAPI

Your "ClientAPI.db" doesn't use underscores, so you should replace
Code:

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

dbpath = glob.glob(os.path.join(bndir, 'ClientAPI*.db'))
(remove underscore) as mentioned above.

mtngr1 05-31-2010 02:07 PM

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


 
Now it's showing this error- "B&N User Key not found. Unexpected DB format?" error.

mtngr1 05-31-2010 04:29 PM

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


 
Okay, I had read that you have to get rid of your client api key, and then open up Barnes and Noble reader and re enter your info:
Quote:

Originally Posted by Stream Recorder (Post 15016)
If you get the following error after running ignoblekey.pyw
"Error: Problem decoding key; unexpected DB format?"
you can either find and delete your 'ClientAPI_v012.db' file then re-authorize BDReader with your account information,
or just use the key-derivation script (ignoblekeygen).

Both ignoblekey and ignoblekeygen will produce the same output when they work correctly.

and I did that, and still nothing works. Now I bought the book with my B&N gift card, so what do I enter into the name box, because I've tried my user name, my real name, my credit card, my gift card, and the error I keep getting is "key cannot be the null string" whenever I put the key in, the drm book and save it under the name I want.

mtngr1 05-31-2010 04:49 PM

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


 
I did it! I redid my name and credit card, and it worked! Thank you, now I can use what ever reader I want!

ch mn 09-11-2010 11:21 AM

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


 
Quote:

Originally Posted by mtngr1 (Post 19300)
I did it! I redid my name and credit card, and it worked! Thank you, now I can use what ever reader I want!

Where did you need to do this? I deleted ClientAPI.db, but all the nook desktop reader needed was my B&N account email and password, Which did not fix the problem. What version of the desktop reader are you using?

nowei 12-06-2010 12:03 PM

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


 
Quote:

Originally Posted by ch mn (Post 21376)
Where did you need to do this? I deleted ClientAPI.db, but all the nook desktop reader needed was my B&N account email and password, Which did not fix the problem. What version of the desktop reader are you using?

I'm having this exact issue, using Nook For PC 2.5.2.458.

Just for fun, I found the Barnes and Noble Desktop Reader 2.1.0.2 as well, no go.

So I ran the key generator script, full name as on the card and number. Key was generated, but I get a "Error: Key cannot be the null string" -- If I open the bnepubkey.b64 file, it's a line of stuff, so I don't think it's null.

I did make the appropriate script edits to find the database for the two desktop reader key extraction attempts.

Any ideas?

Stream Recorder 12-06-2010 12:45 PM

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


 
Quote:

Originally Posted by nowei (Post 23454)
Key was generated, but I get a "Error: Key cannot be the null string" -- If I open the bnepubkey.b64 file, it's a line of stuff, so I don't think it's null.

If you use your username in ignobleepub, then use your real name (the name on your credit card). You may need to skip your middle name though.

You may also try to use the output file without any extension and rename it afterwards to .epub.

nowei 12-06-2010 02:34 PM

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


 
??

What is my username? I've heard it's not my email address. Where do I find it?

How do I use it in ignobleepub? That only asks for the key file, input file, and output file.

I tried the key generator without my middle initial. No go, same error, Key cannot be null.

Stream Recorder 12-06-2010 03:14 PM

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


 
Quote:

Originally Posted by nowei (Post 23456)
??

What is my username? I've heard it's not my email address. Where do I find it?

How do I use it in ignobleepub? That only asks for the key file, input file, and output file.

I tried the key generator without my middle initial. No go, same error, Key cannot be null.

You don't need your username. Just use
Code:

python -s ignoblekeygen.pyw "FirstName LastName" 1234567890123456 "bnepubkey.b64"
Where
1. "FirstName LastName" is your name from your credit card without your middle initial (don't forget to put it in quotes).
2. 1234567890123456 is your credit card number.
3. "bnepubkey.b64" is output keyfile name (assumes local folder).

nowei 12-06-2010 04:36 PM

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


 
1 Attachment(s)
Right, I have a key:

N---T1B*********O....y4=

(I changed it some so no one can use it to recover my credentials)

When I use it, I get Error: key cannot be the null string (see attached)

Stream Recorder 12-07-2010 01:56 AM

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


 
I have mentioned above that you may try to remove the EPUB extension of your output file when using Ignoble Epub Decrypter. And after removing DRM, just add the epub file extension.

nowei 12-07-2010 03:56 PM

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


 
Quote:

Originally Posted by Stream Recorder (Post 23470)
I have mentioned above that you may try to remove the EPUB extension of your output file when using Ignoble Epub Decrypter. And after removing DRM, just add the epub file extension.

I get the same result.

Stream Recorder 12-08-2010 10:44 AM

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


 
Quote:

Originally Posted by nowei (Post 23487)
I get the same result.

ATM I don't have any other solution. Try to rename your input file to something simple like 1.epub

Texas-Ciber 04-13-2011 09:40 AM

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


 
Thank you for this thread it helped me to decrypt a epub book so that
Digital Editions recognizes it. Also did you just change the name of the keyfile or the data in it? If you changed that the data in the file it will probably be no good as you just changed who you are and the book will not recognized the key as being you.


All times are GMT -6. The time now is 03:04 PM.