← Back to team overview

edubuntu-bugs team mailing list archive

[Bug 2004098] Re: python 3.10 does stricter type checking

 

** Description changed:

+ [Impact]
+ 
  python 3.10 does stricter type checking and hence anki fails in some
- cases.
+ cases, for example it is no longer possible to access the preferences of
+ a deck.
  
- steps to reproduce
+ [steps to reproduce]
  - install and start anki
  - choose a deck and click on the gearwheel icon to choose options
  - anki crashes with a type error
+ 
+ [regression potential]
+ 
+ Currently, the program crashes for the code-paths in question.  The
+ receiving functions expect to be handed an int and casting the
+ parameters of the function calls to int ensures the correct type.
+ 
+ int does not round but truncates towards zero.  There is a possibility
+ that the program was written with the assumption that non-int values
+ would be rounded to the nearest integer.  It is my understanding that
+ lrnFactor, easyBonus, lapMult and lrnCutoff are numbers to determine how
+ soon flash cards will be shown again for learning.  The impact from any
+ "bug" in determining this should be fairly insignificant.
+ 
+ Code inspection was only cursory, though.
+ 
+ [further information]
  
  https://forums.ankiweb.net/t/selecting-options-or-preferences-throws-an-error/24509
  https://forums.ankiweb.net/t/cant-open-settings/16644
  https://www.reddit.com/r/Anki/comments/wvuc3w/trying_to_go_into_preferences_and_it_gives_me_this/
  
- 
- I have provided a bug-fixed package for jammy in my stable PPA, the package should be usable in later releases, too.
+ I have provided a bug-fixed package for jammy in my stable PPA, the
+ package should be usable in later releases, too.

** Patch added: "debdiff for jammy"
   https://bugs.launchpad.net/debian/+source/anki/+bug/2004098/+attachment/5643997/+files/LP2004098-jammy.debdiff

-- 
You received this bug notification because you are a member of Edubuntu
Bugsquad, which is subscribed to anki in Ubuntu.
https://bugs.launchpad.net/bugs/2004098

Title:
  python 3.10 does stricter type checking

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/anki/+bug/2004098/+subscriptions



References