This occurs when you save a "Very Hard" game for latter. It also occurs
when trying to launch gnome-sudoku after having saved a "Very Hard"
game. I can't reproduce it with any other difficulty level. Deleting the
saved game file from ~/.config/gnome-sudoku/saved allows the program to
run properly once more.

** Description changed:

  The Ubuntu Error Tracker has been receiving reports about a problem
  regarding gnome-sudoku.  This problem was most recently seen with
  version 1:3.8.1-1ubuntu1, the problem page at
  https://errors.ubuntu.com/problem/8c47c556e13b16454ddc18b00d4217bad720461c
  contains more details.
+ 
+ Traceback (most recent call last):
+   File "/usr/lib/python3/dist-packages/gnome_sudoku/main.py", line 52, in 
inactivate_new_game_etc_
+     ret = fun(ui, *args, **kwargs)
+   File "/usr/lib/python3/dist-packages/gnome_sudoku/main.py", line 413, in 
new_cb
+     self.select_game()
+   File "/usr/lib/python3/dist-packages/gnome_sudoku/main.py", line 52, in 
inactivate_new_game_etc_
+     ret = fun(ui, *args, **kwargs)
+   File "/usr/lib/python3/dist-packages/gnome_sudoku/main.py", line 150, in 
select_game
+     choice = 
game_selector.NewOrSavedGameSelector().run_swallowed_dialog(self.swallower)
+   File "/usr/lib/python3/dist-packages/gnome_sudoku/game_selector.py", line 
270, in run_swallowed_dialog
+     self.setup_dialog()
+   File "/usr/lib/python3/dist-packages/gnome_sudoku/game_selector.py", line 
93, in setup_dialog
+     self.make_saved_game_model()
+   File "/usr/lib/python3/dist-packages/gnome_sudoku/game_selector.py", line 
187, in make_saved_game_model
+     sdifficulty = sr.difficulty()
+   File "/usr/lib/python3/dist-packages/gnome_sudoku/sudoku.py", line 836, in 
difficulty
+     self.solve()
+   File "/usr/lib/python3/dist-packages/gnome_sudoku/sudoku.py", line 407, in 
solve
+     while not self.guess_least_open_square():
+   File "/usr/lib/python3/dist-packages/gnome_sudoku/sudoku.py", line 832, in 
guess_least_open_square
+     return SudokuSolver.guess_least_open_square(self)
+   File "/usr/lib/python3/dist-packages/gnome_sudoku/sudoku.py", line 448, in 
guess_least_open_square
+     poss.sort(lambda a, b: len(a[1]) > len(b[1]) and 1 or len(a[1]) < 
len(b[1]) and -1 or \
+ TypeError: must use keyword argument for key function

** Changed in: gnome-sudoku (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1252220

Title:
  /usr/games/gnome-sudoku:TypeError:/usr/games/gnome-
  
sudoku@23:start_game:start_game:__init__:inactivate_new_game_etc_:select_game:run_swallowed_dialog:setup_dialog:make_saved_game_model:difficulty:solve:guess_least_open_square:guess_least_open_square

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-sudoku/+bug/1252220/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to