I'm getting a weird error with mobidedrm.py 0.22 when trying to remove DRM from a .prc file I bought from mobipocket.com.
Code:
MobiDeDrm v0.22. Copyright 2008-2010 The Dark Reverser.
Traceback (most recent call last):
File "MobiDeDRM.py", line 361, in <module>
sys.exit(main())
File "MobiDeDRM.py", line 352, in main
stripped_file = getUnencryptedBookWithList(infile, pidlist)
File "MobiDeDRM.py", line 334, in getUnencryptedBookWithList
if not os.path.isfile(infile):
NameError: global name 'os' is not defined
I thought maybe my Python setup was wrong and tried reinstalling Python and wxPython, now I'm using ActivePython and the error is still the same.
I also tried using KindleBooks.pyw, which gave me the following error.
Code:
MOBI header version = 6, length = 228
Extra Data Flags = 6
Processing Book: XYZ
No EXTH record type 209 - Perhaps not a K4 file?
... not suceessful Not yet initialised with PID. Must be opened with Mobipocket Reader first.
Error: Encryption Removal Failed
Of course I opened the file with Mobipocket Reader.
Am I doing something completely wrong?
Any help would be highly appreciated.
