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 01-28-2017, 04:17 PM   #1
Geremia
Addict
Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!
 
Posts: 256
Karma: 100000
Join Date: Oct 2012
Device: Calibre
KeyError: u'MimeType'

I get this error when trying to open a DjVu or PDF file in Calibre (by typing "o"):
Code:
calibre, version 2.78.0
ERROR: Unhandled exception: <b>KeyError</b>:u'MimeType'

calibre 2.78  embedded-python: True is64bit: True
Linux-4.4.38-x86_64-with-slackware-14.2 Linux ('64bit', 'ELF')
('Linux', '4.4.38', '#2 SMP Sun Dec 11 16:11:02 CST 2016')
Python 2.7.9
Linux: ('Slackware ', '14.2', '')
Traceback (most recent call last):
  File "site-packages/calibre/gui2/dialogs/choose_format.py", line 76, in choose_open_with
  File "site-packages/calibre/gui2/open_with.py", line 313, in choose_program
  File "site-packages/calibre/gui2/open_with.py", line 220, in finalize_entry
KeyError: u'MimeType'
For some reason, it seems to think Okular is not a DjVu or PDF reader, yet it is set as one in my system's file associations. Is this a Calibre issue or something on my end?

Update: I just discovered it was an associations issue on my end.

Last edited by Geremia; 01-28-2017 at 04:24 PM.
Geremia is offline   Reply With Quote
Old 01-28-2017, 09:06 PM   #2
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: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
for reporting back
theducks is offline   Reply With Quote
Advert
Old 01-29-2017, 10:19 AM   #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: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'm confused, at least with default keybindings, typing O opens the folder that contains the book file. Have you re-mapped o to something else?
kovidgoyal is offline   Reply With Quote
Old 02-03-2017, 09:39 AM   #4
Geremia
Addict
Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!Geremia rocks like Gibraltar!
 
Posts: 256
Karma: 100000
Join Date: Oct 2012
Device: Calibre
Quote:
Originally Posted by kovidgoyal View Post
I'm confused, at least with default keybindings, typing O opens the folder that contains the book file. Have you re-mapped o to something else?
I got the same problem when typing "v" to open it in a viewer and when typing "o" to open the containing folder. For some reason, my system's file associations caused "v" to open the book in my web browser and "o" to open the containing folder also in my web browser. But correcting my system's file associations fixed the Calibre error.
Geremia 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
KeyError: u'kind' senhal Calibre 2 06-19-2016 03:37 PM
KeyError:u'set_to_default' phossler Editor 8 11-28-2014 09:43 PM
RE: Zipping/Mimetype/? Hitch Sigil 31 08-02-2013 05:15 PM
KeyError when changing libraries macnab69 Library Management 5 06-29-2013 11:18 AM
epub et mimetype merlinetmoi E-Books 4 09-10-2010 01:20 AM


All times are GMT -4. The time now is 06:28 PM.


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