Callibre not letting me open mobi file in Kindle

Bug #1873972 reported by Dale Scott Rothman on 2020-04-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

I just installed Calibre version 4.13.0 on my Mac running Catalina version 10.15.4. I am having no problem viewing .mobi files from inside Calibre when I choose the E-book viewer. However, if I select View with a specific format and then try to add Kindle as a program to Open .mobi files with, I receive the errors below. I am using the latest version of Kindle for Mac (1.28) and have no problem opening the .mobi file directly in Kindle.

Sincerely, Dale S. Rothman

calibre, version 4.13.0
ERROR: Invalid Application: /Applications/Kindle.app is not a valid macOS application bundle.

calibre, version 4.13.0
ERROR: Unhandled exception: <b>TypeError</b>:'int' object has no attribute '__getitem__'

calibre 4.13 embedded-python: True is64bit: True
Darwin-19.4.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '19.4.0', 'Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64')
Python 2.7.16
OSX: ('10.15.4', ('', '', ''), 'x86_64')
Interface language: None
Traceback (most recent call last):
  File "site-packages/calibre/gui2/dialogs/choose_format.py", line 83, in choose_open_with
  File "site-packages/calibre/gui2/open_with.py", line 326, in choose_program
  File "site-packages/calibre/gui2/open_with.py", line 158, in finalize_entry
TypeError: 'int' object has no attribute '__getitem__'

That error indicates /Applications/Kindle.app is not a valid aplication
bundle. How did you install it, and does it actually run??

I suggest re-installing it.

 status invalid

Changed in calibre:
status: New → Invalid
Dale Scott Rothman (daler6) wrote :

I have reinstalled both calibre (v 4.13) and Kindle for Mac (v 1.28.0). I continue to have the same problem. Also, Kindle for Mac works fine, i.e., I can open .mobi files directly, just not through calibre.

Sincerely, Dale

p.s. I installed Kindle both via the App Store and by downloading the .dmg file. There was no difference in behavior.

Kovid Goyal (kovid) wrote :

Then use the choose program manually option in the open with dialog and
choose the actual executable from
/Applications/Kindle.app/Contents/MacOS

Dale Scott Rothman (daler6) wrote :

Still no luck. Here is the error message and details:

calibre, version 4.13.0
ERROR: Unhandled exception: <b>KeyError</b>:u'extensions'

calibre 4.13 embedded-python: True is64bit: True
Darwin-19.4.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '19.4.0', 'Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64')
Python 2.7.16
OSX: ('10.15.4', ('', '', ''), 'x86_64')
Interface language: None
Traceback (most recent call last):
  File "site-packages/calibre/gui2/dialogs/choose_format.py", line 83, in choose_open_with
  File "site-packages/calibre/gui2/open_with.py", line 326, in choose_program
  File "site-packages/calibre/gui2/open_with.py", line 158, in finalize_entry
KeyError: u'extensions'

Kovid Goyal (kovid) wrote :

That is indeed a bug and will be fixed in the next release.

Dale Scott Rothman (daler6) wrote :

Thanks. I look forward to seeing it fixed.

Sincerely, Dale

Kovid Goyal (kovid) wrote :

And I looked into the reason selecting the app is not working, it is
because this app uses a binary plist file, which python 2 does not
support. calibre will be moving to python3 which does support it
ina few months, at which time adding the app should work as well.

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: Invalid → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers