unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "宋文武 via Bug reports for GNU Guix" <bug-guix@gnu.org>
To: Christopher Howard <christopher@librehacker.com>
Cc: 65506@debbugs.gnu.org
Subject: bug#65506: Anki: Preferences Dialog Broken
Date: Fri, 25 Aug 2023 20:52:01 +0800	[thread overview]
Message-ID: <8735072sjy.fsf@envs.net> (raw)
In-Reply-To: <ZOeGOPn804TyV2Uf@theoden> (Christopher Howard's message of "Thu,  24 Aug 2023 08:32:56 -0800")

Christopher Howard <christopher@librehacker.com> writes:

> Hello, The Anki program works well except that if I select Tools >> Preferences menu, I do not get a preferences menu, and instead I get this error:
>
> ```
> Error 
> An error occurred. Please use Tools > Check Database to see if that fixes the problem. 
> If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.
> Anki 2.1.16 (4bc33e2f) Python 3.10.7 Qt 5.15.8 PyQt 5.15.9
> Platform: Linux
> Flags: frz=False ao=False sv=2
>
> Caught exception:
> Traceback (most recent call last):
>   File "/gnu/store/c6hiswiwspb70q7lfy61fwdyr3i1j6jz-anki-2.1.16/share/anki/aqt/main.py", line 881, in onPrefs
>     aqt.dialogs.open("Preferences", self)
>   File "/gnu/store/c6hiswiwspb70q7lfy61fwdyr3i1j6jz-anki-2.1.16/share/anki/aqt/__init__.py", line 82, in open
>     instance = creator(*args)
>   File "/gnu/store/c6hiswiwspb70q7lfy61fwdyr3i1j6jz-anki-2.1.16/share/anki/aqt/preferences.py", line 25, in __init__
>     self.setupCollection()
>   File "/gnu/store/c6hiswiwspb70q7lfy61fwdyr3i1j6jz-anki-2.1.16/share/anki/aqt/preferences.py", line 80, in setupCollection
>     f.lrnCutoff.setValue(qc['collapseTime']/60.0)
> TypeError: setValue(self, val: int): argument 1 has unexpected type 'float'
> ```    

Hello, thank you for the report!  It seems QSpinBox really want 'int'
instead of 'float' now.  I have sent a patch to fix this.




      parent reply	other threads:[~2023-08-25 12:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-24 16:32 bug#65506: Anki: Preferences Dialog Broken Christopher Howard
2023-08-25 12:49 ` bug#65506: [PATCH] gnu: anki: Fix preferences error iyzsong--- via Bug reports for GNU Guix
2023-08-28 10:54   ` bug#65506: [bug#65533] " 宋文武 via Bug reports for GNU Guix
2023-08-25 12:52 ` 宋文武 via Bug reports for GNU Guix [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8735072sjy.fsf@envs.net \
    --to=bug-guix@gnu.org \
    --cc=65506@debbugs.gnu.org \
    --cc=christopher@librehacker.com \
    --cc=iyzsong@envs.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).