Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-26-2018, 01:03 PM   #1
Superbra
Junior Member
Superbra began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2018
Device: Kobo Aura One
Python error when converting epub to epub

I'm trying to convert all of my epubs to epub to solve some errors in the epubs. When I launch the conversion, It just fails. The log file says it is a Python problem and I reported it as a bug. I'm posting this in the hope that someone encountered the same error and found a solution or workaround for it... Below you can find the complete log for one epub:

---------------------------
Spoiler:

Convert book 1 of 1 (Planeten Te Koop)
Conversion options changed from defaults:
linearize_tables: True
epub_version: u'3'
smarten_punctuation: True
remove_paragraph_spacing: True
epub_inline_toc: True
page_breaks_before: u"//*[name()='h1' or name()='h2']"
output_profile: 'kobo'
cover: u'C:\\Users\\bart\\AppData\\Local\\Temp\\calibre_i si1no\\1itt4u.jpeg'
subset_embedded_fonts: True
verbose: 2
read_metadata_from_opf: u'C:\\Users\\bart\\AppData\\Local\\Temp\\calibre_i si1no\\dsetxb.opf'
Resolved conversion options
calibre version: 3.24.1
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'C:\\Users\\bart\\AppData\\Local\\Temp\\calibre_i si1no\\1itt4u.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': True,
'epub_toc_at_end': False,
'epub_version': u'3',
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x000002A341286668>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': True,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.KoboReaderOutput object at 0x000002A341286DD8>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\Users\\bart\\AppData\\Local\\Temp\\calibre_i si1no\\dsetxb.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': True,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': u'',
'search_replace': '[]',
'series': None,
'series_index': None,
'smarten_punctuation': True,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'subset_embedded_fonts': True,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_css_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\bart\AppData\Local\Temp\calibre_isi1no\9p uxzh.epub
Found HTML cover OEBPS/Text/titlepage.xhtml
Parsing all content...
Parsing OEBPS/Text/28.xhtml ...
Parsing OEBPS/Text/36.xhtml ...
Parsing OEBPS/Text/27.xhtml ...
Parsing OEBPS/Text/10.xhtml ...
Parsing page_styles.css ...
Parsing OEBPS/Text/achterkant.xhtml ...
Parsing OEBPS/Text/2.xhtml ...
Parsing stylesheet.css ...
Parsing OEBPS/Text/11.xhtml ...
Parsing OEBPS/Text/1.xhtml ...
Parsing OEBPS/Text/24.xhtml ...
Parsing OEBPS/Text/21.xhtml ...
Parsing OEBPS/Text/29.xhtml ...
Parsing OEBPS/Text/25.xhtml ...
Parsing OEBPS/Text/12.xhtml ...
Parsing OEBPS/Text/3.xhtml ...
Parsing OEBPS/Text/26.xhtml ...
Parsing jacket.xhtml ...
Parsing OEBPS/Text/In memoriam.xhtml ...
Parsing OEBPS/Text/30.xhtml ...
Parsing OEBPS/Text/4.xhtml ...
Parsing OEBPS/Text/13.xhtml ...
Parsing OEBPS/Text/31.xhtml ...
Parsing OEBPS/Text/14.xhtml ...
Parsing OEBPS/Text/23.xhtml ...
Parsing OEBPS/Text/Titelpagina.xhtml ...
Parsing OEBPS/Text/5.xhtml ...
Parsing OEBPS/Text/15.xhtml ...
Parsing OEBPS/Text/32.xhtml ...
Parsing OEBPS/Text/16.xhtml ...
Parsing OEBPS/Text/Copyright.xhtml ...
Parsing OEBPS/Text/6.xhtml ...
Parsing OEBPS/Text/17.xhtml ...
Parsing OEBPS/Text/titlepage.xhtml ...
Parsing OEBPS/Text/Jacket.xhtml ...
Parsing OEBPS/Text/33.xhtml ...
Parsing OEBPS/Text/18.xhtml ...
Parsing OEBPS/Text/7.xhtml ...
Parsing OEBPS/Text/20.xhtml ...
Parsing OEBPS/Text/34.xhtml ...
Parsing OEBPS/Text/19.xhtml ...
Parsing OEBPS/Text/8.xhtml ...
Parsing OEBPS/Text/22.xhtml ...
Parsing OEBPS/Text/35.xhtml ...
Parsing OEBPS/Text/In memoriam.xhtml ...
Parsing OEBPS/Text/9.xhtml ...
Removing duplicate manifest item with id: id0
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Removed existing jacket
Flattening CSS and remapping font sizes...
Source base font size is 9.99996pt
Removing fake margins...
Found 1703 items of level: p_1
Found 1 items of level: div_1
p_1 left margin stats: Counter({u'0': 1703})
p_1 right margin stats: Counter({u'0': 1703})
div_1 left margin stats: Counter()
div_1 right margin stats: Counter()
No embedded fonts found
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'OEBPS/Text/titlepage.xhtml' from manifest
Creating EPUB Output...
Generating in-line ToC
Rescaling image from 452x751 to 413x686 OEBPS/Images/back.jpg
Rescaling image from 610x1000 to 418x686 cover.jpeg
Splitting markup on page breaks and flow limits, if any...
Looking for large trees in OEBPS/Text/28.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/36.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/27.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/10.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/achterkant.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/2.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/11.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/1.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/24.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/21.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/29.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/25.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/12.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/3.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/26.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/30.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/4.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/13.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/31.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/14.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/23.xhtml...
No large trees found
Splitting on page-break at id=calibre_pb_0
Splitting on page-break at id=sigil_toc_id_1
Looking for large trees in OEBPS/Text/Titelpagina.xhtml...
No large trees found
Split into 2 parts
Looking for large trees in OEBPS/Text/5.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/15.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/32.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/16.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/Copyright.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/6.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/17.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/Jacket.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/33.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/18.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/7.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/20.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/34.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/19.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/8.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/22.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/35.xhtml...
No large trees found
Looking for large trees in contents.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/In%20memoriam.xhtml...
No large trees found
Looking for large trees in OEBPS/Text/9.xhtml...
No large trees found
Removing anchor from TOC href: OEBPS/Text/Titelpagina_split_001.xhtml#sigil_toc_id_1
The cover image has an id != "cover". Renaming to work around bug in Nook Color
Upgrading to EPUB 3...
Python function terminated unexpectedly
'NoneType' object has no attribute 'find' (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 101, in main
File "site.py", line 78, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 195, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 33, in gui_convert_override
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 26, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 1251, in run
File "site-packages\calibre\ebooks\conversion\plugins\epub_ou tput.py", line 260, in convert
File "site-packages\calibre\ebooks\conversion\plugins\epub_ou tput.py", line 301, in upgrade_to_epub3
File "site-packages\calibre\ebooks\oeb\polish\upgrade.py", line 126, in epub_2_to_3
File "site-packages\calibre\ebooks\oeb\polish\upgrade.py", line 112, in create_nav
File "site-packages\calibre\ebooks\oeb\polish\toc.py", line 662, in commit_nav_toc
File "site-packages\calibre\ebooks\oeb\polish\container.py", line 513, in href_to_name
File "site-packages\calibre\ebooks\oeb\polish\container.py", line 114, in href_to_name
File "urlparse.py", line 143, in urlparse
File "urlparse.py", line 182, in urlsplit
AttributeError: 'NoneType' object has no attribute 'find'

Last edited by theducks; 05-26-2018 at 05:43 PM. Reason: wrap HUGE past in SPOILER TAGS
Superbra is offline   Reply With Quote
Old 05-26-2018, 05:18 PM   #2
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by Superbra View Post
I'm trying to convert all of my epubs to epub to solve some errors in the epubs. When I launch the conversion, It just fails. The log file says it is a Python problem and I reported it as a bug. I'm posting this in the hope that someone encountered the same error and found a solution or workaround for it... Below you can find the complete log for one epub:
Spoiler:
Code:
---------------------------

Convert book 1 of 1 (Planeten Te Koop)
Conversion options changed from defaults:
  linearize_tables: True
  epub_version: u'3'
  smarten_punctuation: True
  remove_paragraph_spacing: True
  epub_inline_toc: True
  page_breaks_before: u"//*[name()='h1' or name()='h2']"
  output_profile: 'kobo'
  cover: u'C:\\Users\\bart\\AppData\\Local\\Temp\\calibre_isi1no\\1itt4u.jpeg'
  subset_embedded_fonts: True
  verbose: 2
  read_metadata_from_opf: u'C:\\Users\\bart\\AppData\\Local\\Temp\\calibre_isi1no\\dsetxb.opf'
Resolved conversion options
calibre version: 3.24.1
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 'change_justification': u'original',
 'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': u'C:\\Users\\bart\\AppData\\Local\\Temp\\calibre_isi1no\\1itt4u.jpeg',
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'dont_split_on_page_breaks': False,
 'duplicate_links_in_toc': False,
 'embed_all_fonts': False,
 'embed_font_family': None,
 'enable_heuristics': False,
 'epub_flatten': False,
 'epub_inline_toc': True,
 'epub_toc_at_end': False,
 'epub_version': u'3',
 'expand_css': False,
 'extra_css': None,
 'extract_to': None,
 'filter_css': u'',
 'fix_indents': True,
 'flow_size': 260,
 'font_size_mapping': None,
 'format_scene_breaks': True,
 'html_unwrap_factor': 0.4,
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x000002A341286668>,
 'insert_blank_line': False,
 'insert_blank_line_size': 0.5,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': True,
 'keep_ligatures': False,
 'language': None,
 'level1_toc': None,
 'level2_toc': None,
 'level3_toc': None,
 'line_height': 0.0,
 'linearize_tables': True,
 'margin_bottom': 5.0,
 'margin_left': 5.0,
 'margin_right': 5.0,
 'margin_top': 5.0,
 'markup_chapter_headings': True,
 'max_toc_links': 50,
 'minimum_line_height': 120.0,
 'no_chapters_in_toc': False,
 'no_default_epub_cover': False,
 'no_inline_navbars': False,
 'no_svg_cover': False,
 'output_profile': <calibre.customize.profiles.KoboReaderOutput object at 0x000002A341286DD8>,
 'page_breaks_before': u"//*[name()='h1' or name()='h2']",
 'prefer_metadata_cover': False,
 'preserve_cover_aspect_ratio': False,
 'pretty_print': True,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'C:\\Users\\bart\\AppData\\Local\\Temp\\calibre_isi1no\\dsetxb.opf',
 'remove_fake_margins': True,
 'remove_first_image': False,
 'remove_paragraph_spacing': True,
 'remove_paragraph_spacing_indent_size': 1.5,
 'renumber_headings': True,
 'replace_scene_breaks': u'',
 'search_replace': '[]',
 'series': None,
 'series_index': None,
 'smarten_punctuation': True,
 'sr1_replace': None,
 'sr1_search': None,
 'sr2_replace': None,
 'sr2_search': None,
 'sr3_replace': None,
 'sr3_search': None,
 'start_reading_at': None,
 'subset_embedded_fonts': True,
 'tags': None,
 'timestamp': None,
 'title': None,
 'title_sort': None,
 'toc_filter': None,
 'toc_threshold': 6,
 'toc_title': None,
 'transform_css_rules': '[]',
 'unsmarten_punctuation': False,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\bart\AppData\Local\Temp\calibre_isi1no\9puxzh.epub
Found HTML cover OEBPS/Text/titlepage.xhtml
Parsing all content...
Parsing OEBPS/Text/28.xhtml ...
Parsing OEBPS/Text/36.xhtml ...
Parsing OEBPS/Text/27.xhtml ...
Parsing OEBPS/Text/10.xhtml ...
Parsing page_styles.css ...
Parsing OEBPS/Text/achterkant.xhtml ...
Parsing OEBPS/Text/2.xhtml ...
Parsing stylesheet.css ...
Parsing OEBPS/Text/11.xhtml ...
Parsing OEBPS/Text/1.xhtml ...
Parsing OEBPS/Text/24.xhtml ...
Parsing OEBPS/Text/21.xhtml ...
Parsing OEBPS/Text/29.xhtml ...
Parsing OEBPS/Text/25.xhtml ...
Parsing OEBPS/Text/12.xhtml ...
Parsing OEBPS/Text/3.xhtml ...
Parsing OEBPS/Text/26.xhtml ...
Parsing jacket.xhtml ...
Parsing OEBPS/Text/In memoriam.xhtml ...
Parsing OEBPS/Text/30.xhtml ...
Parsing OEBPS/Text/4.xhtml ...
Parsing OEBPS/Text/13.xhtml ...
Parsing OEBPS/Text/31.xhtml ...
Parsing OEBPS/Text/14.xhtml ...
Parsing OEBPS/Text/23.xhtml ...
Parsing OEBPS/Text/Titelpagina.xhtml ...
Parsing OEBPS/Text/5.xhtml ...
Parsing OEBPS/Text/15.xhtml ...
Parsing OEBPS/Text/32.xhtml ...
Parsing OEBPS/Text/16.xhtml ...
Parsing OEBPS/Text/Copyright.xhtml ...
Parsing OEBPS/Text/6.xhtml ...
Parsing OEBPS/Text/17.xhtml ...
Parsing OEBPS/Text/titlepage.xhtml ...
Parsing OEBPS/Text/Jacket.xhtml ...
Parsing OEBPS/Text/33.xhtml ...
Parsing OEBPS/Text/18.xhtml ...
Parsing OEBPS/Text/7.xhtml ...
Parsing OEBPS/Text/20.xhtml ...
Parsing OEBPS/Text/34.xhtml ...
Parsing OEBPS/Text/19.xhtml ...
Parsing OEBPS/Text/8.xhtml ...
Parsing OEBPS/Text/22.xhtml ...
Parsing OEBPS/Text/35.xhtml ...
Parsing OEBPS/Text/In memoriam.xhtml ...
Parsing OEBPS/Text/9.xhtml ...
Removing duplicate manifest item with id: id0
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Removed existing jacket
Flattening CSS and remapping font sizes...
Source base font size is 9.99996pt
Removing fake margins...
Found 1703 items of level: p_1
Found 1 items of level: div_1
p_1  left margin stats: Counter({u'0': 1703})
p_1  right margin stats: Counter({u'0': 1703})
div_1  left margin stats: Counter()
div_1  right margin stats: Counter()
No embedded fonts found
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'OEBPS/Text/titlepage.xhtml' from manifest
Creating EPUB Output...
	Generating in-line ToC
Rescaling image from 452x751 to 413x686 OEBPS/Images/back.jpg
Rescaling image from 610x1000 to 418x686 cover.jpeg
Splitting markup on page breaks and flow limits, if any...
	Looking for large trees in OEBPS/Text/28.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/36.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/27.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/10.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/achterkant.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/2.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/11.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/1.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/24.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/21.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/29.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/25.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/12.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/3.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/26.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/30.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/4.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/13.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/31.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/14.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/23.xhtml...
	No large trees found
		Splitting on page-break at id=calibre_pb_0
		Splitting on page-break at id=sigil_toc_id_1
	Looking for large trees in OEBPS/Text/Titelpagina.xhtml...
	No large trees found
	Split into 2 parts
	Looking for large trees in OEBPS/Text/5.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/15.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/32.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/16.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/Copyright.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/6.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/17.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/Jacket.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/33.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/18.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/7.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/20.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/34.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/19.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/8.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/22.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/35.xhtml...
	No large trees found
	Looking for large trees in contents.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/In%20memoriam.xhtml...
	No large trees found
	Looking for large trees in OEBPS/Text/9.xhtml...
	No large trees found
Removing anchor from TOC href: OEBPS/Text/Titelpagina_split_001.xhtml#sigil_toc_id_1
The cover image has an id != "cover". Renaming to work around bug in Nook Color
Upgrading to EPUB 3...
Python function terminated unexpectedly
  'NoneType' object has no attribute 'find' (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 101, in main
  File "site.py", line 78, in run_entry_point
  File "site-packages\calibre\utils\ipc\worker.py", line 195, in main
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 33, in gui_convert_override
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 26, in gui_convert
  File "site-packages\calibre\ebooks\conversion\plumber.py", line 1251, in run
  File "site-packages\calibre\ebooks\conversion\plugins\epub_output.py", line 260, in convert
  File "site-packages\calibre\ebooks\conversion\plugins\epub_output.py", line 301, in upgrade_to_epub3
  File "site-packages\calibre\ebooks\oeb\polish\upgrade.py", line 126, in epub_2_to_3
  File "site-packages\calibre\ebooks\oeb\polish\upgrade.py", line 112, in create_nav
  File "site-packages\calibre\ebooks\oeb\polish\toc.py", line 662, in commit_nav_toc
  File "site-packages\calibre\ebooks\oeb\polish\container.py", line 513, in href_to_name
  File "site-packages\calibre\ebooks\oeb\polish\container.py", line 114, in href_to_name
  File "urlparse.py", line 143, in urlparse
  File "urlparse.py", line 182, in urlsplit
AttributeError: 'NoneType' object has no attribute 'find'
Confirmed when using the epub3 output.
Spoiler:
Code:
Convert book 1 of 1 (Retribution at Black Gap)
Conversion options changed from defaults:
  cover: u'C:\\Users\\g\\AppData\\Local\\Temp\\calibre_4dg5gv\\wiehef.jpeg'
  chapter: u'/'
  page_breaks_before: u'/'
  output_profile: 'tablet'
  margin_bottom: 2.0
  verbose: 2
  read_metadata_from_opf: u'C:\\Users\\g\\AppData\\Local\\Temp\\calibre_4dg5gv\\roo9y3.opf'
  margin_top: 4.0
  minimum_line_height: 0.0
  extra_css: u'p{margin-bottom: 0em;margin-top: 0em;}\nbody{line-height: 1.2; widows:  0;\n   orphans:  0;}'
  expand_css: True
  epub_version: u'3'
  max_toc_links: 160
  margin_left: 3.0
  preserve_cover_aspect_ratio: True
  margin_right: 3.0
  remove_fake_margins: False
  change_justification: u'justify'
Resolved conversion options
calibre version: 3.24.1
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 'change_justification': u'justify',
 'chapter': u'/',
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': u'C:\\Users\\g\\AppData\\Local\\Temp\\calibre_4dg5gv\\wiehef.jpeg',
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'dont_split_on_page_breaks': False,
 'duplicate_links_in_toc': False,
 'embed_all_fonts': False,
 'embed_font_family': None,
 'enable_heuristics': False,
 'epub_flatten': False,
 'epub_inline_toc': False,
 'epub_toc_at_end': False,
 'epub_version': u'3',
 'expand_css': True,
 'extra_css': u'p{margin-bottom: 0em;margin-top: 0em;}\nbody{line-height: 1.2; widows:  0;\n   orphans:  0;}',
 'extract_to': None,
 'filter_css': u'',
 'fix_indents': True,
 'flow_size': 260,
 'font_size_mapping': None,
 'format_scene_breaks': True,
 'html_unwrap_factor': 0.4,
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x04652C90>,
 'insert_blank_line': False,
 'insert_blank_line_size': 0.5,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': True,
 'keep_ligatures': False,
 'language': None,
 'level1_toc': None,
 'level2_toc': None,
 'level3_toc': None,
 'line_height': 0.0,
 'linearize_tables': False,
 'margin_bottom': 2.0,
 'margin_left': 3.0,
 'margin_right': 3.0,
 'margin_top': 4.0,
 'markup_chapter_headings': True,
 'max_toc_links': 160,
 'minimum_line_height': 0.0,
 'no_chapters_in_toc': False,
 'no_default_epub_cover': False,
 'no_inline_navbars': False,
 'no_svg_cover': False,
 'output_profile': <calibre.customize.profiles.TabletOutput object at 0x0463A2B0>,
 'page_breaks_before': u'/',
 'prefer_metadata_cover': False,
 'preserve_cover_aspect_ratio': True,
 'pretty_print': True,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'C:\\Users\\g\\AppData\\Local\\Temp\\calibre_4dg5gv\\roo9y3.opf',
 'remove_fake_margins': False,
 'remove_first_image': False,
 'remove_paragraph_spacing': False,
 'remove_paragraph_spacing_indent_size': 1.5,
 'renumber_headings': True,
 'replace_scene_breaks': u'',
 'search_replace': '[]',
 'series': None,
 'series_index': None,
 'smarten_punctuation': False,
 'sr1_replace': None,
 'sr1_search': None,
 'sr2_replace': None,
 'sr2_search': None,
 'sr3_replace': None,
 'sr3_search': None,
 'start_reading_at': None,
 'subset_embedded_fonts': False,
 'tags': None,
 'timestamp': None,
 'title': None,
 'title_sort': None,
 'toc_filter': None,
 'toc_threshold': 6,
 'toc_title': None,
 'transform_css_rules': '[]',
 'unsmarten_punctuation': False,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: MOBI Input running
on C:\Users\g\AppData\Local\Temp\calibre_4dg5gv\8lpsnd.azw3
Found KF8 MOBI of type 'standalone'
Extracting text...
Parsing all content...
Parsing styles/0001.css ...
Parsing text/part0000.html ...
Forcing text/part0000.html into XHTML namespace
Referenced file u'text/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' not found
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'images/00003.jpeg' from manifest
Creating EPUB Output...
Splitting markup on page breaks and flow limits, if any...
		Splitting on page-break at id=calibre_pb_0
		Splitting on page-break at id=calibre_pb_1
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_2
		Splitting on page-break at id=calibre_pb_3
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_4
		Splitting on page-break at id=calibre_pb_5
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_6
		Splitting on page-break at id=calibre_pb_7
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_8
		Splitting on page-break at id=calibre_pb_9
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_10
		Splitting on page-break at id=calibre_pb_11
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_12
		Splitting on page-break at id=calibre_pb_13
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_14
		Splitting on page-break at id=calibre_pb_15
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_16
		Splitting on page-break at id=calibre_pb_17
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_18
		Splitting on page-break at id=calibre_pb_19
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_20
		Splitting on page-break at id=calibre_pb_21
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_22
		Splitting on page-break at id=calibre_pb_23
Adjusted split point to ancestor
	Looking for large trees in text/part0000.html...
	No large trees found
	Split into 13 parts
Removing anchor from TOC href: text/part0000_split_003.html#_Toc458597640
Removing anchor from TOC href: text/part0000_split_004.html#_Toc458597641
Removing anchor from TOC href: text/part0000_split_005.html#_Toc458597642
Removing anchor from TOC href: text/part0000_split_006.html#_Toc458597643
Removing anchor from TOC href: text/part0000_split_007.html#_Toc458597644
Removing anchor from TOC href: text/part0000_split_008.html#_Toc458597645
Removing anchor from TOC href: text/part0000_split_009.html#_Toc458597646
Removing anchor from TOC href: text/part0000_split_010.html#_Toc458597647
Removing anchor from TOC href: text/part0000_split_011.html#_Toc458597648
Removing anchor from TOC href: text/part0000_split_012.html#_Toc458597649
Upgrading to EPUB 3...
Python function terminated unexpectedly
  'NoneType' object has no attribute 'find' (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 101, in main
  File "site.py", line 78, in run_entry_point
  File "site-packages\calibre\utils\ipc\worker.py", line 195, in main
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 33, in gui_convert_override
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 26, in gui_convert
  File "site-packages\calibre\ebooks\conversion\plumber.py", line 1251, in run
  File "site-packages\calibre\ebooks\conversion\plugins\epub_output.py", line 260, in convert
  File "site-packages\calibre\ebooks\conversion\plugins\epub_output.py", line 301, in upgrade_to_epub3
  File "site-packages\calibre\ebooks\oeb\polish\upgrade.py", line 126, in epub_2_to_3
  File "site-packages\calibre\ebooks\oeb\polish\upgrade.py", line 112, in create_nav
  File "site-packages\calibre\ebooks\oeb\polish\toc.py", line 662, in commit_nav_toc
  File "site-packages\calibre\ebooks\oeb\polish\container.py", line 513, in href_to_name
  File "site-packages\calibre\ebooks\oeb\polish\container.py", line 114, in href_to_name
  File "urlparse.py", line 143, in urlparse
  File "urlparse.py", line 182, in urlsplit
AttributeError: 'NoneType' object has no attribute 'find'

Works as expected using epub2.
Spoiler:
Code:
Convert book 1 of 1 (Retribution at Black Gap)
Conversion options changed from defaults:
  extra_css: u'p{margin-bottom: 0em;margin-top: 0em;}\nbody{line-height: 1.2; widows:  0;\n   orphans:  0;}'
  chapter: u'/'
  page_breaks_before: u'/'
  read_metadata_from_opf: u'C:\\Users\\g\\AppData\\Local\\Temp\\calibre_4dg5gv\\krktzf.opf'
  preserve_cover_aspect_ratio: True
  margin_top: 4.0
  remove_fake_margins: False
  expand_css: True
  margin_bottom: 2.0
  verbose: 2
  max_toc_links: 160
  cover: u'C:\\Users\\g\\AppData\\Local\\Temp\\calibre_4dg5gv\\likvjm.jpeg'
  margin_left: 3.0
  output_profile: 'tablet'
  margin_right: 3.0
  minimum_line_height: 0.0
  change_justification: u'justify'
Resolved conversion options
calibre version: 3.24.1
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 'change_justification': u'justify',
 'chapter': u'/',
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': u'C:\\Users\\g\\AppData\\Local\\Temp\\calibre_4dg5gv\\likvjm.jpeg',
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'disable_font_rescaling': False,
 'dont_split_on_page_breaks': False,
 'duplicate_links_in_toc': False,
 'embed_all_fonts': False,
 'embed_font_family': None,
 'enable_heuristics': False,
 'epub_flatten': False,
 'epub_inline_toc': False,
 'epub_toc_at_end': False,
 'epub_version': u'2',
 'expand_css': True,
 'extra_css': u'p{margin-bottom: 0em;margin-top: 0em;}\nbody{line-height: 1.2; widows:  0;\n   orphans:  0;}',
 'extract_to': None,
 'filter_css': u'',
 'fix_indents': True,
 'flow_size': 260,
 'font_size_mapping': None,
 'format_scene_breaks': True,
 'html_unwrap_factor': 0.4,
 'input_encoding': None,
 'input_profile': <calibre.customize.profiles.InputProfile object at 0x04E11CF0>,
 'insert_blank_line': False,
 'insert_blank_line_size': 0.5,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': True,
 'keep_ligatures': False,
 'language': None,
 'level1_toc': None,
 'level2_toc': None,
 'level3_toc': None,
 'line_height': 0.0,
 'linearize_tables': False,
 'margin_bottom': 2.0,
 'margin_left': 3.0,
 'margin_right': 3.0,
 'margin_top': 4.0,
 'markup_chapter_headings': True,
 'max_toc_links': 160,
 'minimum_line_height': 0.0,
 'no_chapters_in_toc': False,
 'no_default_epub_cover': False,
 'no_inline_navbars': False,
 'no_svg_cover': False,
 'output_profile': <calibre.customize.profiles.TabletOutput object at 0x04E04310>,
 'page_breaks_before': u'/',
 'prefer_metadata_cover': False,
 'preserve_cover_aspect_ratio': True,
 'pretty_print': True,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'C:\\Users\\g\\AppData\\Local\\Temp\\calibre_4dg5gv\\krktzf.opf',
 'remove_fake_margins': False,
 'remove_first_image': False,
 'remove_paragraph_spacing': False,
 'remove_paragraph_spacing_indent_size': 1.5,
 'renumber_headings': True,
 'replace_scene_breaks': u'',
 'search_replace': '[]',
 'series': None,
 'series_index': None,
 'smarten_punctuation': False,
 'sr1_replace': None,
 'sr1_search': None,
 'sr2_replace': None,
 'sr2_search': None,
 'sr3_replace': None,
 'sr3_search': None,
 'start_reading_at': None,
 'subset_embedded_fonts': False,
 'tags': None,
 'timestamp': None,
 'title': None,
 'title_sort': None,
 'toc_filter': None,
 'toc_threshold': 6,
 'toc_title': None,
 'transform_css_rules': '[]',
 'unsmarten_punctuation': False,
 'unwrap_lines': True,
 'use_auto_toc': False,
 'verbose': 2}
InputFormatPlugin: MOBI Input running
on C:\Users\g\AppData\Local\Temp\calibre_4dg5gv\mqeusu.azw3
Found KF8 MOBI of type 'standalone'
Extracting text...
Parsing all content...
Parsing text/part0000.html ...
Forcing text/part0000.html into XHTML namespace
Parsing styles/0001.css ...
Referenced file u'text/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' not found
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'images/00003.jpeg' from manifest
Creating EPUB Output...
Splitting markup on page breaks and flow limits, if any...
		Splitting on page-break at id=calibre_pb_0
		Splitting on page-break at id=calibre_pb_1
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_2
		Splitting on page-break at id=calibre_pb_3
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_4
		Splitting on page-break at id=calibre_pb_5
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_6
		Splitting on page-break at id=calibre_pb_7
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_8
		Splitting on page-break at id=calibre_pb_9
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_10
		Splitting on page-break at id=calibre_pb_11
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_12
		Splitting on page-break at id=calibre_pb_13
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_14
		Splitting on page-break at id=calibre_pb_15
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_16
		Splitting on page-break at id=calibre_pb_17
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_18
		Splitting on page-break at id=calibre_pb_19
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_20
		Splitting on page-break at id=calibre_pb_21
Adjusted split point to ancestor
		Splitting on page-break at id=calibre_pb_22
		Splitting on page-break at id=calibre_pb_23
Adjusted split point to ancestor
	Looking for large trees in text/part0000.html...
	No large trees found
	Split into 13 parts
Removing anchor from TOC href: text/part0000_split_003.html#_Toc458597640
Removing anchor from TOC href: text/part0000_split_004.html#_Toc458597641
Removing anchor from TOC href: text/part0000_split_005.html#_Toc458597642
Removing anchor from TOC href: text/part0000_split_006.html#_Toc458597643
Removing anchor from TOC href: text/part0000_split_007.html#_Toc458597644
Removing anchor from TOC href: text/part0000_split_008.html#_Toc458597645
Removing anchor from TOC href: text/part0000_split_009.html#_Toc458597646
Removing anchor from TOC href: text/part0000_split_010.html#_Toc458597647
Removing anchor from TOC href: text/part0000_split_011.html#_Toc458597648
Removing anchor from TOC href: text/part0000_split_012.html#_Toc458597649
EPUB output written to C:\Users\g\AppData\Local\Temp\calibre_4dg5gv\_civhk.epub
bernie
gbm is offline   Reply With Quote
Old 05-26-2018, 11:01 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://bugs.launchpad.net/calibre/+bug/1773533
kovidgoyal is offline   Reply With Quote
Old 05-27-2018, 02:05 AM   #4
Superbra
Junior Member
Superbra began at the beginning.
 
Posts: 7
Karma: 10
Join Date: May 2018
Device: Kobo Aura One
Thumbs up

I just tried conversion to epub2 and can confirm this works as expected. I wanted to add this to my bug report but it seems I'm too late. The bug was fixed already.

Impressive! Overnight (for me) bug fixing for a free tool. Can't thank you enough kovidgoyal!!!
Superbra is offline   Reply With Quote
Old 05-27-2018, 02:11 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You're welcome It was just a stupid oversight I made, so the fix was simple. I releases version 3.24.2 with the fix as well.
kovidgoyal is offline   Reply With Quote
Old 05-27-2018, 06:25 AM   #6
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,270
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Just too fast on the fixes. I stopped by to check into and post about epub3 conversion issues and the fix is already released.
DNSB is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error converting epub to kepub Lemmi Conversion 6 01-08-2017 08:14 AM
Error converting .CBC to EPUB marvi1 Conversion 2 11-05-2016 09:59 AM
Getting an error converting epub to mobi thosrtanner Conversion 3 03-10-2012 10:51 AM
Error when converting from EPUB to PDF slex Conversion 3 05-28-2011 05:04 PM
Error when converting to Mobi and Epub Amalthia Calibre 3 05-11-2009 04:18 AM


All times are GMT -4. The time now is 10:03 PM.


MobileRead.com is a privately owned, operated and funded community.