AttributeError: 'NoneType' object has no attribute 'get'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Conversion Error
Error Log:
1/
Convert book 1 of 1 (American Like Me)
Conversion options changed from defaults:
read_metadata_
cover: u'C:\\Users\
mobi_file_type: u'new'
output_profile: 'kindle_fire'
verbose: 2
Resolved conversion options
calibre version: 3.32.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'C:\\Users\
'debug_pipeline': None,
'dehyphenate': True,
'delete_
'disable_
'dont_compress': False,
'duplicate_
'embed_all_fonts': False,
'embed_
'enable_
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'fix_indents': True,
'font_size_
'format_
'html_unwrap_
'input_encoding': None,
'input_profile': <calibre.
'insert_
'insert_
'insert_metadata': False,
'isbn': None,
'italicize_
'keep_ligatures': False,
'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,
'markup_
'max_toc_links': 50,
'minimum_
'mobi_file_type': u'new',
'mobi_ignore_
'mobi_keep_
'mobi_toc_
'no_chapters_
'no_inline_
'no_inline_toc': False,
'output_profile': <calibre.
'page_breaks_
'personal_doc': u'[PDOC]',
'prefer_
'prefer_
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_
'remove_
'remove_
'remove_
'remove_
'renumber_
'replace_
'search_replace': '[]',
'series': None,
'series_index': None,
'share_not_sync': False,
'smarten_
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'subset_
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_
'unsmarten_
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on C:\Users\
Failed to parse as XML, parsing as tag soup
Traceback (most recent call last):
File "site-packages\
ValueError: Root tag is not <html> in the XHTML namespace
Parsing all content...
Parsing ch26a.xhtml ...
Parsing ch28.xhtml ...
Parsing ch27a.xhtml ...
Parsing ch12a.xhtml ...
Parsing ch25.xhtml ...
Parsing title.xhtml ...
Parsing ch32.xhtml ...
Parsing ch29.xhtml ...
Parsing ch32a.xhtml ...
Parsing ch06.xhtml ...
Parsing ch31a.xhtml ...
Parsing conclusion.xhtml ...
Parsing conclusion01.xhtml ...
Parsing copy.xhtml ...
Parsing ch26.xhtml ...
Parsing ch11.xhtml ...
Parsing ch24.xhtml ...
Parsing cover.xhtml ...
Parsing ch24a.xhtml ...
Parsing ded.xhtml ...
Parsing ch27.xhtml ...
Parsing ch28a.xhtml ...
Parsing ch02.xhtml ...
Parsing ch18.xhtml ...
Parsing styles/
Parsing ch23a.xhtml ...
Parsing ch02a.xhtml ...
Parsing ch13a.xhtml ...
Parsing ch05.xhtml ...
Parsing ch14a.xhtml ...
Parsing ch03.xhtml ...
Parsing ch01.xhtml ...
Parsing ch01a.xhtml ...
Parsing ch13.xhtml ...
Parsing ch15a.xhtml ...
Parsing ch06a.xhtml ...
Parsing ch16.xhtml ...
Parsing ch04a.xhtml ...
Parsing ch05a.xhtml ...
Parsing ch03a.xhtml ...
Parsing ch09a.xhtml ...
Parsing ch17a.xhtml ...
Parsing styles/
Parsing toc.xhtml ...
Parsing ch08a.xhtml ...
Parsing ch14.xhtml ...
Parsing ch18a.xhtml ...
Parsing ch19.xhtml ...
Parsing ch19a.xhtml ...
Parsing ch11a.xhtml ...
Parsing ch20.xhtml ...
Parsing ch20a.xhtml ...
Parsing ch21.xhtml ...
Parsing ch08.xhtml ...
Parsing ch21a.xhtml ...
Parsing ch22.xhtml ...
Parsing ch22a.xhtml ...
Parsing ch04.xhtml ...
Parsing ch23.xhtml ...
Parsing ch07.xhtml ...
Parsing SS_US_adult_
Parsing author.xhtml ...
Parsing ch25a.xhtml ...
Parsing acknowledgments
Parsing SS_US_adult_
Parsing ch10a.xhtml ...
Parsing ch31.xhtml ...
Parsing ch30a.xhtml ...
Parsing ch30.xhtml ...
Parsing ch15.xhtml ...
Parsing styles/
Parsing ch07a.xhtml ...
Parsing ch09.xhtml ...
Parsing ch16a.xhtml ...
Parsing ch10.xhtml ...
Parsing ch17.xhtml ...
Parsing intro.xhtml ...
Parsing introa.xhtml ...
Parsing ch29a.xhtml ...
Parsing ch12.xhtml ...
Reading TOC from HTML...
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Found image encoded as data URI converting it to normal image
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Python function terminated unexpectedly
'NoneType' object has no attribute 'get' (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\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
File "site-packages\
AttributeError: 'NoneType' object has no attribute 'get'
I think this might be a combination of a formatting error in the eBook file (missing root element) and a small bug (maybe a formatting error? in the python code).
information type: | Private → Public |
Attach the ebook file demonstrating/ reproducing the problem to this bug report. You can do that by clicking the "Add attachment or patch" link at the bottom of the bug's page. If the file you are attaching is copyrighted, mark the bug as private. You can do this by clicking the tiny yellow icon next to "This report contains Public information" in the top right area of the bug's page.
status incomplete