Bug 7214 - gnome-sudoku crashes at start (missing require)
Summary: gnome-sudoku crashes at start (missing require)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO, PATCH
Depends on:
Blocks:
 
Reported: 2012-08-26 22:43 CEST by Malo Deniélou
Modified: 2015-03-31 03:18 CEST (History)
6 users (show)

See Also:
Source RPM: gnome-games
CVE:
Status comment:


Attachments
rpm -qa (74.38 KB, text/plain)
2013-01-06 19:08 CET, Malo Deniélou
Details

Description Malo Deniélou 2012-08-26 22:43:51 CEST
Description of problem:
I installed gnome-sudoku and, when launched, it instantly crashes with:

> gnome-sudoku 
Traceback (most recent call last):
  File "/usr/bin/gnome-sudoku", line 23, in <module>
    start_game()
  File "/usr/lib/python2.7/site-packages/gnome_sudoku/gnome_sudoku.py", line 21, in start_game
    import main
  File "/usr/lib/python2.7/site-packages/gnome_sudoku/main.py", line 8, in <module>
    from gi.repository import Gtk,GdkPixbuf,GObject,Pango,Gdk,Gio
  File "/usr/lib64/python2.7/site-packages/gi/importer.py", line 76, in load_module
    dynamic_module._load()
  File "/usr/lib64/python2.7/site-packages/gi/module.py", line 242, in _load
    version)
  File "/usr/lib64/python2.7/site-packages/gi/module.py", line 97, in __init__
    repository.require(namespace, version)
RepositoryError: Typelib file for namespace 'xlib', version '2.0' not found
Comment 1 Jani Välimaa 2012-08-27 07:49:53 CEST
Probably missing requires for 'typelib(xlib)'.

You can try to install it with urpmi:
urpmi 'typelib(xlib)'

CC: (none) => jani.valimaa

Comment 2 Malo Deniélou 2012-08-27 12:46:22 CEST
Following your advice, I had to install:
'typelib(fontconfig)'
'typelib(Atk)'
'typelib(freetype2)'
'typelib(xlib)'
before being able to run gnome-sudoku.
Can you add these missing Requires?
Jani Välimaa 2012-10-25 17:18:47 CEST

CC: jani.valimaa => (none)

Manuel Hiebel 2012-10-26 22:37:45 CEST

Keywords: (none) => PATCH
CC: (none) => fundawang, olav
Summary: gnome-sudoku crashes at start => gnome-sudoku crashes at start (missing require)
Source RPM: (none) => gnome-games

Comment 3 Funda Wang 2012-10-26 22:57:34 CEST
please past output of `rpm -qa`, because typelib(Gtk) already pulls type(xlib).
Thierry Vignaud 2012-12-06 09:21:14 CET

Keywords: (none) => NEEDINFO
CC: (none) => thierry.vignaud

Comment 4 roelof Wobben 2013-01-06 17:37:30 CET
Hoi Malo, 

Can you provide the answers to comment 3. Otherwise we have to close this bug.

Roelof

CC: (none) => r.wobben

Comment 5 Malo Deniélou 2013-01-06 19:08:10 CET
Created attachment 3320 [details]
rpm -qa
Comment 6 Malo Deniélou 2013-01-06 19:09:06 CET
Sorry, I forgot about that bug. But it's still present.
I attach rpm -qa, but typelib(Gtk) is not installed, and does not pull typelib(xlib).
Anyway, even if 'typelib(xlib)' is installed, gnome-sudoku crashes if the other packages are not there.
Comment 7 Malo Deniélou 2013-01-27 00:47:42 CET
I figured it out. On my machine I had libxlib-gir2.0 installed, which filled all the requires and provides needed for gnome-sudoku and lib64xlib-gir2.0.

To reproduce (on x86_64):
1 - install gnome-sudoku
2 - install libxlib-gir2.0 
3 - remove lib64xlib-gir2.0
4 - see gnome-sudoku fail

It seems some arch dependent requires are needed. I don't know the typelib thingies to know where to put them.
Comment 8 andré blais 2014-01-16 08:25:05 CET
On my machine gnome-sudoku failed to start after I removed numerous seemingly unused packages

Following comment 1, I did
urpmi 'typelib(Pango)'
which installed lib64pango-gir1.0-1.32.5-3.mga3.x86_64

and then
urpmi 'typelib(GObject)'
which installed lib64glib-gir2.0-1.34.2-2.mga3.x86_64

So 2 more requires to add

CC: (none) => andre999mga

Comment 9 andré blais 2014-01-16 08:30:20 CET
BTW, my version is from
 gnome-games-3.6.1-3.mga3.src.rpm
Comment 10 Nic Baxter 2015-03-31 03:18:46 CEST
Works fine in 5Beta3

Status: NEW => RESOLVED
CC: (none) => nic
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.