| 
			
			 | 
		#1 | 
| 
			
			
			
			 Plugin Developer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,136 
				Karma: 5005503 
				Join Date: Dec 2011 
				Location: Midwest USA 
				
				
				Device: Kobo Clara Colour running KOReader 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Reader Pipe Error Running from Source?
			 
			
			
			I'm seeing errors opening the book reader on epubs while running from source on windows. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I have 4.2.0 binaries installed and I'm current to 6e2122df1754cdc2c5ab32cc13402281b75d19c3 in the source. The error I get is: Code: 
	calibre, version 4.2.0 ERROR: Loading book failed: Failed to open the book at C:\Users\user\Documents\Library\Temporal Knight\Mutant Deviations (9651)\Mutant Deviations - Temporal Knight.epub. Click "Show details" for more info. Traceback (most recent call last): File "C:\Users\user\Desktop\nook\calibre\src\calibre\gui2\viewer\ui.py", line 328, in _load_ebook_worker File "C:\Users\user\Desktop\nook\calibre\src\calibre\gui2\viewer\convert_book.py", line 182, in prepare_book File "C:\Users\user\Desktop\nook\calibre\src\calibre\gui2\viewer\convert_book.py", line 144, in do_convert ConversionFailure: Failed to convert book: C:\Users\user\Documents\Library\Temporal Knight\Mutant Deviations (9651)\Mutant Deviations - Temporal Knight.epub with error: InputFormatPlugin: EPUB Input running on C:\Users\user\Documents\Library\Temporal Knight\Mutant Deviations (9651)\Mutant Deviations - Temporal Knight.epub Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main() P Debug mode doesn't show any additional output. So am I doing something dumb or is anyone else seeing this?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			FWIW Someone else posted a couple of logs with that single P
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,162 
				Karma: 92500001 
				Join Date: Nov 2011 
				Location: Charlottesville, VA 
				
				
				Device: Kindles 
				
				
				 | 
	
	|
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Try running just the render worker like this: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	calibre-debug src/calibre/srv/render_book.py file.epub that will hopefully give you more details on what the error is.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Plugin Developer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,136 
				Karma: 5005503 
				Join Date: Dec 2011 
				Location: Midwest USA 
				
				
				Device: Kobo Clara Colour running KOReader 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Spoiler output: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Spoiler: 
 I've replaced the character '^@' (AKA \0, or NULL) in the output with the string "^@" so it's visible. That's the source of the single P, I bet. For legibility, the string without NULLs is: "Python function terminated unexpectedly 'NoneType' object has no attribute 'serialize' (Error Code: 1)"  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			that should take care of it, the prepare book process has been greatly speeded up, but you need a native code module for it which you wont get till calibre 4.3 is released https://github.com/kovidgoyal/calibr...a71e4cad2d38b2
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Plugin Developer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,136 
				Karma: 5005503 
				Join Date: Dec 2011 
				Location: Midwest USA 
				
				
				Device: Kobo Clara Colour running KOReader 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Confirmed--I'm not getting that error now.  Thanks!   
		
	
		
		
		
		
		
		
		
		
		
		
	
	And thanks for the upcoming pre-process speed up, that's great news!  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,162 
				Karma: 92500001 
				Join Date: Nov 2011 
				Location: Charlottesville, VA 
				
				
				Device: Kindles 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Is is possible to also fix Python exception error messages so that they do not contains null characters? 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I am seeing these whenever any of the calibre command line programs errors out.  | 
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			yeah its a windows specific thing, need to look into it when I am next on a windows machine.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Plugin error: IOError: [Errno 32] Broken pipe | stoduk | Development | 6 | 12-30-2015 08:14 AM | 
| ERROR: Unhandled exception: <b>IOError</b>:[Errno 32] Broken pipe | Martin77 | Calibre | 3 | 12-24-2015 08:50 AM | 
| running from source dbus error | eschwartz | Calibre | 7 | 10-30-2014 01:15 AM | 
| Error while running calibre with source | Lev667 | Development | 3 | 03-05-2011 10:55 AM | 
| Running from source after V0.7.32 | chaley | Calibre | 0 | 12-04-2010 01:08 PM |