| 
			
			 | 
		#1 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 2 
				Karma: 10 
				Join Date: Apr 2010 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
			
			 
				
				ERROR when converting mobi to epub? help! (new at this)
			 
			
			
			Hi everyone. i'm new at this. i just got this error when trying to convert a mobi to epub. any help? 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Convert book 1 of 1 (Eating Animals) Resolved conversion options {'asciiize': False, 'author_sort': None, 'authors': None, 'base_font_size': 0.0, 'book_producer': None, 'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part\\s+', 'i')) or @class = 'chapter']", 'chapter_mark': u'pagebreak', 'comments': None, 'cover': '/var/folders/H3/H3O4DUh0HamBsxkiKrMvNE+++TI/-Tmp-/calibre_0.6.47_W9QV7r.jpeg', 'debug_pipeline': None, 'disable_font_rescaling': False, 'dont_justify': False, 'extra_css': None, 'font_size_mapping': None, 'footer_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' , 'force_max_line_length': False, 'header_regex': u'(?i)(?<=<hr>)((\\s*<a name=\\d+></a>((<img.+?>)*<br>\\s*)?\\d+<br>\\s*.*?\\s*)|(\\s* <a name=\\d+></a>((<img.+?>)*<br>\\s*)?.*?<br>\\s*\\d+))(?=<br>)' , 'inline_toc': False, 'input_encoding': None, 'input_profile': <calibre.customize.profiles.InputProfile object at 0x63acd50>, 'insert_blank_line': False, 'insert_metadata': False, 'isbn': None, 'language': None, 'level1_toc': None, 'level2_toc': None, 'level3_toc': None, 'line_height': 0.0, 'linearize_tables': False, 'margin_bottom': 5.0, 'margin_left': 5.0, 'margin_right': 5.0, 'margin_top': 5.0, 'max_line_length': 0, 'max_toc_links': 50, 'newline': u'system', 'no_chapters_in_toc': False, 'no_inline_navbars': False, 'output_encoding': 'utf-8', 'output_profile': <calibre.customize.profiles.OutputProfile object at 0x63acf30>, 'page_breaks_before': u"//*[name()='h1' or name()='h2']", 'prefer_metadata_cover': False, 'preprocess_html': False, 'pretty_print': False, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': '/var/folders/H3/H3O4DUh0HamBsxkiKrMvNE+++TI/-Tmp-/calibre_0.6.47_I6w7H_.opf', 'remove_first_image': False, 'remove_footer': False, 'remove_header': False, 'remove_paragraph_spacing': False, 'remove_paragraph_spacing_indent_size': 1.5, 'series': None, 'series_index': None, 'tags': None, 'timestamp': None, 'title': None, 'title_sort': None, 'toc_filter': None, 'toc_threshold': 6, 'use_auto_toc': False, 'verbose': 2} Python function terminated unexpectedly: All strings must be XML compatible: Unicode or ASCII, no NULL bytes InputFormatPlugin: MOBI Input running on /Users/****/Calibre Library/Foer_ Jonathan Safran/Eating Animals (4)/Eating Animals - Foer_ Jonathan Safran.mobi Extracting text... Adding anchors... Extracting images... Cleaning up HTML... Parsing HTML... Malformed markup, parsing using BeautifulSoup MOBI markup appears to contain random bytes. Stripping. Extracting text... Adding anchors... Extracting images... Cleaning up HTML... Parsing HTML... Malformed markup, parsing using BeautifulSoup MOBI markup appears to contain random bytes. Stripping. Traceback (most recent call last): File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 147, in main return run_entry_point() File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 116, in run_entry_point return getattr(pmod, func)() File "site-packages/calibre/utils/ipc/worker.py", line 99, in main File "site-packages/calibre/gui2/convert/gui_conversion.py", line 24, in gui_convert File "site-packages/calibre/ebooks/conversion/plumber.py", line 787, in run File "site-packages/calibre/customize/conversion.py", line 211, in __call__ File "site-packages/calibre/ebooks/mobi/input.py", line 27, in convert File "site-packages/calibre/ebooks/mobi/reader.py", line 331, in extract_content File "site-packages/lxml/html/soupparser.py", line 23, in fromstring File "site-packages/lxml/html/soupparser.py", line 67, in _parse File "site-packages/lxml/html/soupparser.py", line 77, in _convert_tree File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 87, in _convert_children File "site-packages/lxml/html/soupparser.py", line 89, in _convert_children File "site-packages/lxml/html/soupparser.py", line 103, in _append_text File "lxml.etree.pyx", line 836, in lxml.etree._Element.tail.__set__ (src/lxml/lxml.etree.c:33020) File "apihelpers.pxi", line 667, in lxml.etree._setTailText (src/lxml/lxml.etree.c:15438) File "apihelpers.pxi", line 1242, in lxml.etree._utf8 (src/lxml/lxml.etree.c:19848) ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			That error typically indicates a damaged MOBI file, perhaps during deDRMing?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 2 
				Karma: 10 
				Join Date: Apr 2010 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			thanks. i'll try again tonight and see what happens.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| error converting mobi to epub | babyd | Calibre | 2 | 10-06-2010 02:32 PM | 
| Error converting from epub to mobi | kornhill | Calibre | 5 | 06-28-2010 10:27 PM | 
| Error when converting from mobi to epub | daveldhu | Calibre | 1 | 06-05-2010 12:38 PM | 
| Error converting EPUB to MOBI | picardo | Calibre | 8 | 04-22-2010 10:45 AM | 
| Error when converting to Mobi and Epub | Amalthia | Calibre | 3 | 05-11-2009 05:18 AM |