Bug also occurs on the default version of gnome-sudoku in precise 
(3.4.1-0ubuntu1) as well as precise-updates version (3.4.1-0ubuntu2.1).
Bug occurs if you remove packages "gir1.2-launchpadintegration-3.0" and 
"launchpad-integration" and try to open gnome-sudoku - since these packages are 
installed by default, users who haven't removed them will not come across this 
problem but those that do will be unable to open gnome-sudoku.

I have a patch suggestion but i'd appreciate it if someone could give it
a look over.

1) Edit main.py which resides in /usr/lib/python2.7/dist-
packages/gnome_sudoku/main.py when installed.

2) Delete line 9 containing "from gi.repository import
LaunchpadIntegration" - it only seems to be used by the setup_gui()
function on line 171 and there doesn't appear to be any harm in doing
so.

3) Change the setup_gui() function on line 171 to the following (or similar): 
http://pastie.org/4720780
(I've left some comments - for example, does gnome-sudoku actually have an 
error log to write to? Printing 'launchpad integration error' or similar to the 
terminal would suffice i think. At the very least, at least the program will 
actually run now!)

Program then runs happily. :)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-games in Ubuntu.
https://bugs.launchpad.net/bugs/1050063

Title:
  gnome-sudoku ERROR:root:Could not find any typelib for
  LaunchpadIntegration

Status in “gnome-games” package in Ubuntu:
  New

Bug description:
  ant@laptoppy:~$ gnome-sudoku
  ERROR:root:Could not find any typelib for LaunchpadIntegration
  Traceback (most recent call last):
    File "/usr/games/gnome-sudoku", line 23, in <module>
      start_game()
    File "/usr/lib/python2.7/dist-packages/gnome_sudoku/gnome_sudoku.py", line 
21, in start_game
      import main
    File "/usr/lib/python2.7/dist-packages/gnome_sudoku/main.py", line 9, in 
<module>
      from gi.repository import LaunchpadIntegration
  ImportError: cannot import name LaunchpadIntegration

  
  This is a minimalistic system and as such a lot of packages have been taken 
out. 
  Any attempt to start the program is met with no visible activity.

  
  Commenting out lines 9, 182 and 183 from 
/usr/lib/python2.7/dist-packages/gnome_sudoku/main.py  disables launchpad 
integration but the program then runs perfectly again.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: gnome-sudoku 1:3.4.1-0ubuntu2.1
  ProcVersionSignature: Ubuntu 3.2.0-31.50-generic-pae 3.2.28
  Uname: Linux 3.2.0-31-generic-pae i686
  ApportVersion: 2.0.1-0ubuntu13
  Architecture: i386
  Date: Wed Sep 12 22:03:58 2012
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha i386 (20120322)
  PackageArchitecture: all
  SourcePackage: gnome-games
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-games/+bug/1050063/+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

Reply via email to