Error communicating with Kobo Glo

Bug #1254234 reported by David J. Anderson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Kobo Touch Extended Driver
Invalid
Critical
Joel Goguen

Bug Description

When trying to send books to the Kobo Glo (version 2.10.0) with Calibre 1.12.0, (on OS x 10.90), I get "Error communicating with device" message every time. Here is the detailed message:

ERROR: Error: Error communicating with device

Failed to parse '1Q84' by 'Haruki Murakami' with error: '' (file:
calibre_plugins.kobotouch_extended.container, line: 120)

Traceback (most recent call last):
File "site-packages/calibre/gui2/device.py", line 85, in run
File "site-packages/calibre/gui2/device.py", line 561, in _upload_books
File "calibre_plugins.kobotouch_extended.device.driver", line 276, in upload_books
File "site-packages/calibre/devices/kobo/driver.py", line 1888, in upload_books
File "calibre_plugins.kobotouch_extended.device.driver", line 220, in _modify_epub
InvalidEPub: Failed to parse '1Q84' by 'Haruki Murakami' with error: '' (file: calibre_plugins.kobotouch_extended.container, line: 120)

I tried sending a book with the previous version (1.11) on a different computer, and it worked (although with a message about being unable to update the Kobo database because of the Kobo software version.)

The epub files do not have errors. I have validated them. And, it happens with all my books.

I have contacted Kovid, but he wanted me to send a bug report to you.

After sending the previous bug report to Kovid, I reinstalled Calibre 1.11, and everything works correctly. I am running the latest version of the Kobo Extended driver, 2.2.13.

Thanks for your help, and good luck.

Joel Goguen (jgoguen)
Changed in calibre-kobo-driver:
assignee: nobody → Joel Goguen (jgoguen)
status: New → Incomplete
Revision history for this message
Joel Goguen (jgoguen) wrote :

I need the book itself, you must mark the bug as Private before uploading a book, and I still want the calibre debug log. Please go read the README file at https://github.com/jgoguen/calibre-kobo-driver and read the section on reporting bugs to see exactly what is needed. These directions are also shown when you open a new bug.

information type: Public → Private
information type: Private → Public
information type: Public → Private
Revision history for this message
David J. Anderson (redjawriter) wrote :
Download full text (13.7 KiB)

I figured out how to mark this private, so I'm now sending the book, which is attached. Here is the content of the Calibre debug file:

2013-11-23 08:57:56.482 calibre-debug[1210:507] CoreText performance note: Client called CTFontCreateWithName() using name "Optima" and got font with PostScript name "Optima-Regular". For best performance, only use PostScript names when calling this API.
2013-11-23 08:57:56.483 calibre-debug[1210:507] CoreText performance note: Set a breakpoint on CTFontLogSuboptimalRequest to debug.
2013-11-23 08:57:57.681 calibre-debug[1210:507] CoreText performance note: Client called CTFontCreateWithName() using name "Optima" and got font with PostScript name "Optima-Regular". For best performance, only use PostScript names when calling this API.
2013-11-23 08:57:59.548 calibre-debug[1210:507] CoreText performance note: Client called CTFontCreateWithName() using name "Optima" and got font with PostScript name "Optima-Regular". For best performance, only use PostScript names when calling this API.
2013-11-23 08:57:59.550 calibre-debug[1210:507] CoreText performance note: Client called CTFontCreateWithName() using name "Optima" and got font with PostScript name "Optima-Regular". For best performance, only use PostScript names when calling this API.
2013-11-23 08:57:59.721 calibre-debug[1210:507] CoreText performance note: Client called CTFontCreateWithName() using name "Optima" and got font with PostScript name "Optima-Regular". For best performance, only use PostScript names when calling this API.
2013-11-23 08:58:00.214 calibre-debug[1210:507] CoreText performance note: Client called CTFontCreateWithName() using name "Optima" and got font with PostScript name "Optima-Regular". For best performance, only use PostScript names when calling this API.
2013-11-23 08:58:00.215 calibre-debug[1210:507] CoreText performance note: Client called CTFontCreateWithName() using name "calibre Symbols" and got font with PostScript name "calibreSymbols". For best performance, only use PostScript names when calling this API.
2013-11-23 08:58:02.949 Calibre[1217:507] deliverNotificationWithTitle()
* Notification delivered.
calibre Debug log
calibre 1.12 isfrozen: True is64bit: True
Darwin-13.0.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '13.0.0', 'Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64')
Python 2.7.5
OSX: ('10.9', ('', '', ''), 'x86_64')
Starting up...
DEBUG: 0.0 KoboUtilites::dialogs.py - loading translations
DEBUG: 0.0 KoboUtilites::action.py - loading translations
DEBUG: 2.0 No Kobo Touch, Glo or Mini appears to be connected
DEBUG: 2.0 rebuild_menus - self.supports_ratings=False
Job: 1 Get device information started
DeviceJob: 1 Get device information done, calling callback
DeviceJob: 1 Get device information callback returned
Job: 2 Get list of books on device started
DEBUG: 0.0 KoboTouch:books - oncard='None'
DEBUG: 0.0 KoboTouch:books - oncard='None', prefix='/Volumes/KOBOeReader/'
DEBUG: 0.0 Kobo device: Kobo Glo
DEBUG: 0.0 Version of driver: (2, 2, 13) Has kepubs: True
DEBUG: 0.0 Version of firmware: (2, 10, 0) Has kepubs: True
DEBUG: 0.0 F...

Revision history for this message
Joel Goguen (jgoguen) wrote :

For my own reference later, this is also seen with http://cthulhuchick.com/?dl_id=2

Revision history for this message
Joel Goguen (jgoguen) wrote :
Download full text (10.0 KiB)

This stack trace from the conversion plugin gives some better information:

Converti libro 1 di 1 (Hyperion)
Traceback (most recent call last):
  File "site-packages/calibre/customize/zipplugin.py", line 42, in get_resources
  File "lib/python2.7/zipfile.py", line 931, in read
  File "lib/python2.7/zipfile.py", line 957, in open
  File "lib/python2.7/zipfile.py", line 905, in getinfo
KeyError: "There is no item named u'translations/it.mo' in the archive"
Traceback (most recent call last):
  File "site-packages/calibre/customize/zipplugin.py", line 42, in get_resources
  File "lib/python2.7/zipfile.py", line 931, in read
  File "lib/python2.7/zipfile.py", line 957, in open
  File "lib/python2.7/zipfile.py", line 905, in getinfo
KeyError: "There is no item named u'translations/it.mo' in the archive"
Resolved conversion options
calibre version: 1.12.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|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
 'chapter_mark': u'pagebreak',
 'comments': None,
 'cover': u'/var/folders/v1/3_pgkn4j2gd69w23q2_glvm40000gn/T/calibre_1.12.0_tmp_8GyoMq/PivoIe.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,
 '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 0x10b567150>,
 'insert_blank_line': False,
 'insert_blank_line_size': 0.5,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': True,
 'keep_ligatures': False,
 'kepub_clean_markup': True,
 'kepub_hyphenate': True,
 'kepub_replace_lang': True,
 '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.KoboReaderOutput object at 0x10b5678d0>,
 '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'/var/folders/v1/3_pgkn4j2gd69w23q2_glvm40000gn/T/calibre_1.12.0_tmp_8GyoMq/XNmthT.opf',
 'remove_fake_margins': True,
 'remove_first_image': False,
 'remove_paragraph_spacing': False,
 'remove_paragraph_spacing_i...

information type: Private → Public
Changed in calibre-kobo-driver:
status: Incomplete → In Progress
importance: Undecided → Critical
Revision history for this message
Joel Goguen (jgoguen) wrote :

This appears to be a bug in calibre. See https://github.com/kovidgoyal/calibre/pull/143

Changed in calibre-kobo-driver:
status: In Progress → Invalid
Revision history for this message
Joel Goguen (jgoguen) wrote :

The pull request has been merged. The next calibre release will fix this issue.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.