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

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 01-17-2013, 08:21 AM   #1
imageraw
Connoisseur
imageraw began at the beginning.
 
Posts: 73
Karma: 10
Join Date: Apr 2012
Location: Hamburg
Device: sony prs-650
calibre unexpected conversion error <SOLVED>

hello, wondering if you could help me out here. I'm on Ubuntu 12.04 + Calibre 0.8.70. I regularly buy eBooks from Amazon and read them on my Sony erader through Calibre (o.

All of a sudden, I cannot convert one eBook - it appears as an AZW3 on Calibre after importing it - and I get a conversion error. Here's the content of the error window:

Convert book 1 of 1 (Imagined Communities: Reflections on the Origin and Spread of Nationalism)
Resolved conversion options
calibre version: 0.8.70
{'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'/tmp/calibre_0.8.70_tmp_Kqo5Hs/YWODE4.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,
'enable_heuristics': False,
'epub_flatten': 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 0x99e70ec>,
'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_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.SonyReader300Output object at 0x9a0494c>,
'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'/tmp/calibre_0.8.70_tmp_Kqo5Hs/AQX_SG.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,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: MOBI Input running
on /tmp/calibre_0.8.70_tmp_Kqo5Hs/emn0OA.azw3
Found KF8 MOBI of type 'standalone'
Extracting text...
Traceback (most recent call last):
File "/usr/bin/calibre-parallel", line 20, in <module>
sys.exit(main())
File "/usr/lib/calibre/calibre/utils/ipc/worker.py", line 186, in main
result = func(*args, **kwargs)
File "/usr/lib/calibre/calibre/gui2/convert/gui_conversion.py", line 31, in gui_convert_override
override_input_metadata=True)
File "/usr/lib/calibre/calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
plumber.run()
File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 989, in run
accelerators, tdir)
File "/usr/lib/calibre/calibre/customize/conversion.py", line 239, in __call__
log, accelerators)
File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/mobi_input.py", line 40, in convert
opf = os.path.abspath(mr())
File "/usr/lib/calibre/calibre/ebooks/mobi/reader/mobi8.py", line 70, in __call__
spine = self.expand_text(resource_map)
File "/usr/lib/calibre/calibre/ebooks/mobi/reader/mobi8.py", line 382, in expand_text
return expand_mobi8_markup(self, resource_map, self.log)
File "/usr/lib/calibre/calibre/ebooks/mobi/reader/markup.py", line 301, in expand_mobi8_markup
parts = update_internal_links(mobi8_reader)
File "/usr/lib/calibre/calibre/ebooks/mobi/reader/markup.py", line 39, in update_internal_links
int(offset, 32))
File "/usr/lib/calibre/calibre/ebooks/mobi/reader/mobi8.py", line 246, in get_id_tag_by_pos_fid
idtext = self.get_id_tag(pos)
File "/usr/lib/calibre/calibre/ebooks/mobi/reader/mobi8.py", line 254, in get_id_tag
raise ValueError('No file contains pos: %d'%pos)
ValueError: No file contains pos: 8254951
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 103, in apport_excepthook
if pr.check_ignored():
File "/usr/lib/python2.7/dist-packages/apport/report.py", line 895, in check_ignored
dom = self._get_ignore_dom()
File "/usr/lib/python2.7/dist-packages/apport/report.py", line 837, in _get_ignore_dom
dom = xml.dom.getDOMImplementation().createDocument(None , 'apport', None)
File "/usr/lib/python2.7/dist-packages/cssutils/__init__.py", line 166, in createDocument
raise NotImplementedError
NotImplementedError

Original exception was:
Traceback (most recent call last):
File "/usr/bin/calibre-parallel", line 20, in <module>
sys.exit(main())
File "/usr/lib/calibre/calibre/utils/ipc/worker.py", line 186, in main
result = func(*args, **kwargs)
File "/usr/lib/calibre/calibre/gui2/convert/gui_conversion.py", line 31, in gui_convert_override
override_input_metadata=True)
File "/usr/lib/calibre/calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
plumber.run()
File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 989, in run
accelerators, tdir)
File "/usr/lib/calibre/calibre/customize/conversion.py", line 239, in __call__
log, accelerators)
File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/mobi_input.py", line 40, in convert
opf = os.path.abspath(mr())
File "/usr/lib/calibre/calibre/ebooks/mobi/reader/mobi8.py", line 70, in __call__
spine = self.expand_text(resource_map)
File "/usr/lib/calibre/calibre/ebooks/mobi/reader/mobi8.py", line 382, in expand_text
return expand_mobi8_markup(self, resource_map, self.log)
File "/usr/lib/calibre/calibre/ebooks/mobi/reader/markup.py", line 301, in expand_mobi8_markup
parts = update_internal_links(mobi8_reader)
File "/usr/lib/calibre/calibre/ebooks/mobi/reader/markup.py", line 39, in update_internal_links
int(offset, 32))
File "/usr/lib/calibre/calibre/ebooks/mobi/reader/mobi8.py", line 246, in get_id_tag_by_pos_fid
idtext = self.get_id_tag(pos)
File "/usr/lib/calibre/calibre/ebooks/mobi/reader/mobi8.py", line 254, in get_id_tag
raise ValueError('No file contains pos: %d'%pos)
ValueError: No file contains pos: 8254951


Thanks!

Last edited by imageraw; 01-17-2013 at 10:13 AM. Reason: solved
imageraw is offline   Reply With Quote
Old 01-17-2013, 08:54 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: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to uninstall your distro provided calibre package and install the official calibre package from here:http://calibre-ebook.com/download_linux
kovidgoyal is offline   Reply With Quote
Advert
Old 01-17-2013, 09:05 AM   #3
imageraw
Connoisseur
imageraw began at the beginning.
 
Posts: 73
Karma: 10
Join Date: Apr 2012
Location: Hamburg
Device: sony prs-650
thanks kovidgoyal for your prompt advice.

I'd be glad to do what you suggest, though a) I think I tried that before and for some reason I had to re-install the package provided by Ubuntu (conversion wouldn't work on the official calibre package), b) it's the first time I've been unable to convert AZW3 books on the 0.8.70 version. I've just converted two other AZW3 books no problem...

Sorry I'm confused. Why do you think I should replace Calibre?
imageraw is offline   Reply With Quote
Old 01-17-2013, 09:22 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by imageraw View Post
thanks kovidgoyal for your prompt advice.

I'd be glad to do what you suggest, though a) I think I tried that before and for some reason I had to re-install the package provided by Ubuntu (conversion wouldn't work on the official calibre package), b) it's the first time I've been unable to convert AZW3 books on the 0.8.70 version. I've just converted two other AZW3 books no problem...

Sorry I'm confused. Why do you think I should replace Calibre?
Because the Ubuntu Distro are weeks out of date when each Distro is released. (Don't waste your time with this on any Ubuntu ugrade)

Uninstall with Synaptic, the run the command line (copy and paste into a console window) on the Calibre Linux download page.

Note: The you will need to use this same Commandline for any Calibre update you choose to install. No need to uninstall the previous Commandline version (Synaptic no longer effects these installs).
theducks is offline   Reply With Quote
Old 01-17-2013, 10:11 AM   #5
imageraw
Connoisseur
imageraw began at the beginning.
 
Posts: 73
Karma: 10
Join Date: Apr 2012
Location: Hamburg
Device: sony prs-650
Gotcha done it and all is well. Thanks tons.
imageraw is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Conversion Error jhanlon Conversion 5 02-29-2012 02:06 PM
Unexpected error Kinjin Amazon Kindle 3 11-25-2011 04:57 AM
Unexpected error driving me mad Arthur Nibble Kindle Formats 1 11-11-2011 04:51 PM
Calibre Conversion Error eucalyptus Calibre 1 11-17-2010 11:09 AM
Unexpected conversion jusmee Calibre 4 11-05-2009 10:30 AM


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


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