fonol / anki-search-inside-add-card

An add-on providing full-text-search and PDF reading functionality to Anki's Add card dialog
https://ankiweb.net/shared/info/1781298089
GNU Affero General Public License v3.0
178 stars 24 forks source link

Cannot open epub file with Calibre #206

Open XDitto0165 opened 3 years ago

XDitto0165 commented 3 years ago

I have imported some epub files. Normally I read epub by Calibre. But when I tried to open those file in Anki, I got the message error message "This application failed to start because no Qt platform plugin could be initialized." from Calibre. What should I do?

fonol commented 3 years ago

Hi, sorry, cannot follow. Did you try to open a .epub file within the add-on? I.e. you created an add-on note with the source like /Path/to/file.epub? If so, sorry, epubs are not supported.

XDitto0165 commented 3 years ago

Can the add-on just call out Calibre and then open the epub file in Calibre?

fonol commented 3 years ago

I did a quick test: If you set the Source like this: file:///path/to/file.epub, it will open in Calibre for me, as long as I have registered Calibre as the default program for .epub files in Windows.

Under the Source field, you can select External File, then Find File.

XDitto0165 commented 3 years ago

This is exactly the steps I am following. But I am still getting the error "This application failed to start because no Qt platform plugin could be initialized." when try to open the file in the queue. On the other hand, I can open the epub file in Calibre normally through File Explorer. This error seems to appear after I updated Calibre to the latest version.

For now I have switched to opening the epub file in the queue by Freda, and it can be opened normally.