From: Don A. <dal...@us...> - 2002-11-25 04:47:38
|
I've just uploaded the 0.9.0-pre6 release to sourceforge. This release is the first to support internationalization. Translation files are now dynamically recoded to UTF-8 regardless of the original format. This should make it much easier to support non-latin character sets. Unfortunately, I did not have time to make the changes to support debian and other distributions yet. RedHat 8 uses a older pygtk library that could not co-exist with the GNOME 1.4 version. Debian uses a newer version that can and does coexist. I have to add the logic to check for the right versions, but I don't have a machine to test this on yet. A lot more things are working now. This might be the first really usable version for GNOME 2. Don -- Don Allingham dal...@us... http://gramps.sourceforge.net |
From: Alexandre Duret-L. <ad...@us...> - 2002-11-25 23:27:03
|
>>> "Don" == Don Allingham <dal...@us...> writes: [...] Don> Debian uses a newer version that can and does coexist. I Don> have to add the logic to check for the right versions, but Don> I don't have a machine to test this on yet. I only have that, so I can tweak the tests, but I can't check whether they work ouside Debian :) Don> A lot more things are working now. This might be the first Don> really usable version for GNOME 2. I've not yet managed to start Gramps, though. So far I'm blocked with % gramps Traceback (most recent call last): File "/home/adl/usr/share/gramps/intl.py", line 37, in ? from intl22 import * ImportError: No module named intl22 Traceback (most recent call last): File "/home/adl/usr/share/gramps/gramps.py", line 55, in ? import gramps_main File "/home/adl/usr/share/gramps/gramps_main.py", line 54, in ? from PlaceView import PlaceView File "/home/adl/usr/share/gramps/PlaceView.py", line 42, in ? import EditPlace File "/home/adl/usr/share/gramps/EditPlace.py", line 47, in ? import Sources ImportError: No module named Sources I can't find package `Sources' in the gramps sources, althought I can see it's imported by 7 files. A few notes about the changes in the following patch. * This is against today's CVS gramps2 module. * PYTHON_VERSION is already defined by AM_INIT_AUTOMAKE * changequote should be avoided in Autoconf-land, and the calls where useless in these cases * my Swig version (1.3) insists on calling the DSO for grampslib.i `_grampslib.so', with a leading underscore. the generated grampslib.py then imports _grampslib. * without the `file:' prefix, the XML parser complains that for/bar/baz.xml is not a valid URL. Index: configure.in =================================================================== RCS file: /cvsroot/gramps/gramps2/configure.in,v retrieving revision 1.8 diff -u -b -r1.8 configure.in --- configure.in 25 Nov 2002 04:30:36 -0000 1.8 +++ configure.in 25 Nov 2002 22:47:12 -0000 @@ -44,10 +44,6 @@ AC_PATH_PROG(BINSH, sh) AC_PATH_PROG(SWIG, swig) -changequote(<<, >>)dnl -PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"` -changequote([, ])dnl - if test "$PYTHON_VERSION" != "2.2" then AC_PATH_PROG(PYTHON22, python2.2) @@ -76,11 +72,18 @@ GNOMEINC=`pkg-config --cflags gnome-vfs-module-2.0` GNOMELIB=`pkg-config --libs gnome-vfs-module-2.0` +pygtk_require="try: + import pygtk + pygtk.require('2.0') +except ImportError: + pass +" + dnl Check if python bindings for gtk are installed AC_MSG_CHECKING(Python bindings for gtk) -changequote(,) cat > conftest.py <<EOF +$pygtk_require try: import gobject f = open("conftest.out", "w") @@ -91,7 +94,6 @@ f.write("NO") f.close() EOF -changequote([, ]) $PYTHON conftest.py has_pygtk=`cat conftest.out` rm -f conftest.out conftest.py @@ -104,7 +106,6 @@ AC_MSG_RESULT(ok) AC_MSG_CHECKING(Python bindings for GNOME) -changequote(,) cat > conftest.py <<EOF try: import gnome, gnome.ui @@ -116,7 +117,6 @@ f.write("NO") f.close() EOF -changequote([, ]) $PYTHON conftest.py has_pygnome=`cat conftest.out` rm -f conftest.out conftest.py @@ -128,8 +128,8 @@ AC_MSG_RESULT(ok) AC_MSG_CHECKING(Python bindings for gconf) -changequote(,) cat > conftest.py <<EOF +$pygtk_require try: import gconf f = open("conftest.out", "w") @@ -140,7 +140,6 @@ f.write("NO") f.close() EOF -changequote([, ]) $PYTHON conftest.py has_gconf=`cat conftest.out` rm -f conftest.out conftest.py @@ -152,8 +151,8 @@ AC_MSG_RESULT(ok) AC_MSG_CHECKING(Python bindings for GNOME canvas) -changequote(,) cat > conftest.py <<EOF +$pygtk_require try: import gnome.canvas f = open("conftest.out", "w") @@ -164,7 +163,6 @@ f.write("NO") f.close() EOF -changequote([, ]) $PYTHON conftest.py has_canvas=`cat conftest.out` rm -f conftest.out conftest.py @@ -176,8 +174,8 @@ AC_MSG_RESULT(ok) AC_MSG_CHECKING(Python bindin for glade) -changequote(,) cat > conftest.py <<EOF +$pygtk_require try: import gtk.glade f = open("conftest.out", "w") @@ -188,7 +186,6 @@ f.write("NO") f.close() EOF -changequote([, ]) $PYTHON conftest.py has_pygtk=`cat conftest.out` rm -f conftest.out conftest.py Index: src/Makefile.am =================================================================== RCS file: /cvsroot/gramps/gramps2/src/Makefile.am,v retrieving revision 1.5 diff -u -b -r1.5 Makefile.am --- src/Makefile.am 8 Nov 2002 05:25:53 -0000 1.5 +++ src/Makefile.am 25 Nov 2002 22:47:15 -0000 @@ -21,12 +21,12 @@ GRAPHICS := ${wildcard *.xpm} ${wildcard *.png} ${wildcard *.jpg} # Other stuff that we need to install -pkgdata_DATA = ${INTLLIBS} ${GLADEFILES} ${GRAPHICS} gramps.desktop grampslib.so +pkgdata_DATA = ${INTLLIBS} ${GLADEFILES} ${GRAPHICS} gramps.desktop _grampslib.so EXTRA_DIST = grampslib.i -all: ${INTLLIBS} grampslib.so +all: ${INTLLIBS} _grampslib.so DIST_SOURCES = intl.c dist_pkgdata_DATA = ${pkgdata_DATA} @@ -36,7 +36,7 @@ intl22.so: intl.c $(CC) $(CFLAGS) $(LDFLAGS) @P22_INCLUDES@ -DVER22 -o $@ intl.c -grampslib.so: grampslib.i +_grampslib.so: grampslib.i $(SWIG) -python grampslib.i $(CC) $(CFLAGS) @P22_INCLUDES@ -o $@ grampslib_wrap.c $(LDFLAGS) Index: src/const.py =================================================================== RCS file: /cvsroot/gramps/gramps2/src/const.py,v retrieving revision 1.9 diff -u -b -r1.9 const.py --- src/const.py 25 Nov 2002 04:30:36 -0000 1.9 +++ src/const.py 25 Nov 2002 22:47:20 -0000 @@ -57,13 +57,13 @@ else: rootDir = "." -papersize = "%s/papersize.xml" % rootDir +papersize = "file:%s/papersize.xml" % rootDir good_xpm = "%s/good.png" % rootDir bad_xpm = "%s/bad.png" % rootDir caution_xpm = "%s/caution.png" % rootDir -system_filters = "%s/system_filters.xml" % rootDir -custom_filters = "~/.gramps/custom_filters.xml" +system_filters = "file:%s/system_filters.xml" % rootDir +custom_filters = "file:~/.gramps/custom_filters.xml" icon = "%s/gramps.xpm" % rootDir logo = "%s/logo.png" % rootDir gladeFile = "%s/gramps.glade" % rootDir Index: src/gramps.py =================================================================== RCS file: /cvsroot/gramps/gramps2/src/gramps.py,v retrieving revision 1.2 diff -u -b -r1.2 gramps.py --- src/gramps.py 25 Nov 2002 04:30:36 -0000 1.2 +++ src/gramps.py 25 Nov 2002 22:47:20 -0000 @@ -2,6 +2,17 @@ #------------------------------------------------------------------------- # +# Cope with versioned pygtk installation. +# +#------------------------------------------------------------------------- +try: + import pygtk + pygtk.require('2.0') +except ImportError: + pass + +#------------------------------------------------------------------------- +# # Load internationalization setup # #------------------------------------------------------------------------- @@ -60,4 +71,3 @@ DisplayTrace.DisplayTrace() gtk.mainloop() - Index: src/intl.py =================================================================== RCS file: /cvsroot/gramps/gramps2/src/intl.py,v retrieving revision 1.1.1.1 diff -u -b -r1.1.1.1 intl.py --- src/intl.py 20 Oct 2002 14:26:40 -0000 1.1.1.1 +++ src/intl.py 25 Nov 2002 22:47:20 -0000 @@ -46,6 +46,9 @@ def bindtextdomain(s,x): return + + def bind_textdomain_codeset(s,x): + return except: import traceback traceback.print_exc() @@ -57,4 +60,7 @@ return def bindtextdomain(s,x): + return + + def bind_textdomain_codeset(s,x): return -- Alexandre Duret-Lutz |
From: Don A. <dal...@us...> - 2002-11-26 13:13:12
|
Alexandre, Sources.py has been added to CVS. Let me know if you have any other problems. Don On Mon, 2002-11-25 at 16:04, Alexandre Duret-Lutz wrote: > >>> "Don" == Don Allingham <dal...@us...> writes: > > [...] > > Don> Debian uses a newer version that can and does coexist. I > Don> have to add the logic to check for the right versions, but > Don> I don't have a machine to test this on yet. > > I only have that, so I can tweak the tests, but I can't check > whether they work ouside Debian :) > > Don> A lot more things are working now. This might be the first > Don> really usable version for GNOME 2. > > I've not yet managed to start Gramps, though. So far I'm blocked with > > % gramps > Traceback (most recent call last): > File "/home/adl/usr/share/gramps/intl.py", line 37, in ? > from intl22 import * > ImportError: No module named intl22 > Traceback (most recent call last): > File "/home/adl/usr/share/gramps/gramps.py", line 55, in ? > import gramps_main > File "/home/adl/usr/share/gramps/gramps_main.py", line 54, in ? > from PlaceView import PlaceView > File "/home/adl/usr/share/gramps/PlaceView.py", line 42, in ? > import EditPlace > File "/home/adl/usr/share/gramps/EditPlace.py", line 47, in ? > import Sources > ImportError: No module named Sources > > I can't find package `Sources' in the gramps sources, althought > I can see it's imported by 7 files. > > > A few notes about the changes in the following patch. > > * This is against today's CVS gramps2 module. > * PYTHON_VERSION is already defined by AM_INIT_AUTOMAKE > * changequote should be avoided in Autoconf-land, and the > calls where useless in these cases > * my Swig version (1.3) insists on calling the DSO for grampslib.i > `_grampslib.so', with a leading underscore. the generated > grampslib.py then imports _grampslib. > * without the `file:' prefix, the XML parser complains that > for/bar/baz.xml is not a valid URL. > > Index: configure.in > =================================================================== > RCS file: /cvsroot/gramps/gramps2/configure.in,v > retrieving revision 1.8 > diff -u -b -r1.8 configure.in > --- configure.in 25 Nov 2002 04:30:36 -0000 1.8 > +++ configure.in 25 Nov 2002 22:47:12 -0000 > @@ -44,10 +44,6 @@ > AC_PATH_PROG(BINSH, sh) > AC_PATH_PROG(SWIG, swig) > > -changequote(<<, >>)dnl > -PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"` > -changequote([, ])dnl > - > if test "$PYTHON_VERSION" != "2.2" > then > AC_PATH_PROG(PYTHON22, python2.2) > @@ -76,11 +72,18 @@ > GNOMEINC=`pkg-config --cflags gnome-vfs-module-2.0` > GNOMELIB=`pkg-config --libs gnome-vfs-module-2.0` > > +pygtk_require="try: > + import pygtk > + pygtk.require('2.0') > +except ImportError: > + pass > +" > + > dnl Check if python bindings for gtk are installed > > AC_MSG_CHECKING(Python bindings for gtk) > -changequote(,) > cat > conftest.py <<EOF > +$pygtk_require > try: > import gobject > f = open("conftest.out", "w") > @@ -91,7 +94,6 @@ > f.write("NO") > f.close() > EOF > -changequote([, ]) > $PYTHON conftest.py > has_pygtk=`cat conftest.out` > rm -f conftest.out conftest.py > @@ -104,7 +106,6 @@ > AC_MSG_RESULT(ok) > > AC_MSG_CHECKING(Python bindings for GNOME) > -changequote(,) > cat > conftest.py <<EOF > try: > import gnome, gnome.ui > @@ -116,7 +117,6 @@ > f.write("NO") > f.close() > EOF > -changequote([, ]) > $PYTHON conftest.py > has_pygnome=`cat conftest.out` > rm -f conftest.out conftest.py > @@ -128,8 +128,8 @@ > AC_MSG_RESULT(ok) > > AC_MSG_CHECKING(Python bindings for gconf) > -changequote(,) > cat > conftest.py <<EOF > +$pygtk_require > try: > import gconf > f = open("conftest.out", "w") > @@ -140,7 +140,6 @@ > f.write("NO") > f.close() > EOF > -changequote([, ]) > $PYTHON conftest.py > has_gconf=`cat conftest.out` > rm -f conftest.out conftest.py > @@ -152,8 +151,8 @@ > AC_MSG_RESULT(ok) > > AC_MSG_CHECKING(Python bindings for GNOME canvas) > -changequote(,) > cat > conftest.py <<EOF > +$pygtk_require > try: > import gnome.canvas > f = open("conftest.out", "w") > @@ -164,7 +163,6 @@ > f.write("NO") > f.close() > EOF > -changequote([, ]) > $PYTHON conftest.py > has_canvas=`cat conftest.out` > rm -f conftest.out conftest.py > @@ -176,8 +174,8 @@ > AC_MSG_RESULT(ok) > > AC_MSG_CHECKING(Python bindin for glade) > -changequote(,) > cat > conftest.py <<EOF > +$pygtk_require > try: > import gtk.glade > f = open("conftest.out", "w") > @@ -188,7 +186,6 @@ > f.write("NO") > f.close() > EOF > -changequote([, ]) > $PYTHON conftest.py > has_pygtk=`cat conftest.out` > rm -f conftest.out conftest.py > Index: src/Makefile.am > =================================================================== > RCS file: /cvsroot/gramps/gramps2/src/Makefile.am,v > retrieving revision 1.5 > diff -u -b -r1.5 Makefile.am > --- src/Makefile.am 8 Nov 2002 05:25:53 -0000 1.5 > +++ src/Makefile.am 25 Nov 2002 22:47:15 -0000 > @@ -21,12 +21,12 @@ > GRAPHICS := ${wildcard *.xpm} ${wildcard *.png} ${wildcard *.jpg} > > # Other stuff that we need to install > -pkgdata_DATA = ${INTLLIBS} ${GLADEFILES} ${GRAPHICS} gramps.desktop grampslib.so > +pkgdata_DATA = ${INTLLIBS} ${GLADEFILES} ${GRAPHICS} gramps.desktop _grampslib.so > > EXTRA_DIST = grampslib.i > > > -all: ${INTLLIBS} grampslib.so > +all: ${INTLLIBS} _grampslib.so > > DIST_SOURCES = intl.c > dist_pkgdata_DATA = ${pkgdata_DATA} > @@ -36,7 +36,7 @@ > intl22.so: intl.c > $(CC) $(CFLAGS) $(LDFLAGS) @P22_INCLUDES@ -DVER22 -o $@ intl.c > > -grampslib.so: grampslib.i > +_grampslib.so: grampslib.i > $(SWIG) -python grampslib.i > $(CC) $(CFLAGS) @P22_INCLUDES@ -o $@ grampslib_wrap.c $(LDFLAGS) > > Index: src/const.py > =================================================================== > RCS file: /cvsroot/gramps/gramps2/src/const.py,v > retrieving revision 1.9 > diff -u -b -r1.9 const.py > --- src/const.py 25 Nov 2002 04:30:36 -0000 1.9 > +++ src/const.py 25 Nov 2002 22:47:20 -0000 > @@ -57,13 +57,13 @@ > else: > rootDir = "." > > -papersize = "%s/papersize.xml" % rootDir > +papersize = "file:%s/papersize.xml" % rootDir > good_xpm = "%s/good.png" % rootDir > bad_xpm = "%s/bad.png" % rootDir > caution_xpm = "%s/caution.png" % rootDir > > -system_filters = "%s/system_filters.xml" % rootDir > -custom_filters = "~/.gramps/custom_filters.xml" > +system_filters = "file:%s/system_filters.xml" % rootDir > +custom_filters = "file:~/.gramps/custom_filters.xml" > icon = "%s/gramps.xpm" % rootDir > logo = "%s/logo.png" % rootDir > gladeFile = "%s/gramps.glade" % rootDir > Index: src/gramps.py > =================================================================== > RCS file: /cvsroot/gramps/gramps2/src/gramps.py,v > retrieving revision 1.2 > diff -u -b -r1.2 gramps.py > --- src/gramps.py 25 Nov 2002 04:30:36 -0000 1.2 > +++ src/gramps.py 25 Nov 2002 22:47:20 -0000 > @@ -2,6 +2,17 @@ > > #------------------------------------------------------------------------- > # > +# Cope with versioned pygtk installation. > +# > +#------------------------------------------------------------------------- > +try: > + import pygtk > + pygtk.require('2.0') > +except ImportError: > + pass > + > +#------------------------------------------------------------------------- > +# > # Load internationalization setup > # > #------------------------------------------------------------------------- > @@ -60,4 +71,3 @@ > DisplayTrace.DisplayTrace() > > gtk.mainloop() > - > Index: src/intl.py > =================================================================== > RCS file: /cvsroot/gramps/gramps2/src/intl.py,v > retrieving revision 1.1.1.1 > diff -u -b -r1.1.1.1 intl.py > --- src/intl.py 20 Oct 2002 14:26:40 -0000 1.1.1.1 > +++ src/intl.py 25 Nov 2002 22:47:20 -0000 > @@ -46,6 +46,9 @@ > > def bindtextdomain(s,x): > return > + > + def bind_textdomain_codeset(s,x): > + return > except: > import traceback > traceback.print_exc() > @@ -57,4 +60,7 @@ > return > > def bindtextdomain(s,x): > + return > + > + def bind_textdomain_codeset(s,x): > return > -- > Alexandre Duret-Lutz > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel > -- Don Allingham dal...@us... http://gramps.sourceforge.net |
From: Alexandre Duret-L. <ad...@us...> - 2002-11-26 18:36:44
|
>>> "Don" == Don Allingham <dal...@us...> writes: Don> Alexandre, Don> Sources.py has been added to CVS. Let me know if you have any other Don> problems. Could you remove the | try: | import pygtk; pygtk.require('2.0') | except ImportError: # not set up for parallel install | pass you have added to all files? You need it only *once*, i.e. the first occurence in gramps.py is enough. The purpose of pygtk.require is to prepend the directory where versioned packages are located to `sys.path'. This applies for the whole life of the program and doesn't need to be repeated. To make sure that `sys.path' is modified before a versioned package is loaded, `pygtk.require' will make sure `gtk' hasn't already been imported. Since `gtk' is loaded in gramps.py, all your calls (except the first) will halt gramps with a diagnostic like this: Traceback (most recent call last): File "/home/adl/usr/share/gramps/gramps.py", line 54, in ? import gramps_main File "/home/adl/usr/share/gramps/gramps_main.py", line 53, in ? from PedView import PedigreeView File "/home/adl/usr/share/gramps/PedView.py", line 40, in ? import GrampsCfg File "/home/adl/usr/share/gramps/GrampsCfg.py", line 30, in ? import PaperMenu File "/home/adl/usr/share/gramps/PaperMenu.py", line 27, in ? import pygtk; pygtk.require('2.0') File "/usr/lib/python2.2/site-packages/pygtk.py", line 44, in require assert not sys.modules.has_key('gtk'), \ AssertionError: pygtk.require() must be called before importing gtk -- Alexandre Duret-Lutz |
From: Don A. <dal...@us...> - 2002-11-27 06:26:27
|
Alexandre, Thanks for the explanation. I just checked in the changes to undo the damage that I did. Let me know if it works okay. Don On Tue, 2002-11-26 at 11:36, Alexandre Duret-Lutz wrote: > >>> "Don" == Don Allingham <dal...@us...> writes: > > Don> Alexandre, > Don> Sources.py has been added to CVS. Let me know if you have any other > Don> problems. > > Could you remove the > > | try: > | import pygtk; pygtk.require('2.0') > | except ImportError: # not set up for parallel install > | pass > > you have added to all files? > > You need it only *once*, i.e. the first occurence in gramps.py > is enough. > > The purpose of pygtk.require is to prepend the directory where > versioned packages are located to `sys.path'. This applies for > the whole life of the program and doesn't need to be repeated. > > To make sure that `sys.path' is modified before a versioned > package is loaded, `pygtk.require' will make sure `gtk' hasn't > already been imported. Since `gtk' is loaded in gramps.py, all > your calls (except the first) will halt gramps with a diagnostic > like this: > > Traceback (most recent call last): > File "/home/adl/usr/share/gramps/gramps.py", line 54, in ? > import gramps_main > File "/home/adl/usr/share/gramps/gramps_main.py", line 53, in ? > from PedView import PedigreeView > File "/home/adl/usr/share/gramps/PedView.py", line 40, in ? > import GrampsCfg > File "/home/adl/usr/share/gramps/GrampsCfg.py", line 30, in ? > import PaperMenu > File "/home/adl/usr/share/gramps/PaperMenu.py", line 27, in ? > import pygtk; pygtk.require('2.0') > File "/usr/lib/python2.2/site-packages/pygtk.py", line 44, in require > assert not sys.modules.has_key('gtk'), \ > AssertionError: pygtk.require() must be called before importing gtk > -- > Alexandre Duret-Lutz > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel > -- Don Allingham dal...@us... http://gramps.sourceforge.net |
From: Alexandre Duret-L. <ad...@us...> - 2002-11-27 08:33:39
|
>>> "Don" == Don Allingham <dal...@us...> writes: Don> Alexandre, Don> Thanks for the explanation. I just checked in the changes to undo the Don> damage that I did. Let me know if it works okay. Now it starts fine. That's great :) I've not used it a lot, but here are the few errors I've experienced so far. When I switch to the Pedigree view, I get many messages like | ** (gramps:25995): WARNING **: Couldn't load font "<GdkFont at | 0x8c5bf88> 10" falling back to "Sans 10" | | ** (gramps:25995): WARNING **: Couldn't load font "<GdkFont at | 0x8c5bf88> 10" falling back to "Sans 10" Also, in the Familly view, when the mother is unknown, Gramps displays this: | Father: Smith, John | Relationship: Birth | unknown I'd find `Mother: unknown' or `Unknown mother' clearer. Anyway, the important point is that when you double-click on these parents, you get | GRAMPS 0.9.0-pre6 has encountered an internal error. | Please copy the message below and post a bug report at http://sourceforge.net/projects/gramps or send an email message to gra...@li... | | Traceback (most recent call last): | File "/home/adl/usr/share/gramps/FamilyView.py", line 461, in parent_editor | self.load_family,self.parent.full_update) | File "/home/adl/usr/share/gramps/ChooseParents.py", line 425, in __init__ | self.mother_rel.set_senstive(0) | AttributeError: 'gtk.Entry' object has no attribute 'set_senstive' or | GRAMPS 0.9.0-pre6 has encountered an internal error. | Please copy the message below and post a bug report at http://sourceforge.net/projects/gramps or send an email message to gra...@li... | | Traceback (most recent call last): | File "/home/adl/usr/share/gramps/FamilyView.py", line 461, in parent_editor | self.load_family,self.parent.full_update) | File "/home/adl/usr/share/gramps/ChooseParents.py", line 419, in __init__ | self.father_rel.set_senstive(0) | AttributeError: 'gtk.Entry' object has no attribute 'set_senstive' if its an unknown father. At some point I also got | Traceback (most recent call last): | File "/home/adl/usr/share/gramps/EditSource.py", line 210, in on_switch_page | self.display_references() | File "/home/adl/usr/share/gramps/EditSource.py", line 152, in display_references | slist.append([_("Individual Events"),p[0], | AttributeError: 'NoneType' object has no attribute 'append' but I don't remember in which condition. -- Alexandre Duret-Lutz |
From: Don A. <dal...@us...> - 2002-11-27 13:43:43
|
I should have these fixed now. However, the font warning is something I'm not sure of. It should be using the default font of your style, and for some reason it thinks it can't find it. I'll keep working on this, but it shouldn't cause any problems other than an incorrect font being displayed. Don On Wed, 2002-11-27 at 01:33, Alexandre Duret-Lutz wrote: > >>> "Don" == Don Allingham <dal...@us...> writes: > > Don> Alexandre, > Don> Thanks for the explanation. I just checked in the changes to undo the > Don> damage that I did. Let me know if it works okay. > > Now it starts fine. That's great :) > > I've not used it a lot, but here are the few errors I've experienced so far. > > When I switch to the Pedigree view, I get many messages like > > | ** (gramps:25995): WARNING **: Couldn't load font "<GdkFont at > | 0x8c5bf88> 10" falling back to "Sans 10" > | > | ** (gramps:25995): WARNING **: Couldn't load font "<GdkFont at > | 0x8c5bf88> 10" falling back to "Sans 10" > > Also, in the Familly view, when the mother is unknown, Gramps > displays this: > > | Father: Smith, John > | Relationship: Birth > | unknown > > I'd find `Mother: unknown' or `Unknown mother' clearer. Anyway, the > important point is that when you double-click on these parents, you get > > | GRAMPS 0.9.0-pre6 has encountered an internal error. > | Please copy the message below and post a bug report at http://sourceforge.net/projects/gramps or send an email message to gra...@li... > | > | Traceback (most recent call last): > | File "/home/adl/usr/share/gramps/FamilyView.py", line 461, in parent_editor > | self.load_family,self.parent.full_update) > | File "/home/adl/usr/share/gramps/ChooseParents.py", line 425, in __init__ > | self.mother_rel.set_senstive(0) > | AttributeError: 'gtk.Entry' object has no attribute 'set_senstive' > > or > > | GRAMPS 0.9.0-pre6 has encountered an internal error. > | Please copy the message below and post a bug report at http://sourceforge.net/projects/gramps or send an email message to gra...@li... > | > | Traceback (most recent call last): > | File "/home/adl/usr/share/gramps/FamilyView.py", line 461, in parent_editor > | self.load_family,self.parent.full_update) > | File "/home/adl/usr/share/gramps/ChooseParents.py", line 419, in __init__ > | self.father_rel.set_senstive(0) > | AttributeError: 'gtk.Entry' object has no attribute 'set_senstive' > > if its an unknown father. > > At some point I also got > > | Traceback (most recent call last): > | File "/home/adl/usr/share/gramps/EditSource.py", line 210, in on_switch_page > | self.display_references() > | File "/home/adl/usr/share/gramps/EditSource.py", line 152, in display_references > | slist.append([_("Individual Events"),p[0], > | AttributeError: 'NoneType' object has no attribute 'append' > > but I don't remember in which condition. > -- > Alexandre Duret-Lutz > > -- Don Allingham dal...@us... http://gramps.sourceforge.net |
From: Alexandre Duret-L. <ad...@us...> - 2002-11-27 17:33:29
|
>>> "Don" == Don Allingham <dal...@us...> writes: [...] Don> the font warning is something I'm not sure of. It should Don> be using the default font of your style, and for some Don> reason it thinks it can't find it. [...] I'm not a Gnome user (I dislike desktops). Gramps is the sole Gnome application I use. Thus I think it uses the default style. Where would such a style be recorded? -- Alexandre Duret-Lutz |
From: whitehat <whi...@at...> - 2002-11-27 18:32:27
|
The following error occurs in the Generate Web Site report selection after pressing the OK button. The Status dialog box displays the status line and the range of output records but pauses at 1 and produces the following error: Traceback (most recent call last): File "/usr/share/gramps/gramps_main.py", line 1441, in menu_report task(self.db,self.active_person) File "/usr/share/gramps/plugins/WebPage.py", line 1143, in report WebReportDialog(database,person) File "/usr/share/gramps/plugins/WebPage.py", line 822, in __init__ ReportDialog.__init__(self,database,person) File "/usr/share/gramps/Report.py", line 226, in __init__ self.on_ok_clicked(result) File "/usr/share/gramps/Report.py", line 941, in on_ok_clicked self.make_report() File "/usr/share/gramps/plugins/WebPage.py", line 1135, in make_report MyReport.write_report() File "/usr/share/gramps/plugins/WebPage.py", line 787, in write_report while events_pending(): NameError: global name 'events_pending' is not defined I fixed the problem by changing: while events_pending() to while gtk.events_pending() and worked but another problem poped up. Lou |
From: whitehat <whi...@at...> - 2002-11-27 18:35:35
|
The following error occurs in the Generate Web Site report selection after pressing the OK button. The Status dialog box displays the status line and the range of output records but pauses at 1 and produces the following error: Traceback (most recent call last): File "/usr/share/gramps/gramps_main.py", line 1441, in menu_report task(self.db,self.active_person) File "/usr/share/gramps/plugins/WebPage.py", line 1143, in report WebReportDialog(database,person) File "/usr/share/gramps/plugins/WebPage.py", line 822, in __init__ ReportDialog.__init__(self,database,person) File "/usr/share/gramps/Report.py", line 226, in __init__ self.on_ok_clicked(result) File "/usr/share/gramps/Report.py", line 941, in on_ok_clicked self.make_report() File "/usr/share/gramps/plugins/WebPage.py", line 1135, in make_report MyReport.write_report() File "/usr/share/gramps/plugins/WebPage.py", line 787, in write_report while events_pending(): NameError: global name 'events_pending' is not defined I fixed the problem by changing: while events_pending() to while gtk.events_pending() and worked but another problem poped up. Lou |
From: whitehat <whi...@at...> - 2002-11-27 19:28:51
|
I received the following when trying to generate an svg output file. I couldn't find get_chars method associated with the TextView class Traceback (most recent call last): File "/usr/share/gramps/gramps_main.py", line 1441, in menu_report task(self.db,self.active_person) File "/usr/share/gramps/plugins/DesGraph.py", line 347, in report DescendantReportDialog(database,person) File "/usr/share/gramps/plugins/DesGraph.py", line 297, in __init__ DrawReportDialog.__init__(self,database,person) File "/usr/share/gramps/Report.py", line 1032, in __init__ ReportDialog.__init__(self,database,person) File "/usr/share/gramps/Report.py", line 226, in __init__ self.on_ok_clicked(result) File "/usr/share/gramps/Report.py", line 933, in on_ok_clicked self.parse_report_options_frame() File "/usr/share/gramps/Report.py", line 892, in parse_report_options_frame self.report_text = string.split(self.extra_textbox.get_chars(0,-1),'\n') AttributeError: 'gtk.TextView' object has no attribute 'get_chars' Lou |
From: Don A. <dal...@us...> - 2002-11-26 05:15:14
|
I've checked in some changes on the gnome 2 version that should allow for parallel installations. This should make it more debian friendaly. I've also restored the building of the intl22.so library. I've also eliminated the need for SWIG to be installed by checking in the generated file. Apparently swig is significantly different between versions, so this will allow a common file to be used. I haven't figured out why Sources.py is not getting installed. Did it get copied into the $prefix/share/gramps directory? Don On Mon, 2002-11-25 at 16:04, Alexandre Duret-Lutz wrote: > >>> "Don" == Don Allingham <dal...@us...> writes: > > [...] > > Don> Debian uses a newer version that can and does coexist. I > Don> have to add the logic to check for the right versions, but > Don> I don't have a machine to test this on yet. > > I only have that, so I can tweak the tests, but I can't check > whether they work ouside Debian :) > > Don> A lot more things are working now. This might be the first > Don> really usable version for GNOME 2. > > I've not yet managed to start Gramps, though. So far I'm blocked with > > % gramps > Traceback (most recent call last): > File "/home/adl/usr/share/gramps/intl.py", line 37, in ? > from intl22 import * > ImportError: No module named intl22 > Traceback (most recent call last): > File "/home/adl/usr/share/gramps/gramps.py", line 55, in ? > import gramps_main > File "/home/adl/usr/share/gramps/gramps_main.py", line 54, in ? > from PlaceView import PlaceView > File "/home/adl/usr/share/gramps/PlaceView.py", line 42, in ? > import EditPlace > File "/home/adl/usr/share/gramps/EditPlace.py", line 47, in ? > import Sources > ImportError: No module named Sources > > I can't find package `Sources' in the gramps sources, althought > I can see it's imported by 7 files. > > > A few notes about the changes in the following patch. > > * This is against today's CVS gramps2 module. > * PYTHON_VERSION is already defined by AM_INIT_AUTOMAKE > * changequote should be avoided in Autoconf-land, and the > calls where useless in these cases > * my Swig version (1.3) insists on calling the DSO for grampslib.i > `_grampslib.so', with a leading underscore. the generated > grampslib.py then imports _grampslib. > * without the `file:' prefix, the XML parser complains that > for/bar/baz.xml is not a valid URL. > > Index: configure.in > =================================================================== > RCS file: /cvsroot/gramps/gramps2/configure.in,v > retrieving revision 1.8 > diff -u -b -r1.8 configure.in > --- configure.in 25 Nov 2002 04:30:36 -0000 1.8 > +++ configure.in 25 Nov 2002 22:47:12 -0000 > @@ -44,10 +44,6 @@ > AC_PATH_PROG(BINSH, sh) > AC_PATH_PROG(SWIG, swig) > > -changequote(<<, >>)dnl > -PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"` > -changequote([, ])dnl > - > if test "$PYTHON_VERSION" != "2.2" > then > AC_PATH_PROG(PYTHON22, python2.2) > @@ -76,11 +72,18 @@ > GNOMEINC=`pkg-config --cflags gnome-vfs-module-2.0` > GNOMELIB=`pkg-config --libs gnome-vfs-module-2.0` > > +pygtk_require="try: > + import pygtk > + pygtk.require('2.0') > +except ImportError: > + pass > +" > + > dnl Check if python bindings for gtk are installed > > AC_MSG_CHECKING(Python bindings for gtk) > -changequote(,) > cat > conftest.py <<EOF > +$pygtk_require > try: > import gobject > f = open("conftest.out", "w") > @@ -91,7 +94,6 @@ > f.write("NO") > f.close() > EOF > -changequote([, ]) > $PYTHON conftest.py > has_pygtk=`cat conftest.out` > rm -f conftest.out conftest.py > @@ -104,7 +106,6 @@ > AC_MSG_RESULT(ok) > > AC_MSG_CHECKING(Python bindings for GNOME) > -changequote(,) > cat > conftest.py <<EOF > try: > import gnome, gnome.ui > @@ -116,7 +117,6 @@ > f.write("NO") > f.close() > EOF > -changequote([, ]) > $PYTHON conftest.py > has_pygnome=`cat conftest.out` > rm -f conftest.out conftest.py > @@ -128,8 +128,8 @@ > AC_MSG_RESULT(ok) > > AC_MSG_CHECKING(Python bindings for gconf) > -changequote(,) > cat > conftest.py <<EOF > +$pygtk_require > try: > import gconf > f = open("conftest.out", "w") > @@ -140,7 +140,6 @@ > f.write("NO") > f.close() > EOF > -changequote([, ]) > $PYTHON conftest.py > has_gconf=`cat conftest.out` > rm -f conftest.out conftest.py > @@ -152,8 +151,8 @@ > AC_MSG_RESULT(ok) > > AC_MSG_CHECKING(Python bindings for GNOME canvas) > -changequote(,) > cat > conftest.py <<EOF > +$pygtk_require > try: > import gnome.canvas > f = open("conftest.out", "w") > @@ -164,7 +163,6 @@ > f.write("NO") > f.close() > EOF > -changequote([, ]) > $PYTHON conftest.py > has_canvas=`cat conftest.out` > rm -f conftest.out conftest.py > @@ -176,8 +174,8 @@ > AC_MSG_RESULT(ok) > > AC_MSG_CHECKING(Python bindin for glade) > -changequote(,) > cat > conftest.py <<EOF > +$pygtk_require > try: > import gtk.glade > f = open("conftest.out", "w") > @@ -188,7 +186,6 @@ > f.write("NO") > f.close() > EOF > -changequote([, ]) > $PYTHON conftest.py > has_pygtk=`cat conftest.out` > rm -f conftest.out conftest.py > Index: src/Makefile.am > =================================================================== > RCS file: /cvsroot/gramps/gramps2/src/Makefile.am,v > retrieving revision 1.5 > diff -u -b -r1.5 Makefile.am > --- src/Makefile.am 8 Nov 2002 05:25:53 -0000 1.5 > +++ src/Makefile.am 25 Nov 2002 22:47:15 -0000 > @@ -21,12 +21,12 @@ > GRAPHICS := ${wildcard *.xpm} ${wildcard *.png} ${wildcard *.jpg} > > # Other stuff that we need to install > -pkgdata_DATA = ${INTLLIBS} ${GLADEFILES} ${GRAPHICS} gramps.desktop grampslib.so > +pkgdata_DATA = ${INTLLIBS} ${GLADEFILES} ${GRAPHICS} gramps.desktop _grampslib.so > > EXTRA_DIST = grampslib.i > > > -all: ${INTLLIBS} grampslib.so > +all: ${INTLLIBS} _grampslib.so > > DIST_SOURCES = intl.c > dist_pkgdata_DATA = ${pkgdata_DATA} > @@ -36,7 +36,7 @@ > intl22.so: intl.c > $(CC) $(CFLAGS) $(LDFLAGS) @P22_INCLUDES@ -DVER22 -o $@ intl.c > > -grampslib.so: grampslib.i > +_grampslib.so: grampslib.i > $(SWIG) -python grampslib.i > $(CC) $(CFLAGS) @P22_INCLUDES@ -o $@ grampslib_wrap.c $(LDFLAGS) > > Index: src/const.py > =================================================================== > RCS file: /cvsroot/gramps/gramps2/src/const.py,v > retrieving revision 1.9 > diff -u -b -r1.9 const.py > --- src/const.py 25 Nov 2002 04:30:36 -0000 1.9 > +++ src/const.py 25 Nov 2002 22:47:20 -0000 > @@ -57,13 +57,13 @@ > else: > rootDir = "." > > -papersize = "%s/papersize.xml" % rootDir > +papersize = "file:%s/papersize.xml" % rootDir > good_xpm = "%s/good.png" % rootDir > bad_xpm = "%s/bad.png" % rootDir > caution_xpm = "%s/caution.png" % rootDir > > -system_filters = "%s/system_filters.xml" % rootDir > -custom_filters = "~/.gramps/custom_filters.xml" > +system_filters = "file:%s/system_filters.xml" % rootDir > +custom_filters = "file:~/.gramps/custom_filters.xml" > icon = "%s/gramps.xpm" % rootDir > logo = "%s/logo.png" % rootDir > gladeFile = "%s/gramps.glade" % rootDir > Index: src/gramps.py > =================================================================== > RCS file: /cvsroot/gramps/gramps2/src/gramps.py,v > retrieving revision 1.2 > diff -u -b -r1.2 gramps.py > --- src/gramps.py 25 Nov 2002 04:30:36 -0000 1.2 > +++ src/gramps.py 25 Nov 2002 22:47:20 -0000 > @@ -2,6 +2,17 @@ > > #------------------------------------------------------------------------- > # > +# Cope with versioned pygtk installation. > +# > +#------------------------------------------------------------------------- > +try: > + import pygtk > + pygtk.require('2.0') > +except ImportError: > + pass > + > +#------------------------------------------------------------------------- > +# > # Load internationalization setup > # > #------------------------------------------------------------------------- > @@ -60,4 +71,3 @@ > DisplayTrace.DisplayTrace() > > gtk.mainloop() > - > Index: src/intl.py > =================================================================== > RCS file: /cvsroot/gramps/gramps2/src/intl.py,v > retrieving revision 1.1.1.1 > diff -u -b -r1.1.1.1 intl.py > --- src/intl.py 20 Oct 2002 14:26:40 -0000 1.1.1.1 > +++ src/intl.py 25 Nov 2002 22:47:20 -0000 > @@ -46,6 +46,9 @@ > > def bindtextdomain(s,x): > return > + > + def bind_textdomain_codeset(s,x): > + return > except: > import traceback > traceback.print_exc() > @@ -57,4 +60,7 @@ > return > > def bindtextdomain(s,x): > + return > + > + def bind_textdomain_codeset(s,x): > return > -- > Alexandre Duret-Lutz > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel > -- Don Allingham dal...@us... http://gramps.sourceforge.net |
From: Alexandre Duret-L. <ad...@us...> - 2002-11-26 07:21:56
|
>>> "Don" == Don Allingham <dal...@us...> writes: [...] Don> I haven't figured out why Sources.py is not getting installed. Did it Don> get copied into the $prefix/share/gramps directory? No, since it's not in the CVS tree... [...] >> I can't find package `Sources' in the gramps sources, althought >> I can see it's imported by 7 files. [...] -- Alexandre Duret-Lutz |