| 
			
			 | 
		#1 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,899 
				Karma: 6995721 
				Join Date: Dec 2008 
				Location: Idaho, on the side of a mountain 
				
				
				Device: Kindle Oasis, Fire 3d Gen and 5th Gen and Samsung Tab S 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Please help with error message
			 
			![]() My husband bet me I cannot get a script I found on the net to work. I was looking for ereader2html. I copied, deleted some stuff at the top, saved as a py text file, and this is what I get: C:\Python26>ereader2html.py eReader2Html v0.03. Copyright (c) 2008 The Dark Reverser Traceback (most recent call last): File "C:\Python26\Tools\Scripts\ereader2html.py", line 473, in <module> if len(sys.argv)!=5: NameError: name 'sys' is not defined Since it is finding the error in line 473, I am assuming that everything above is okay? I know absolutely nothing about programing, but I was dared (yes, I would jump off a building if someone dared me!). And I have enjoyed reading these forums and learning something new. So if someone could start me down this programing path, who knows where it will lead! Thanks, Debra  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 reader 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977 
				Karma: 5183568 
				Join Date: Mar 2006 
				Location: Mississippi, USA 
				
				
				Device: Kindle 3, Kobo Glo HD 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I think you deleted one too many lines.  The first non-comment line of the script starts with import, and this line includes sys which seems to be missing.  The "#" lines are just comments and can stay too, i.e. try again without deleting lines.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,899 
				Karma: 6995721 
				Join Date: Dec 2008 
				Location: Idaho, on the side of a mountain 
				
				
				Device: Kindle Oasis, Fire 3d Gen and 5th Gen and Samsung Tab S 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Wallcraft, I may be there!  I will think of you when my husband takes me to dinner! 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Here is what I get. Does this look okay? I don't understand the deprecation warning. C:\Python26>ereader2html.py C:\Python26\Tools\Scripts\ereader2html.py:10: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import struct, binascii, zlib, os, sha, sys, os.path eReader2Html v0.03. Copyright (c) 2008 The Dark Reverser Converts eReader books to HTML Usage: ereader2html infile.pdb outdir "your name" credit_card_number Note: It's enough to enter the last 8 digits of the credit card number Thanks, Debra  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,832 
				Karma: 11844413 
				Join Date: Jan 2007 
				Location: Tampa, FL USA 
				
				
				Device: Kindle Touch 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 reader 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977 
				Karma: 5183568 
				Join Date: Mar 2006 
				Location: Mississippi, USA 
				
				
				Device: Kindle 3, Kobo Glo HD 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,899 
				Karma: 6995721 
				Join Date: Dec 2008 
				Location: Idaho, on the side of a mountain 
				
				
				Device: Kindle Oasis, Fire 3d Gen and 5th Gen and Samsung Tab S 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			When I put it in as is (just changing the name) I got the error messages.  But putting it in as is, I get the deprecation warning.   
		
	
		
		
		
		
		
		
		
		
		
		
	
	BTW, my husband is a VP at a computer software company. But he is an engineer, not a programer, although he has programers working for him. I asked him to ask one of his guys to do it (he has 2 women, 18 men), but he refused. As he should - they aren't paid to do my stuff. But I sure would like to show him up and having a working script by the time he gets back from China (doing some programing stuff there).  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,899 
				Karma: 6995721 
				Join Date: Dec 2008 
				Location: Idaho, on the side of a mountain 
				
				
				Device: Kindle Oasis, Fire 3d Gen and 5th Gen and Samsung Tab S 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I did enter arguments.  I ran it as follows from C:\users\debra\documents\my ebooks 
		
	
		
		
		
		
		
		
		
		
		
		
	
	ereader2html.py book.pdb "my name" [last 8 digits CC]  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,899 
				Karma: 6995721 
				Join Date: Dec 2008 
				Location: Idaho, on the side of a mountain 
				
				
				Device: Kindle Oasis, Fire 3d Gen and 5th Gen and Samsung Tab S 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			And  
		
	
		
		
		
		
		
		
		
		
		
		
	
	import struct, binascii, zlib, os, sha, sys, os.path Is exactly what it says in the script I saved. So what am I doing wrong?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | |
| 
			
			
			
			 reader 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977 
				Karma: 5183568 
				Join Date: Mar 2006 
				Location: Mississippi, USA 
				
				
				Device: Kindle 3, Kobo Glo HD 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			  There is one argument missing  
		
	
		
		
		
		
		
		
		
		
		
		
	
	Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,899 
				Karma: 6995721 
				Join Date: Dec 2008 
				Location: Idaho, on the side of a mountain 
				
				
				Device: Kindle Oasis, Fire 3d Gen and 5th Gen and Samsung Tab S 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks for all the help, Wallcraft.  Here is the argument that gets the same old error message: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	C:\Python26\Tools\Scripts>ereader2html.py CaughtStealing_78249.pdb C:users\debra \documents\my ebooks\ "name" [last 8 digets of cc]  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | 
| 
			
			
			
			 reader 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977 
				Karma: 5183568 
				Join Date: Mar 2006 
				Location: Mississippi, USA 
				
				
				Device: Kindle 3, Kobo Glo HD 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Try:  
		
	
		
		
		
		
		
		
		
		
		
		
	
	Code: 
	ereader2html.py CaughtStealing_78249.pdb CaughtStealing "name" [last 8 digets of cc]  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,899 
				Karma: 6995721 
				Join Date: Dec 2008 
				Location: Idaho, on the side of a mountain 
				
				
				Device: Kindle Oasis, Fire 3d Gen and 5th Gen and Samsung Tab S 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Getting Close!  It says incorrect name of CC#.  I will go back to fictionwise and see what is says.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#13 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,899 
				Karma: 6995721 
				Join Date: Dec 2008 
				Location: Idaho, on the side of a mountain 
				
				
				Device: Kindle Oasis, Fire 3d Gen and 5th Gen and Samsung Tab S 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			PROCESSING . . . DONE 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Priceless. ![]() Thank you, thank you, thank you, Wallcraft. Now I can find a program to convert to azw (I will see what the Amazon conversion looks like). I cannot wait to tell my husband!!!! Debra  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#14 | 
| 
			
			
			
			 reader 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977 
				Karma: 5183568 
				Join Date: Mar 2006 
				Location: Mississippi, USA 
				
				
				Device: Kindle 3, Kobo Glo HD 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#15 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,899 
				Karma: 6995721 
				Join Date: Dec 2008 
				Location: Idaho, on the side of a mountain 
				
				
				Device: Kindle Oasis, Fire 3d Gen and 5th Gen and Samsung Tab S 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks!  I got it back from Amazon, tried Auto Ebook Kindle Converter, and I will try Mobile Reader.  I will post the one that has the best formatting.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| error message: ERROR ITMS-4099: "Invalid ISBN: [#] at Book (MZItmspBookPac | NewDay | ePub | 3 | 10-07-2010 02:47 PM | 
| PRS-505 Error Message | Sandra Lyons | Sony Reader | 11 | 06-16-2010 09:53 AM | 
| 6.10 error message | Amalthia | Calibre | 5 | 09-06-2009 11:40 PM | 
| Error message | thibaulthalpern | Calibre | 1 | 05-15-2009 04:12 PM | 
| Error Message - Help please.... | Jenny123 | Sony Reader | 10 | 04-20-2009 10:52 AM |