LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-15-2006, 07:58 AM   #1
Neoslak
LQ Newbie
 
Registered: Nov 2002
Posts: 22

Rep: Reputation: 15
GRAMPS (Geneology) and Python problems


Hi -

I've been trying to get the GRAMPS genealogy program to work on Slackware using packages from linuxpackages.net and/or compiling my own but I've run into a problem that I haven't been able to figure out a solution to and I don't know for sure if it is a dependency problem, a configuration problem, or a bug somewhere.

I'm currently running Slackware 11.0 with Freerock Gnome 2.14.3

Regardless of whether I install the package from linuxpackages.net (gramps-2.0.9rc1-i486-2rsa.tgz), or any of the later versions that I built packages for myself that I have tried (gramps-2.0.10, 2.0.11, or 2.2.0rc1), whenever I run gramps I get:

----
$ gramps
Traceback (most recent call last):
File "/usr/share/gramps/gramps.py", line 43, in ?
import gtk.gdk
File "/usr/lib/python2.4/site-packages/PIL/__init__.py", line 45, in ?

File "/usr/lib/python2.4/site-packages/cairo/__init__.py", line 1, in ?
from _cairo import *
ImportError: /usr/lib/python2.4/site-packages/cairo/_cairo.so: undefined symbol: cairo_pdf_surface_create

--------

I also get the same error if I just run python from the command line and just type 'import gtk.gdk'

I even get this error if I just type 'gramps --help'.

So, I'm not sure what package this gtk.gdk python module or whatever it is is supposed to be in.

As part of FRG I have installed:
gnome-python-2.16.0-i486-1frg
gnome-python-desktop-2.16.0-i486-1frg
gnome-python-extras-2.14.2-i486-1frg
pygtk-2.8.6-i486-1frg
pyorbit-2.14.1-i486-1frg
pygobject-2.10.1-i486-1frg
pycairo-1.0.2-i486-2frg
etc., etc.

The README in the GRAMPS sources says:
Requirements
--------------------------------
The following packages *MUST* be installed in order for Gramps to work:
Python 2.3 or greater
Gnome 2.8 or greater
PyGTK2 2.4 or greater
Gnome-python 2.6 or greater

Any help at all would be much appreciated as I would really like to get this program to work under Slackware.

I used to use a program called Personal Ancestral File (PAF) under Windows and I have a huge genealogy database that I'd like to import into GRAMPS. Unfortunatley the PAF program hasn't been usable under WINE, and I haven't used Windows since 1999 and don't intend to. GRAMPS looks like about the only program that comes even close to having the functionality I need under Linux.

I've googled and searched forums mailing lists and recompiled and checked dependencies, and asked on IRC etc. for hours and hours and hours trying to get this problem resolved.

Any ideas?

Thanks -

Chuck Bell
 
Old 10-15-2006, 08:27 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
I tried -- and failed -- to get gramps working (more than once) and went to two alternatives: LifeLines (http://lifelines.sourceforge.net) and PhpGedView (http://www.phpgedview.net). If you've got a GEDCOM (not a PAF) file, either of those is quite useful; PhpGedView more so than LifeLines (which is a curses-based application, works fine, but it can be tricky).

PhpGedView imports your GEDCOM to a MySQL data base (this is a real plus), and you can have multiple data bases. It's a LAMP application, so it does not depend on any particular window manager (no GNOME problems or KDE problems to deal with). If your server is publicly available, any family member can use PhpGedView with any browser (you permit login and password for access).

Neither of these is PAF or FamilyTreeMaker (yet!), but they're a whole lot less screwing around to get going -- I'd give 'em a try.
 
Old 10-15-2006, 03:06 PM   #3
Neoslak
LQ Newbie
 
Registered: Nov 2002
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for the suggestions, but I'd really like to get GRAMPS working. I've got other programs such as GeneWeb http://cristal.inria.fr/%7Eddr/GeneWeb/ which is good.

Anybody familiar with Python know what is up with this gtk.gdk module?

Thanks -

Chuck
 
Old 10-15-2006, 06:40 PM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
I, too, tried GRAMPS a few times unsuccessfully. I got the same errors even though I had the required gnome libs. I found FTree, which is very small, works in any GUI, supports GEDCOM5.5, add the Graphviz package to make visual reports. It might be ugly compared to GRAMPS but it works!
 
Old 11-14-2006, 03:24 PM   #5
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Rep: Reputation: Disabled
What I did to get gramps working in -current

I've been using gramps in -current for quite a while. I'm using the following packages, as recommended on linuxpackages.net:
Code:
Slackware package     Freerock Gnome packages		
python >= 2.4.3		/frgnome/desktop/gnome-doc-utils >= 0.6.1
			/frgnome/desktop/scrollkeeper >= 0.3.14
			/frgnome/platform/gamin >= 0.1.7
			/frgnome/platform/gtk+2 >= 2.8.20 (replaces Slackware package)
			/frgnome/platform/pycairo >= 1.0.2
			/frgnome/platform/pygobject >= 2.10.1
			/frgnome/platform/pygtk >= 2.8.6
			/frgnome/platform/pyorbit >= 2.14.1
I think the difference may be in using the FRG gtk+2 package, instead of the Slackware package. I'm currently using a slackbuild I wrote to compile gramps & it works really well.
Regards,
Bill
 
Old 11-14-2006, 03:47 PM   #6
Neoslak
LQ Newbie
 
Registered: Nov 2002
Posts: 22

Original Poster
Rep: Reputation: 15
Hi - Yeah I finally did get Gramps working with Slackware 11 and by upgrading Freerock GNOME to the newer 2.16.x version in frg-unstable compiled for Slackware 11. It works pretty good now. Thanks!

Chuck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Geneology Software swordwielder Linux - Software 2 02-28-2006 09:21 PM
gramps won't open wwillw91 Linux - Software 0 01-16-2006 06:15 PM
Geneology of linux distributions Burgin Linux - General 1 04-26-2004 04:34 PM
Geneology of Linux Distributions. Burgin General 1 04-26-2004 03:57 PM
Photographs vs GRAMPS sgtbob Linux - Newbie 2 01-30-2004 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration