[Bug 1252220] Re: gnome-sudoku crashes with TypeError when saving a "very hard" game

Jane Atkinson 1252220 at bugs.launchpad.net
Sat Jan 25 06:15:05 UTC 2014


I can confirm that the latest update is working correctly.

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

Title:
  gnome-sudoku crashes with TypeError when saving a "very hard" game

Status in “gnome-sudoku” package in Ubuntu:
  Fix Released

Bug description:
  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

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



More information about the Ubuntu-sponsors mailing list