Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-13-2014, 07:03 AM   #1
wiggy97
Member
wiggy97 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2014
Location: London
Device: kindle
'NoneType' object has no attributable 'resource_index' error

I am trying to convert an azw3 ebook to pdf and get a conversion failed message. Even trying to open the file in Calibre gives me the above message. All my other e-books are fine both to open and convert.
What am I doing wrong please?
wiggy97 is offline   Reply With Quote
Old 08-13-2014, 07:04 AM   #2
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: 45,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://www.mobileread.com/forums/sho...d.php?t=186697
kovidgoyal is online now   Reply With Quote
Advert
Old 08-13-2014, 07:21 AM   #3
wiggy97
Member
wiggy97 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Aug 2014
Location: London
Device: kindle
Trying to convert the azw3 to pdf I get the following file
Spoiler:

Convert book 1 of 1 (What Your Cat Wants)
Resolved conversion options
calibre version: 1.48.0
{'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\\DOUGLA~1\\AppData\\Local\\Temp\\calib re_oon2rh\\nrbona.jpeg',
'custom_size': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': False,
'extra_css': None,
'filter_css': u'',
'fix_indents': True,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.KindleInput object at 0x03CBAAD0>,
'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': 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_inline_navbars': False,
'old_pdf_engine': False,
'output_profile': <calibre.customize.profiles.OutputProfile object at 0x03CB98F0>,
'override_profile_size': False,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'paper_size': u'letter',
'pdf_add_toc': True,
'pdf_default_font_size': 20,
'pdf_footer_template': None,
'pdf_header_template': None,
'pdf_mark_links': False,
'pdf_mono_family': u'Courier New',
'pdf_mono_font_size': 16,
'pdf_page_numbers': True,
'pdf_sans_family': u'Agency FB',
'pdf_serif_family': u'Times New Roman',
'pdf_standard_font': u'serif',
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': True,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'C:\\Users\\DOUGLA~1\\AppData\\Local\\Temp\\calib re_oon2rh\\rhwuva.opf',
'remove_fake_margins': True,
'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,
'uncompressed_pdf': False,
'unit': u'inch',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: MOBI Input running
on C:\Users\DOUGLA~1\AppData\Local\Temp\calibre_oon2r h\94fzzz.azw3
Found KF8 MOBI of type 'standalone'
Extracting text...
Python function terminated unexpectedly
'NoneType' object has no attribute 'resource_index' (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, 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 31, in gui_convert_override
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 1040, in run
File "site-packages\calibre\customize\conversion.py", line 241, in __call__
File "site-packages\calibre\ebooks\conversion\plugins\mobi_in put.py", line 43, in convert
File "site-packages\calibre\ebooks\mobi\reader\mobi8.py", line 102, in __call__
File "site-packages\calibre\ebooks\mobi\reader\mobi8.py", line 436, in extract_resources
AttributeError: 'NoneType' object has no attribute 'resource_index'

Just trying to open the book I get

calibre, version 1.48.0
ERROR: Could not open ebook: 'NoneType' object has no attribute 'resource_index'

Traceback (most recent call last):
File "site-packages\calibre\gui2\viewer\main.py", line 33, in run
File "threading.py", line 761, in run
File "site-packages\calibre\ebooks\oeb\iterator\book.py", line 99, in __enter__
File "site-packages\calibre\customize\conversion.py", line 241, in __call__
File "site-packages\calibre\ebooks\conversion\plugins\mobi_in put.py", line 43, in convert
File "site-packages\calibre\ebooks\mobi\reader\mobi8.py", line 102, in __call__
File "site-packages\calibre\ebooks\mobi\reader\mobi8.py", line 436, in extract_resources
AttributeError: 'NoneType' object has no attribute 'resource_index'


Any help gratefully received

Last edited by theducks; 08-13-2014 at 10:20 AM. Reason: wrap huge paste in spoiler
wiggy97 is offline   Reply With Quote
Old 08-13-2014, 12:58 PM   #4
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: 45,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Will be fixed in the next release.
kovidgoyal is online now   Reply With Quote
Old 08-15-2014, 04:04 AM   #5
thisbook
Junior Member
thisbook began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Aug 2014
Device: PW2
edit: sorry. The issue was not as related as I first thought.

Last edited by thisbook; 08-15-2014 at 04:11 AM. Reason: realised issue was not related
thisbook is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
'NoneType' object has no attribute '__getitem__' Steven630 Recipes 2 07-18-2012 09:41 PM
'NoneType' object has no attribute 'tag'? gweminence Calibre 7 09-13-2011 10:03 AM
Adding <guide> produces error: "Nonetype object has no attribute 'lower' MichaelKaufman ePub 2 08-19-2011 06:39 PM
Error help: "Invalid input object: NoneType" MichaelGray ePub 1 02-14-2010 09:16 AM


All times are GMT -4. The time now is 09:19 AM.


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