Package: calibre
Version: 2.75.1+dfsg-1
Severity: important

The following exception is seen when choosing a different program for
"Open With".

calibre, version 2.75.1
ERROR: Unhandled exception: <b>KeyError</b>:u'MimeType'

calibre 2.75.1  embedded-python: False is64bit: True
Linux-4.10.0-rc8+-x86_64-with-debian-9.0 Linux ('64bit', '')
('Linux', '4.10.0-rc8+', '#16 SMP Mon Feb 13 16:57:58 IST 2017')
Python 2.7.13
Linux: ('debian', '9.0', '')
Successfully initialized third party plugins: Reading List (1, 6, 6)
Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/book_details.py", line 544, in 
choose_open_with
    entry = choose_program(fmt, self)
  File "/usr/lib/calibre/calibre/gui2/open_with.py", line 313, in choose_program
    entry = finalize_entry(entry)
  File "/usr/lib/calibre/calibre/gui2/open_with.py", line 220, in finalize_entry
    entry['MimeType'] = tuple(entry['MimeType'])
KeyError: u'MimeType'

Steps to reproduce:

* Select a book
* On RHS, right click on label "Formats: type"
* Open File with....
* Add another application. Here, choose a binary, like: /usr/bin/okular

Exception triggered.

-- System Information:
Debian Release: 9.0
  APT prefers unstable-debug
  APT policy: (990, 'unstable-debug'), (990, 'testing-debug'), (990, 
'unstable'), (990, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.10.0-rc8+ (SMP w/4 CPU cores)
Locale: LANG=en_IN.utf8, LC_CTYPE=en_IN.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages calibre depends on:
ii  calibre-bin                      2.75.1+dfsg-1
ii  fonts-liberation                 1:1.07.4-2
ii  imagemagick                      8:6.9.7.4+dfsg-1
ii  imagemagick-6.q16 [imagemagick]  8:6.9.7.4+dfsg-1
ii  libjs-mathjax                    2.7.0-1
ii  poppler-utils                    0.48.0-2
ii  python-apsw                      3.16.2-r1-2
ii  python-beautifulsoup             3.2.1-1
ii  python-chardet                   2.3.0-2
ii  python-cherrypy3                 3.5.0-2
ii  python-cssselect                 1.0.1-1
ii  python-cssutils                  1.0-4.1
ii  python-dateutil                  2.5.3-2
ii  python-dbus                      1.2.4-1
ii  python-feedparser                5.1.3-3
ii  python-imaging                   4.0.0-4
ii  python-lxml                      3.7.1-1
ii  python-markdown                  2.6.8-1
ii  python-mechanize                 1:0.2.5-3
ii  python-netifaces                 0.10.4-0.1+b2
ii  python-pil                       4.0.0-4
ii  python-pkg-resources             33.1.1-1
ii  python-pyparsing                 2.1.10+dfsg1-1
ii  python-pyqt5                     5.7+dfsg-5
ii  python-pyqt5.qtsvg               5.7+dfsg-5
ii  python-pyqt5.qtwebkit            5.7+dfsg-5
ii  python-routes                    2.3.1-2
ii  python2.7                        2.7.13-2
ii  xdg-utils                        1.1.1-1

Versions of packages calibre recommends:
ii  python-dnspython  1.15.0-1

calibre suggests no packages.

-- no debconf information

Reply via email to