*** This bug is a duplicate of bug 1252220 ***
https://bugs.launchpad.net/bugs/1252220
** This bug has been marked a duplicate of bug 1252220
/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
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-sudoku in Ubuntu.
https://bugs.launchpad.net/bugs/1264620
Title:
Gnome sudoku won't load after saving very hard game
Status in “gnome-sudoku” package in Ubuntu:
Confirmed
Bug description:
After saving a "very hard" game, Gnome sudoku won't load. The window
appear briefly and then the program exits.
Launching from command line gives the following message:
Traceback (most recent call last):
File "/usr/games/gnome-sudoku", line 23, in <module>
start_game()
File "/usr/lib/python3/dist-packages/gnome_sudoku/gnome_sudoku.py", line
25, in start_game
main.start_game()
File "/usr/lib/python3/dist-packages/gnome_sudoku/main.py", line 982, in
start_game
u = UI()
File "/usr/lib/python3/dist-packages/gnome_sudoku/main.py", line 138, in
__init__
if 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
Deleting the saved game file from ~/.config/gnome-sudoku/saved allows the
program to run properly once more.
I've not had any problems after saving an easy game. I haven't tried
with other levels yet.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: gnome-sudoku 1:3.10.2-0ubuntu1
ProcVersionSignature: Ubuntu 3.12.0-7.15-generic 3.12.4
Uname: Linux 3.12.0-7-generic i686
ApportVersion: 2.12.7-0ubuntu3
Architecture: i386
Date: Sat Dec 28 16:33:43 2013
PackageArchitecture: all
ProcEnviron:
LANGUAGE=en_NZ:en
TERM=xterm
PATH=(custom, no user)
LANG=en_NZ.UTF-8
SHELL=/bin/bash
SourcePackage: gnome-sudoku
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-sudoku/+bug/1264620/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp