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
179 stars 24 forks source link

Anki abruptly closes when trying to add a note from a weblink with conversion to pdf #365

Open Kirchheim opened 1 year ago

Kirchheim commented 1 year ago

Describe the bug Anki abruptly closes when trying to add a note from a weblink with conversion to pdf using SAIC

To Reproduce Steps to reproduce the behavior:

  1. Add note
  2. Enter link
  3. Choose conversion to pdf type

Expected behavior Should just add the link content as pdf

Screenshots not applicable

Environment (please complete the following information):

Copied Error Report

Error An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem. When you've discovered the add-on that is causing the problem, please report the issue to the add-on author. Debug info: Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0 Platform: macOS-13.4.1-arm64-arm-64bit Flags: frz=True ao=True sv=3 Add-ons, last update check: 2023-07-07 14:16:21 Add-ons possibly involved: ⁨Searching PDF Reading Note-Taking in Add Dialog⁩

Caught exception: Traceback (most recent call last): File "/Users/maikbraun/Library/Application Support/Anki2/addons21/1781298089/src/utility/misc.py", line 341, in save_pdf printer = QPrinter() NameError: name 'QPrinter' is not defined