From dblank at brynmawr.edu Fri Jan 7 12:08:49 2005 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Fri Jan 7 12:07:05 2005 Subject: [Gramps-tk] Re: Hello dblank In-Reply-To: References: Message-ID: <41DEC221.9040506@brynmawr.edu> Hi Frans, I'm going to CC this to the gramps-tk mailing list, even though at this point it is maybe just you and me. It serves as the first (test) mailing! Well, you are right that this is just a few hours old. But I have been talking to the GRAMPS guys for about about a week, and have spent quite a bit of time to see what is the best way to do this. It is a two prong attach: work with the main GRAMPS core code when we can isolate an issue, and fork versions where we can't. We don't want to stray too far from the GRAMPS source code, because they are actively developing it (and they have done a lot of work we don't want to waste). But, we will have to carefully extract the gtk/gnome bits from many files. This won't be easy, on the one hand, because the code is tightly coupled with the interface. But, it isn't very complicated once we separate it. I'm making versions of each of the files that refer to gtk/gnome/gobject and naming them so that they end in Tk.py. Hopefully, we can then merge back with the main effort in the not-to-distant future. The GRAMPS team have been very receptive, and have already helped develop an option for removing dependencies on gconf (the gnome configuration client/server architecture). This fairly simple change already reduces many requirements that GRAMPS had. Now we must begin the forking part, which is much harder. wxPython does look very nice. Such an interface should be easy to do, once we have the main separation complete. I hope to have an infrastructure in place soon so others can download GRAMPS-tk and start to help. Stay tuned! -Doug Frans Pinkse wrote: > Hello Dblank, > > > This morning I came across Gramops-tk while searching for new > developments of Gramps.I subscribed tor the list but found only you and > myself. Looking at the CVS showed a few hours. So I think this project > is just starting. > > For some time now I am looking for a replacement of genealogy program, > Reunion, based on my old Macintosh. Four years ago my employer changed > platforms, Windows, I changed too at home. When I was introduced to > Python about a year ago I came across Gramps, and found it interesting > enough to plan for a transport to Windows. At that time I lacked the > required skills and the plan went on ice. > > I manually downloaded the files form CVS and fired op Python. But, it > stopped execution at the Module DateParser reporting that the module had > no Attribute nl_langinfo. > Some suggestions, befoer I dive in. > > More info: I seem to have settled for Python and wxPython under BOA. I > plan to have a Linux machine next to my Mac, with system 8 and PC, with > WinXP. > > > With best regards, > > Frans Pinkse. > > _________________________________________________________________ > Talk with your online friends with MSN Messenger http://messenger.msn.nl/ > > -- Douglas S. Blank, Assistant Professor dblank@brynmawr.edu, (610)526-6501 Bryn Mawr College, Computer Science Program 101 North Merion Ave, Park Science Bld. Bryn Mawr, PA 19010 dangermouse.brynmawr.edu From fapinkse at hotmail.com Fri Jan 7 15:42:04 2005 From: fapinkse at hotmail.com (F.A. Pinkse) Date: Fri Jan 7 15:40:10 2005 Subject: [Gramps-tk] Re: Hello dblank In-Reply-To: <41DEC221.9040506@brynmawr.edu> References: <41DEC221.9040506@brynmawr.edu> Message-ID: Hi Doug, Thank you for your reply and explanation. About the first testmailing, I found the Reply-to field missing or it was not setup. With no Reply-to field in the header the Reply will go to the From address. Maybe you can set this up. you probably have to force it for every incoming email. I hope this email will end up in the thread. I manually changed the address. About the project. If you think I can be of some sort of help please let me know. Frans. From dblank at brynmawr.edu Fri Jan 7 17:14:20 2005 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Fri Jan 7 17:12:30 2005 Subject: [Gramps-tk] Re: Hello dblank In-Reply-To: References: <41DEC221.9040506@brynmawr.edu> Message-ID: <41DF09BC.2040407@brynmawr.edu> F.A. Pinkse wrote: > Hi Doug, > > > Thank you for your reply and explanation. You're welcome! Thanks for the interest. > About the first testmailing, I found the Reply-to field missing or it > was not setup. With no Reply-to field in the header the Reply will go > to the From address. Maybe you can set this up. you probably have to > force it for every incoming email. > I hope this email will end up in the thread. I manually changed the > address. Ok, I made a change to mailman. Let's see if this works. > About the project. If you think I can be of some sort of help please let > me know. I hope by next week it will have some functionality so those that want to just run it would have something to try (and report bugs/comments about the interface). Today, I built a simple makefile that copies some files over into the gramps2/src directory. Running gramps_tk.py from there resulted in a Tix/Tkinter program that started on a machine that had none of the gtk/gnome/gobject resources! Now I'll try for a genealogical import... -Doug > Frans. > > > _______________________________________________ > gramps-tk mailing list > gramps-tk@emergent.brynmawr.edu > http://emergent.brynmawr.edu/mailman/listinfo/gramps-tk > > -- Douglas S. Blank, Assistant Professor dblank@brynmawr.edu, (610)526-6501 Bryn Mawr College, Computer Science Program 101 North Merion Ave, Park Science Bld. Bryn Mawr, PA 19010 dangermouse.brynmawr.edu From fapinkse at hotmail.com Sat Jan 8 06:18:51 2005 From: fapinkse at hotmail.com (F.A. Pinkse) Date: Sat Jan 8 06:17:08 2005 Subject: [Gramps-tk] Re: Hello dblank In-Reply-To: <41DF09BC.2040407@brynmawr.edu> References: <41DEC221.9040506@brynmawr.edu> <41DF09BC.2040407@brynmawr.edu> Message-ID: Hi Doug, No change to the Reply To. About the project. Ok I think it is better to leave you at it whilst in the middle of it. In the mean time I can try to polish my CVS and see if it will checkout. Next thing then would be to have this Tix up. Frans. From fapinkse at hotmail.com Sat Jan 8 06:57:42 2005 From: fapinkse at hotmail.com (F.A. Pinkse) Date: Sat Jan 8 06:56:07 2005 Subject: [Gramps-tk] Re: Hello dblank In-Reply-To: References: <41DEC221.9040506@brynmawr.edu> <41DF09BC.2040407@brynmawr.edu> Message-ID: Hi Doug, Ok the reply works, now to see if hotmail understands it when I throw this at it. Frans. From david at handysoftware.com Sat Jan 8 18:50:07 2005 From: david at handysoftware.com (David Handy) Date: Sat Jan 8 18:48:34 2005 Subject: [Gramps-tk] Hello! I'm interested in helping with Gramps-tk Message-ID: <20050108235007.GB21075@arno2> Thanks, Doug, for sending me the info about the new Gramps-tk project and mailing list. I too am very interested in a gramps-like genealogy program that works on both Linux and Windows (and Mac OS too, nothing against that platform). My main motivations for seeking something like Gramps-tk for genealogy are: 1. I primarily use Linux at home 2. All of the rest of my extended family uses Windows 3. I am interested in collaborating with my extended family in compiling and maintaining our genealogy and family history in accessible computerized form. 4. I am a Python programmer and am interested in something that I can extend in Python. A simplified Gramps that runs on multiple platforms and is easy to extend in Python could help towards my goals. I am particularly interested in making it easy for multiple family members to synch their information. Of all of the Python UI packages, I am most familiar with Tkinter, so I am glad that Doug wants to do that first. Also, I have a hope that a core genealogy engine flexible enough to work with multiple UI frameworks (Tkinter and ncurses) should also be good for web-based UI's as well. It wouldn't bother me if it did not scale to 1000's of users -- I'm interested in hosting for my family, not building a huge commercial site. Like everyone else, my time is in great demand, but I hope to be able to help out. My Dad is also a Python programmer and is one of the people I am interested in collaborating with in compiling our genealogy. I'm blind-copying him on this email. (Dad, check out http://emergent.brynmawr.edu/emergent/Gramps-tk) David Handy http://www.handysoftware.com/ From dblank at brynmawr.edu Mon Jan 10 03:35:22 2005 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Mon Jan 10 03:33:22 2005 Subject: [Gramps-tk] Announcing gramps-tk version 0.0! Message-ID: This is the first code from the gramps-tk project that you can download and run. It doesn't do much, but it is a start. Much of the code that is there will probably move around. But you are welcome to jump in, develop, run it, and give feedback (and patches). You can find everything that there is on the project right now at: http://emergent.brynmawr.edu/emergent/Gramps-tk Some notes from the wiki page are below. If you want to add/edit the wiki, please create an account for your self there. Note that gramps-tk uses the CVS version of GRAMPS. GRAMPS is changing. gramps-tk is changing. Needless to say, don't use this on any data you don't mind losing. I'll make new tar files through the week, if there is any work done that warrants it. Hope you find this useful! -Doug Here are the steps to get started: 1. For developers, become familiar with Tkinter and Tix, and gramps2 source code. You will need Python, Tkinter, and Tix, GRAMPS2, and gramps-tk. 2. For users, try out these instructions and give feedback to the mailing list. The code should work on Mac/Win, but these instructions don't tell you how to get it started. Maybe you can figure it out? 3. Checkout the CVS version of GRAMPS2, but don't build it. Just get the source code: 4. Download the latest gramps-tk tgz file from here: http://mightymouse.brynmawr.edu/~dblank/gramps-tk/download/ 5. You should have gramps2 and gramps-tk directories sitting next to each other. 6. cd into gramps-tk 7. Type "make build" to copy the gramps-tk files into the gramps2 directory 8. Type "make run" to run gramps-tk 9. You will need to import a .GED file to do anything other than look at the pretty interface: select "Import..." from the "File" menu and select a *.GED file. You could also open an existing .grdb file if you have one. 10. You can then begin to see your family tree data, without needing gtk/gnome. Things that work: * people view; double-click a surname or person. * family view (somewhat); double-click a child to change active person * import a different GED file * that's about it! When it crashes (not "if") you may have to press Control+C in the terminal window. The GUI code is in two main files: gramps_tk.py and GrampsGuiTk. All of the other code is in *.Tk.py (if it is a "fork" of the regular *.py file) or in the regular gramps files (in gramps2/src/*.py). Things that you could work on (put your name next to items, or add your own list): * any of the other windows or dialogs * the main edit window for a person * any of the toolbar or menu functions * pedigree view * reports and tools * a different GUI toolkit (ncurses, QT, Pmw, wxPython, gtk, etc.) From eero.tamminen at netsonic.fi Mon Jan 10 14:04:11 2005 From: eero.tamminen at netsonic.fi (Eero Tamminen) Date: Mon Jan 10 13:50:00 2005 Subject: [Gramps-tk] Announcing gramps-tk version 0.0! In-Reply-To: References: Message-ID: <200501102104.11541.eero.tamminen@netsonic.fi> Hi, > Things that you could work on (put your name next to items, or add your > own list): > > * any of the other windows or dialogs > * the main edit window for a person > * any of the toolbar or menu functions > * pedigree view > * reports and tools In the new reports code (changed *radically* at the end of 2004) all GUI related code in the reports are in two Options class methods: def add_user_options(self,dialog): """ Override the base class add_user_options task to add a menu that allows the user to select the sort method. """ def parse_user_options(self,dialog): """ Parses the custom options that we have added. """ Usually they fit into two screenfuls of code. First method basically extracts default values from the report options_dict to UI widgets, and second one puts new values from the widgets back to the dict. I.e. report specific GUI is pretty trivial. The report *framework* GUI code is another matter. :-) > * a different GUI toolkit (ncurses, QT, Pmw, wxPython, gtk, etc.) - Eero From eero.tamminen at netsonic.fi Mon Jan 10 14:04:11 2005 From: eero.tamminen at netsonic.fi (Eero Tamminen) Date: Mon Jan 10 13:50:00 2005 Subject: [Gramps-tk] Announcing gramps-tk version 0.0! In-Reply-To: References: Message-ID: <200501102104.11541.eero.tamminen@netsonic.fi> Hi, > Things that you could work on (put your name next to items, or add your > own list): > > * any of the other windows or dialogs > * the main edit window for a person > * any of the toolbar or menu functions > * pedigree view > * reports and tools In the new reports code (changed *radically* at the end of 2004) all GUI related code in the reports are in two Options class methods: def add_user_options(self,dialog): """ Override the base class add_user_options task to add a menu that allows the user to select the sort method. """ def parse_user_options(self,dialog): """ Parses the custom options that we have added. """ Usually they fit into two screenfuls of code. First method basically extracts default values from the report options_dict to UI widgets, and second one puts new values from the widgets back to the dict. I.e. report specific GUI is pretty trivial. The report *framework* GUI code is another matter. :-) > * a different GUI toolkit (ncurses, QT, Pmw, wxPython, gtk, etc.) - Eero From david at handysoftware.com Tue Jan 11 09:15:42 2005 From: david at handysoftware.com (David Handy) Date: Tue Jan 11 09:14:11 2005 Subject: [Gramps-tk] Need to explicitly get Tix on Debian Linux In-Reply-To: References: Message-ID: <20050111141542.GA28353@arno2> Even though I had the Python Tix package installed, it would not work: Python 2.3.4 (#2, Dec 3 2004, 13:53:17) [GCC 3.3.5 (Debian 1:3.3.5-2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import Tix >>> root = Tix.Tk() Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.3/lib-tk/Tix.py", line 210, in __init__ self.tk.eval('package require Tix') _tkinter.TclError: can't find package Tix To fix this I had to install Tix separately: apt-get install tix I don't know why Debian didn't set up their dependencies correctly for this. Anyway, I'm posting this just in case someone else hits the same problem. After I did this, I was able to run gramps-tk and see the main ui. There were other problems, but that is another post... David H. From dblank at brynmawr.edu Tue Jan 11 12:17:53 2005 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Tue Jan 11 12:15:45 2005 Subject: [Gramps-tk] gramps-tk Update: version 0.04 In-Reply-To: <20050111141542.GA28353@arno2> References: , Message-ID: Thanks, David! I've updated the wiki page http://emergent.brynmawr.edu/emergent/Gramps-tk (and, in fact, put some more instructions and developer hints). If you have gramps-tk-0.03 or higher, and you aren't editing code, then you can run: make update in the gramps-tk directory, and it will download the latest version of gramps-tk. Running: make install make run will copy the new gramps-tk code into gramps2/src and start gramps-tk. Updates: After looking at ncurses for a bit, I would vote that we put that on the backburner for now. It only runs on Linux/Unix so it would only be useful for those that could run the tk version anyway. But, I think it would be trivial now to add other GUIs to GRAMPS. All of the Tk-specific code is in two files: gramps_tk.py GrampsGuiTk.py The first is the main program, and the second is a library that can be loaded by the rest of GRAMPS. I image that one would "import GrampsGui" and the correct versions of dialog boxes, etc, would be available. To create a new GUI (say, a web interface, wxPython, Qt, or ncurses) one only need to replicate those two files (Of course, those two files aren't finished! Just getting started!) There are a set of files that have been "spooned" (to quote Steve Hall). These files end in *Tk.py and are identical to their like-named GRAMPS files, except where they do something gtk or gnome related. But, these files will eventually be merged back with the main gramps code. In fact, thanks to Don and Alex, every few days that go by the spooned files decrease in number. Also, I think that gramps-tk won't need many of the spooned files. For example, I think we can by-pass many of the intermediary views and models, and talk directly to the database. I encourage you to try out the interface so far. If you have Python, Tkinter, Tix, and a GED file to import, you can actually view the people and families. Thanks! -Doug David Handy said: > Even though I had the Python Tix package installed, it would not work: > > > Python 2.3.4 (#2, Dec 3 2004, 13:53:17) > [GCC 3.3.5 (Debian 1:3.3.5-2)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import Tix > >>> root = Tix.Tk() > Traceback (most recent call last): > File "", line 1, in ? > File "/usr/lib/python2.3/lib-tk/Tix.py", line 210, in __init__ > self.tk.eval('package require Tix') > _tkinter.TclError: can't find package Tix > > > To fix this I had to install Tix separately: > > apt-get install tix > > I don't know why Debian didn't set up their dependencies correctly for this. > Anyway, I'm posting this just in case someone else hits the same problem. > > After I did this, I was able to run gramps-tk and see the main ui. There > were other problems, but that is another post... > > David H. From jacob at cachevalley.com Wed Jan 12 02:18:57 2005 From: jacob at cachevalley.com (Jacob Anawalt) Date: Wed Jan 12 02:13:32 2005 Subject: [Gramps-tk] Re: Need to explicitly get Tix on Debian Linux Message-ID: <41E4CF61.8090208@cachevalley.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 |import Tix | root = Tix.Tk() | Traceback (most recent call last): | File "", line 1, in ? | File "/usr/lib/python2.3/lib-tk/Tix.py", line 210, in __init__ | self.tk.eval('package require Tix') | _tkinter.TclError: can't find package Tix | | | To fix this I had to install Tix separately: | | apt-get install tix | | I don't know why Debian didn't set up their dependencies correctly for this. I'm running Debian/Testing and it appears that python2.1-tk depended on tix8.1 and none of the other python.*-tk versions do. I think that python2.1-tk was the odd duck. I don't think that python-tk should do more than suggest tix, since it doesn't require Tix (a Tk extension library) to run. GRAMPS-tix should require Tix and Python-tk along with GRAMPS-common when it becomes a package, unless of course it doesn't require Tix either and can run just as GRAMPS-tk and then it should just suggest Tix. - -- Jacob Anawalt -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFB5M9f0kHGNZL/nCERAk3IAKCTGXy6e3880fnYxpZD0S/03CAoKACfeb89 MBu3dJX/JKZIR2JO3kpWCEM= =ihV0 -----END PGP SIGNATURE----- From dblank at brynmawr.edu Wed Jan 12 02:55:41 2005 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Wed Jan 12 02:53:32 2005 Subject: [Gramps-tk] Re: [Gramps-users] Announcing GRAMPS-tk In-Reply-To: <41E4C8F7.6070704@cachevalley.com> References: , Message-ID: Jacob, I think I agree with all of your sentiments (including seeing images in ascii... I actually looked into that yesterday!). As for the name GRAMPS-tk, it is really just a specific name for (hopefully) a general set of interfaces. If we do this right, and Don and Alex believe that it is working, I hope that part of the setup of GRAMPS will be: which interface do you want to use? We might have to make our installation slightly different for a bit. So, the name is just a place holder for now. I wasn't aware that Tix wasn't available everywhere that Tkinter was. But that's ok. I picked Tix because it had the best looking table-like object, seemed very stable, and looked to be very portable. Pmw was also a contender. So, there may actually be a few Tkinter-based interfaces by the time we are through. These can be thought of as "skins", maybe. I hope to try this code out on my wife's Mac this weekend. If Tix doesn't work, it shouldn't take to long to come up with a pure Tkinter version. Other than a couple of fancy widgets, it is mostly just Tkinter. I think the motivation of having a mini-GRAMPS (or GRAMPS-lite) is right on target, and a great goal to set for ourselves. We should have a handy way of taking our database (or a part of it) and with our GRAMPS-tk take it on the road on a floppy (ok, how about a jump drive?) and doing some simple additions or edits. Sort of a NOTEPAD to GRAMPS's WORD. A Palm interface would be cool for that, too. In any event, you should download the latest, get everything installed, and get your hands dirty. We could use some initial feedback on what platforms support Tix, problems with running, and some feedback on the user interface. And you can start coding! You want an assignment? (Sorry, I am a teacher...) -Doug Jacob Anawalt said: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Douglas S. Blank wrote: > | Just a short note to let you know of a new GRAMPS subproject getting > underway. > | Currently, we're calling it GRAMPS-tk for lack of a better name. The basic > | idea is to create a simplified version of GRAMPS---one that uses much > fewer > | resources and will be more widely useable. > > I think that this can be a good thing and have been hoping to get some > free time to do something like this for months. > > I have wished I could just take a subset of my full GRAMPS database on > my laptop or handheld :) to the library or a relative's to go over my > current research and jot down notes or make corrections and then > bringing it back to update/merge into my master database. I think that's > a ways off but this is a start. (I can of course print stuff out and do > it on paper, but where's the cool geek factor in that?) > > I was considering calling it GRAMPS-lite or some such name. GRAMPS-tk > also sounds good, especially if the interface becomes part of the GRAMPS > project. > > Isn't the current code really GRAMPS-tix or GRAMPS-tk-tix? > > I don't know how portable the new GRAMPS db files are. That could be > something to consider. There is the xml database format for exchanging > and for 'lite' (handheld, oldmac) systems, unless berkleydb is more > available than an xml parser. > > | For example, we imagine that this > | new version will: > | > | * have a Tkinter interface > | * be written in pure Python > | * should run on Mac OS X, Windows, and other OS's > > I'd like to share GRAMPS with others who aren't ready to run a system > with a POSIX core and a full GNOME environment. > > Adding (nice) extra libraries like Tix may limit the number of machines > it can run on. Is, for example, Tix available on Mac OS 7.6? It doesn't > seem to be. > > | * have an ncurses interface (console text) > > GRAMPS-curses :P (Seems pretty true to me.) ;) > GRAMPS-cli (simple, non-curses text interface) > > (Ooooh! If an img-to-ascii library is available, see your pictures in > ascii art. j/k :) ) > > | * run on a standard installation of Linux > > An option for people with a broken Slackware GNOME environment or silly > GNOME haters who refuse to install any GNOME stuff. :) > > | * have a simplified programmers interface (for writing reports, or > writing > | little Python programs that interact with your family tree data) > | > > That seems to not be specific to the Tk interface, but a general feature > for all user interfaces. > > | Although this version will be easier to get going and install, it, of > course, > | won't have nearly as many of the bell and whistles that the current > | gtk/gnome-based GRAMPS has. > > I think that's OK. I for one don't want to write all the services a > GNOME environment provides but appreciate having them on my desktop > system when running GRAMPS. > > Sometimes I wonder why, say vim-gtk, needs 'bells and whistles' > (gnome-sound or whatever) if I'm using it remotely from a server ;). > > I just want to view/modify the key information (names, dates, > relationships) in my GRAMPS databases on other platforms when I can't > take my desktop. It doesn't need to ding or whistle, except maybe Dixie > when working on my relatives from The South. ;) > > | But other GUI's should be easy to add, too. > | > > I appreciate Alex and Don's support on this sub-project, making it easy > to add other GUI's. > > I feel a twinge of guilt having sat on the side lines reading the mail > but not brushing up my Python skills to help with the main project. I > want to change that. I hope this project is as helpful to users of > GRAMPS as I think it can be. > > Back to lurking and practicing Python. > > - -- > Jacob Anawalt > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (GNU/Linux) > Comment: Using GnuPG with Debian - http://enigmail.mozdev.org > > iD8DBQFB5Mj00kHGNZL/nCERApdWAJ9T0535FWXrMkG6OZ6y2fdE3sPw2gCbBtlC > 1UvWkETY+hRQvDJUoTQKMzs= > =PxVm > -----END PGP SIGNATURE----- > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Gramps-users mailing list > Gramps-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gramps-users > From dblank at brynmawr.edu Thu Jan 13 01:37:24 2005 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Thu Jan 13 01:35:09 2005 Subject: [Gramps-tk] Status update version 0.06 Message-ID: <41E61724.1040702@brynmawr.edu> Gramps-tk can now read and import .ged, .gramps, and .grdb files. Also the following screens are mostly complete: People, Family, and Pedigree. Currently, double-clicking on a name makes it the active person (also true on the pedigree page-- first double click makes them the root person, double-click again and they go to the Family page). One point of departure from its namesake: gramps-tk doesn't ask you to open or create a file on start-up, but always has an open database, waiting for your input. In this manner, it acts like a wordprocessor, where it starts on an open document. If you enter items into such an unnamed database, you'll (eventually) be asked if you want to save it. If you say no, then it will delete it and close. Except for a few file and directory paths, this version should run on Windows and Mac OSX (if Tix is there), and be a useful family tree browser. But many things missing: * report and tools * editing/adding of people and relationships * back/forward movement * history * bookmarks * listing and editing of media, places, and sources Don't use this on your primary family data; use it on backups of data. To try it out: wget http://mightymouse.brynmawr.edu/~dblank/gramps-tk/download/gramps-tk-current.tgz tar xfz gramps-tk-current.tgz cd gramps-tk make gramps2 # have the latest CVS? this will fetch it make install make run -Doug From dblank at brynmawr.edu Sat Jan 15 01:05:32 2005 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Sat Jan 15 01:03:06 2005 Subject: [Gramps-tk] Update on version 0.07 Message-ID: Gramps-tk version 0.07 is now capable of opening all native GRAMPS genealogy formats (.ged, .gramps, and .grdb), can create new databases, and can import data into any currently-opened database. The interface now sports a web-link analogy, where all names can be "followed" like a browser link with a single click. Try it and see if you like it. The complex model/view code for each of the pages has been refactored into a new single DataView.py. This eliminates the need to import many GRAMPS files that have lingering gtk/gnome/gconf calls, and greatly simplifies and reduces the code. The Pedigree view now dynamically fits as many generations as it can. I believe that the canvas widget can be directly printed as postscript, so this may the form the basis of an easy-to-script graphical report engine. Next week, I hope to have basic editing added, and the beginnings of a second interface so as to test the GUI abstractions. I would think that within a month, we may have a fully-functional genealogy program to run through a series of stress-tests. Anyone have some good databases for testing? Download Gramps-tk at: http://mightymouse.brynmawr.edu/~dblank/gramps-tk/download/ and follow the directions at: http://emergent.brynmawr.edu/emergent/Gramps-tk -Doug From fapinkse at hotmail.com Mon Jan 17 17:21:16 2005 From: fapinkse at hotmail.com (F.A. Pinkse) Date: Mon Jan 17 17:19:22 2005 Subject: [Gramps-tk] Needing help on installing Tix. Message-ID: Hello All, I tried installing Tix and to have it cooperate with Python but failed. I installed Python 2.3.3 from PythonLabs over my all ready installed Python 2.3/wxPython/BoaConstructor. PythonLabs claims Tkinter is part of their distribution. I downloaded and instlled IDEStudio, since I am on WindowsXP. I did ran Install Tix into Python from Start/all Programs/IDEStudio... But when I run the Tix demos it crashes. If I want to keep up with the development of Gramps-tk I need desparatey some help. Some one? With best regards, Frans. From david at handysoftware.com Tue Jan 18 10:59:07 2005 From: david at handysoftware.com (David Handy) Date: Tue Jan 18 10:57:03 2005 Subject: [Gramps-tk] Needing help on installing Tix. In-Reply-To: <41EC3A5C.4060708@hotmail.com> References: <41EC3A5C.4060708@hotmail.com> Message-ID: <20050118155907.GA16252@arno2> On Mon, Jan 17, 2005 at 11:21:16PM +0100, F.A. Pinkse wrote: > I tried installing Tix and to have it cooperate with Python but failed. > I installed Python 2.3.3 from PythonLabs over my all ready installed > Python 2.3/wxPython/BoaConstructor. > PythonLabs claims Tkinter is part of their distribution. What "PythonLabs" are you talking about? What URL did you download the software from? Do you mean the official www.python.org website? If so, why would you install Python 2.3.3 when 2.3.4 is the latest 2.3.x version available? (I assume you did not upgrade to Python 2.4 because you did not want to also have to upgrade your wxPython/BoaConstructor.) I am curious why your original Python 2.3 did not have Tkinter/Tix installed already. Just because you have wxWindows does not mean you can't also have Tkinter. > I downloaded and instlled IDEStudio, since I am on WindowsXP. > I did ran Install Tix into Python from Start/all Programs/IDEStudio... > > But when I run the Tix demos it crashes. I installed Python on my windows machines from the official www.python.org website. It comes with Tkinter and Tix. On Windows I did not have to install Tix separately. I did not ever install IDEStudio either. I just now tried the following test in a Python command window on my Windows XP machine: >>> import Tix >>> root = Tix.Tk() and it created a new Tk window titled "tix". That is the sign that Tix is installed properly on my machine. I have tried some other Tix things on this machine too, and they worked. (I have not tried Gramps-tk on this machine because it is owned by my employer.) Try this test on your machine and let us know what it does. I don't know what Tix demos you tried, but if the test above works then I would go ahead and try out Gramps-tk. > If I want to keep up with the development of Gramps-tk I need desparatey > some help. > > Some one? Do not despair. You are probably closer than you think to getting it to work. :) David H. From dblank at mainline.brynmawr.edu Tue Jan 18 15:19:37 2005 From: dblank at mainline.brynmawr.edu (Douglas S. Blank) Date: Tue Jan 18 15:22:00 2005 Subject: [Gramps-tk] Needing help on installing Tix. In-Reply-To: <20050118155907.GA16252@arno2> References: <41EC3A5C.4060708@hotmail.com> <20050118155907.GA16252@arno2> Message-ID: <41ED6F59.3000607@cs.brynmawr.edu> Thanks, David, for the assistance. I hope that we can provide some easy-to-understand instructions for getting started on the major platforms. I have never used Python/Tkinter on Windows or Mac, so I won't be much help. What will we have to use for "make" on Windows/Mac? A simple script will suffice (it really just needs to copy the *.py files to the gramps2 dir). I suspect, we can package up gramps2/src for easy getting, too. Feel free to put notes or ask questions at: http://emergent.brynmawr.edu/index.cgi/Gramps-tk (You'll need to make a login/password by clicking the UserPreferences link in the top right of the webpage). I think we will have to break that page up a bit into the standard pages. I don't think anyone has ever had access to a GRAMPS database from those "non-free" operating systems before, so I'm curious to see how it works. The latest version is 0.08 which has all of the main GUI pages completed. Next: all of the detail screens. Then: editing! Finally: reports. -Doug David Handy wrote: > On Mon, Jan 17, 2005 at 11:21:16PM +0100, F.A. Pinkse wrote: > >>I tried installing Tix and to have it cooperate with Python but failed. >>I installed Python 2.3.3 from PythonLabs over my all ready installed >>Python 2.3/wxPython/BoaConstructor. >>PythonLabs claims Tkinter is part of their distribution. > > > What "PythonLabs" are you talking about? What URL did you download the > software from? Do you mean the official www.python.org website? > > If so, why would you install Python 2.3.3 when 2.3.4 is the latest 2.3.x > version available? (I assume you did not upgrade to Python 2.4 because you > did not want to also have to upgrade your wxPython/BoaConstructor.) > > I am curious why your original Python 2.3 did not have Tkinter/Tix installed > already. Just because you have wxWindows does not mean you can't also have > Tkinter. > > >>I downloaded and instlled IDEStudio, since I am on WindowsXP. >>I did ran Install Tix into Python from Start/all Programs/IDEStudio... >> >>But when I run the Tix demos it crashes. > > > I installed Python on my windows machines from the official www.python.org > website. It comes with Tkinter and Tix. On Windows I did not have to install > Tix separately. I did not ever install IDEStudio either. > > I just now tried the following test in a Python command window on my Windows > XP machine: > > >>> import Tix > >>> root = Tix.Tk() > > and it created a new Tk window titled "tix". That is the sign that Tix is > installed properly on my machine. I have tried some other Tix things on this > machine too, and they worked. (I have not tried Gramps-tk on this machine > because it is owned by my employer.) > > Try this test on your machine and let us know what it does. I don't know > what Tix demos you tried, but if the test above works then I would go ahead > and try out Gramps-tk. > > >>If I want to keep up with the development of Gramps-tk I need desparatey >>some help. >> >>Some one? > > > Do not despair. You are probably closer than you think to getting it to > work. :) > > David H. > _______________________________________________ > gramps-tk mailing list > gramps-tk@emergent.brynmawr.edu > http://emergent.brynmawr.edu/mailman/listinfo/gramps-tk > > -- Douglas S. Blank, Assistant Professor dblank@brynmawr.edu, (610)526-6501 Bryn Mawr College, Computer Science Program 101 North Merion Ave, Park Science Bld. Bryn Mawr, PA 19010 dangermouse.brynmawr.edu From fapinkse at hotmail.com Tue Jan 18 15:20:16 2005 From: fapinkse at hotmail.com (F.A. Pinkse) Date: Tue Jan 18 21:14:07 2005 Subject: [Gramps-tk] Needing help on installing Tix. In-Reply-To: <20050118155907.GA16252@arno2> References: <41EC3A5C.4060708@hotmail.com> <20050118155907.GA16252@arno2> Message-ID: Hello David, Thank you for replying.David Handy wrote: >On Mon, Jan 17, 2005 at 11:21:16PM +0100, F.A. Pinkse wrote: > > >>I tried installing Tix and to have it cooperate with Python but failed. >>I installed Python 2.3.3 from PythonLabs over my all ready installed >>Python 2.3/wxPython/BoaConstructor. >>PythonLabs claims Tkinter is part of their distribution. >> >> > >What "PythonLabs" are you talking about? What URL did you download the >software from? Do you mean the official www.python.org website? > > > Ok, I did not rememeber where I got it from and looked into the info of the .exe, which said PythonLabs at Zope Corporation. You asked me for the exact URL, I did a reconstruction of my search to Tkinter and came to http://tkinter.unpythonic.net/wiki/How_20to_20install_20Tkinter which has an link to: http://www.python.org/ftp/python/2.3.3/Python-2.3.3.exe >If so, why would you install Python 2.3.3 when 2.3.4 is the latest 2.3.x >version available? (I assume you did not upgrade to Python 2.4 because you >did not want to also have to upgrade your wxPython/BoaConstructor.) > >I am curious why your original Python 2.3 did not have Tkinter/Tix installed >already. Just because you have wxWindows does not mean you can't also have >Tkinter. > > > You are right I did not upgrade to the latest Python because first I was satified with the setup I had and second I was in the middle of another project, which I have finished now. Why I installed Tkinter, well I did install IDEStudio and it said it needed Tkinter and it was not installed. To be honest that is was I think the reason is. If I had known that Tkinter was already there I should have suspected IDEStudio, but I trusted the guy's. Why I did install IDEStudio? well when I was searching on Python/org for TIX I was guided to IDEStudio. On the page the mentioned it had some demo's to show Tix. >>I downloaded and instlled IDEStudio, since I am on WindowsXP. >>I did ran Install Tix into Python from Start/all Programs/IDEStudio... >> >>But when I run the Tix demos it crashes. >> >> > >I installed Python on my windows machines from the official www.python.org >website. It comes with Tkinter and Tix. On Windows I did not have to install >Tix separately. I did not ever install IDEStudio either. > > > Can I find it too? >I just now tried the following test in a Python command window on my Windows >XP machine: > > >>> import Tix > >>> root = Tix.Tk() > > > When I do this from a commandline I get this: Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import Tix >>> root=Tix.Tk() error reading package index file C:/Python23/tcl/tix8.1/pkgIndex.tcl: invalid co mmand name "lt}]}" Traceback (most recent call last): File "", line 1, in ? File "C:\Python23\lib\lib-tk\Tix.py", line 210, in __init__ self.tk.eval('package require Tix') _tkinter.TclError: couldn't load library "C:/Python23/tcl/tix8.1/tix8183.dll": t his library or a dependent library could not be found in library path >>> >and it created a new Tk window titled "tix". That is the sign that Tix is >installed properly on my machine. I have tried some other Tix things on this >machine too, and they worked. (I have not tried Gramps-tk on this machine >because it is owned by my employer.) > >Try this test on your machine and let us know what it does. I don't know >what Tix demos you tried, but if the test above works then I would go ahead >and try out Gramps-tk. > > > >>If I want to keep up with the development of Gramps-tk I need desparatey >>some help. >> >>Some one? >> >> > >Do not despair. You are probably closer than you think to getting it to >work. :) > >David H. >_______________________________________________ >gramps-tk mailing list >gramps-tk@emergent.brynmawr.edu >http://emergent.brynmawr.edu/mailman/listinfo/gramps-tk > > > > I hope this is enough for you to give me some idea's to try. Thanks again for reading. With best regards, Frans. From dblank at mainline.brynmawr.edu Tue Jan 18 23:05:47 2005 From: dblank at mainline.brynmawr.edu (Douglas S. Blank) Date: Tue Jan 18 23:03:03 2005 Subject: [Gramps-tk] Needing help on installing Tix. In-Reply-To: References: <41EC3A5C.4060708@hotmail.com> <20050118155907.GA16252@arno2> Message-ID: <41EDDC9B.5000907@cs.brynmawr.edu> Frans, I think I would start over, delete the versions that you tried to install, and follow the easy instructions at python.org for a windows binary install. For example: http://python.org/download/ lists a binary-only installer for windows. I can't tell if it does include Tkinter and Tix. Do this first, then try: python >>> import Tkinter >>> root = Tkinter.Tk() and see if that works. Report back. Also try: python >>> import Tix >>> root = Tix.Tk() and see if that works, and report back. -Doug F.A. Pinkse wrote: > Hello David, > > > Thank you for replying.David Handy wrote: > >> On Mon, Jan 17, 2005 at 11:21:16PM +0100, F.A. Pinkse wrote: >> >> >>> I tried installing Tix and to have it cooperate with Python but failed. >>> I installed Python 2.3.3 from PythonLabs over my all ready installed >>> Python 2.3/wxPython/BoaConstructor. >>> PythonLabs claims Tkinter is part of their distribution. >>> >>> >> >> What "PythonLabs" are you talking about? What URL did you download the >> software from? Do you mean the official www.python.org website? >> >> >> > Ok, I did not rememeber where I got it from and looked into the info of > the .exe, which said PythonLabs at Zope Corporation. You asked me for > the exact URL, I did a reconstruction of my search to Tkinter and came > to http://tkinter.unpythonic.net/wiki/How_20to_20install_20Tkinter > which has an link to: > http://www.python.org/ftp/python/2.3.3/Python-2.3.3.exe > >> If so, why would you install Python 2.3.3 when 2.3.4 is the latest 2.3.x >> version available? (I assume you did not upgrade to Python 2.4 because >> you >> did not want to also have to upgrade your wxPython/BoaConstructor.) >> >> I am curious why your original Python 2.3 did not have Tkinter/Tix >> installed >> already. Just because you have wxWindows does not mean you can't also >> have >> Tkinter. >> >> >> > You are right I did not upgrade to the latest Python because first I was > satified with the setup I had and second I was in the middle of another > project, which I have finished now. > Why I installed Tkinter, well I did install IDEStudio and it said it > needed Tkinter and it was not installed. To be honest that is was I > think the reason is. If I had known that Tkinter was already there I > should have suspected IDEStudio, but I trusted the guy's. Why I did > install IDEStudio? well when I was searching on Python/org for TIX I was > guided to IDEStudio. On the page the mentioned it had some demo's to > show Tix. > >>> I downloaded and instlled IDEStudio, since I am on WindowsXP. >>> I did ran Install Tix into Python from Start/all Programs/IDEStudio... >>> >>> But when I run the Tix demos it crashes. >>> >>> >> >> I installed Python on my windows machines from the official >> www.python.org >> website. It comes with Tkinter and Tix. On Windows I did not have to >> install >> Tix separately. I did not ever install IDEStudio either. >> >> >> > Can I find it too? > >> I just now tried the following test in a Python command window on my >> Windows >> XP machine: >> >> >>> import Tix >> >>> root = Tix.Tk() >> >> >> > When I do this from a commandline I get this: > > Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] on > win32 > Type "help", "copyright", "credits" or "license" for more information. > >>> import Tix > >>> root=Tix.Tk() > error reading package index file C:/Python23/tcl/tix8.1/pkgIndex.tcl: > invalid co > mmand name "lt}]}" > Traceback (most recent call last): > File "", line 1, in ? > File "C:\Python23\lib\lib-tk\Tix.py", line 210, in __init__ > self.tk.eval('package require Tix') > _tkinter.TclError: couldn't load library > "C:/Python23/tcl/tix8.1/tix8183.dll": t > his library or a dependent library could not be found in library path > >>> > >> and it created a new Tk window titled "tix". That is the sign that Tix is >> installed properly on my machine. I have tried some other Tix things >> on this >> machine too, and they worked. (I have not tried Gramps-tk on this machine >> because it is owned by my employer.) >> >> Try this test on your machine and let us know what it does. I don't know >> what Tix demos you tried, but if the test above works then I would go >> ahead >> and try out Gramps-tk. >> >> >> >>> If I want to keep up with the development of Gramps-tk I need desparatey >>> some help. >>> >>> Some one? >>> >>> >> >> Do not despair. You are probably closer than you think to getting it to >> work. :) >> >> David H. >> _______________________________________________ >> gramps-tk mailing list >> gramps-tk@emergent.brynmawr.edu >> http://emergent.brynmawr.edu/mailman/listinfo/gramps-tk >> >> >> >> > I hope this is enough for you to give me some idea's to try. > > Thanks again for reading. > > > With best regards, > > > > Frans. > _______________________________________________ > gramps-tk mailing list > gramps-tk@emergent.brynmawr.edu > http://emergent.brynmawr.edu/mailman/listinfo/gramps-tk > > -- Douglas S. Blank, Assistant Professor dblank@brynmawr.edu, (610)526-6501 Bryn Mawr College, Computer Science Program 101 North Merion Ave, Park Science Bld. Bryn Mawr, PA 19010 dangermouse.brynmawr.edu From jacob at cachevalley.com Wed Jan 19 03:26:22 2005 From: jacob at cachevalley.com (Jacob Anawalt) Date: Wed Jan 19 03:20:33 2005 Subject: [Gramps-tk] Needing help on installing Tix. In-Reply-To: <41EDDC9B.5000907@cs.brynmawr.edu> References: <41EC3A5C.4060708@hotmail.com> <20050118155907.GA16252@arno2> <41EDDC9B.5000907@cs.brynmawr.edu> Message-ID: <41EE19AE.3000505@cachevalley.com> Douglas S. Blank wrote: > Frans, > > I think I would start over, delete the versions that you tried to > install, and follow the easy instructions at python.org for a windows > binary install. For example: > > http://python.org/download/ > > lists a binary-only installer for windows. I can't tell if it does > include Tkinter and Tix. Do this first, then try: > > python > >>> import Tkinter > >>> root = Tkinter.Tk() > > and see if that works. Report back. Python 2.3.3 and later (and much earlier I'm sure) works. > Also try: > > python > >>> import Tix > >>> root = Tix.Tk() > > and see if that works, and report back. > Python 2.3.3 (#51 Dec 18 2003) says "can't find package Tix" and still creates a window titled "tix". Interesting that the import call doesn't fail. Python 2.3.4 and later works. ([x] Tkinter was of course selected during install.) Now for GRAMPS-tk. I was about to stop here, not wanting to install tools for tar, bzip2, gzip, cvs, etc. I had it easy though since I could copy the patched gramps2 directory from my linux machine. A few minutes later I had: C:\Documents and Settings\jacob\My Documents\src\gramps-tk\gramps2\src>C:\Python24\python.exe -i gramps_tk.py -d Traceback (most recent call last): File "gramps_tk.py", line 10, in ? import RelLib File "C:\Documents and Settings\jacob\My Documents\src\gramps-tk\gramps2\src\RelLib.py", line 45, in ? import DateHandler File "C:\Documents and Settings\jacob\My Documents\src\gramps-tk\gramps2\src\DateHandler.py", line 40, in ? import DateParser File "C:\Documents and Settings\jacob\My Documents\src\gramps-tk\gramps2\src\DateParser.py", line 77, in ? class DateParser: File "C:\Documents and Settings\jacob\My Documents\src\gramps-tk\gramps2\src\DateParser.py", line 84, in DateParser _codeset = locale.nl_langinfo(locale.CODESET) AttributeError: 'module' object has no attribute 'nl_langinfo' Something with locales needs to be sorted out I suppose, but it's late. -- Jacob From david at handysoftware.com Wed Jan 19 06:46:51 2005 From: david at handysoftware.com (David Handy) Date: Wed Jan 19 06:44:19 2005 Subject: [Gramps-tk] Needing help on installing Tix. In-Reply-To: <41EDDC9B.5000907@cs.brynmawr.edu> References: <41EC3A5C.4060708@hotmail.com> <20050118155907.GA16252@arno2> <41EDDC9B.5000907@cs.brynmawr.edu> Message-ID: <20050119114651.GA17466@arno2> On Tue, Jan 18, 2005 at 11:05:47PM -0500, Douglas S. Blank wrote: > I think I would start over, delete the versions that you tried to > install, and follow the easy instructions at python.org for a windows > binary install. For example: > > http://python.org/download/ > > lists a binary-only installer for windows. I can't tell if it does > include Tkinter and Tix. Do this first, then try: The Python installer for Windows includes Tkinter and Tix by default. Only if someone unchecks the box will it not be installed. David H. From fapinkse at hotmail.com Thu Jan 20 08:28:41 2005 From: fapinkse at hotmail.com (F.A. Pinkse) Date: Thu Jan 20 08:26:18 2005 Subject: [Gramps-tk] Needing help on installing Tix. In-Reply-To: <41EDDC9B.5000907@cs.brynmawr.edu> References: <41EC3A5C.4060708@hotmail.com> <20050118155907.GA16252@arno2> <41EDDC9B.5000907@cs.brynmawr.edu> Message-ID: Doug, Ok, got it. Its working. I removed all of my 'old' Python and additions. I installed Python 2.3.4 and did the check. It ran to a succesfull completion. I downloaded the latest tar. I stopped here, because the Wiki says to make gramps2 but Widows does not have a make command. What to do next? With best regards. Frans. Douglas S. Blank wrote: > Frans, > > I think I would start over, delete the versions that you tried to > install, and follow the easy instructions at python.org for a windows > binary install. For example: > > http://python.org/download/ > > lists a binary-only installer for windows. I can't tell if it does > include Tkinter and Tix. Do this first, then try: > > python > >>> import Tkinter > >>> root = Tkinter.Tk() > > and see if that works. Report back. Also try: > > python > >>> import Tix > >>> root = Tix.Tk() > > and see if that works, and report back. > > -Doug > From dblank at mainline.brynmawr.edu Thu Jan 20 10:05:09 2005 From: dblank at mainline.brynmawr.edu (Douglas S. Blank) Date: Thu Jan 20 10:02:19 2005 Subject: [Gramps-tk] Needing help on installing Tix. In-Reply-To: References: <41EC3A5C.4060708@hotmail.com> <20050118155907.GA16252@arno2> <41EDDC9B.5000907@cs.brynmawr.edu> Message-ID: <41EFC8A5.5000508@cs.brynmawr.edu> Great! Here's what you can do. First, you'll have to get gramps2. I have put a copy of a zip file and put it at: http://mightymouse.brynmawr.edu/~dblank/download/gramps2.zip unzip those directories, and then (roughly, from my old DOS memories): cd gramps-tk copy *.py C:\gramps2\src cd C:\gramps2\src python gramps_tk.py That should try to start something up. There are a couple of places where file paths will need to be changed, but this is a start! Let us know how far you make it. -Doug F.A. Pinkse wrote: > Doug, > > Ok, got it. Its working. > I removed all of my 'old' Python and additions. > I installed Python 2.3.4 and did the check. It ran to a succesfull > completion. > > I downloaded the latest tar. > I stopped here, because the Wiki says to make gramps2 but Widows does > not have a make command. > What to do next? > > With best regards. > > Frans. > > Douglas S. Blank wrote: > >> Frans, >> >> I think I would start over, delete the versions that you tried to >> install, and follow the easy instructions at python.org for a windows >> binary install. For example: >> >> http://python.org/download/ >> >> lists a binary-only installer for windows. I can't tell if it does >> include Tkinter and Tix. Do this first, then try: >> >> python >> >>> import Tkinter >> >>> root = Tkinter.Tk() >> >> and see if that works. Report back. Also try: >> >> python >> >>> import Tix >> >>> root = Tix.Tk() >> >> and see if that works, and report back. >> >> -Doug >> > > _______________________________________________ > gramps-tk mailing list > gramps-tk@emergent.brynmawr.edu > http://emergent.brynmawr.edu/mailman/listinfo/gramps-tk > > -- Douglas S. Blank, Assistant Professor dblank@brynmawr.edu, (610)526-6501 Bryn Mawr College, Computer Science Program 101 North Merion Ave, Park Science Bld. Bryn Mawr, PA 19010 dangermouse.brynmawr.edu From fapinkse at hotmail.com Thu Jan 20 10:24:20 2005 From: fapinkse at hotmail.com (F.A. Pinkse) Date: Thu Jan 20 10:22:13 2005 Subject: [Gramps-tk] Needing help on installing Tix. In-Reply-To: <41EFC8A5.5000508@cs.brynmawr.edu> References: <41EC3A5C.4060708@hotmail.com> <20050118155907.GA16252@arno2> <41EDDC9B.5000907@cs.brynmawr.edu> <41EFC8A5.5000508@cs.brynmawr.edu> Message-ID: Doug, Ehh, got a 'page not found' Error when clicking on the link. Typing the link gave same result. I changed the URL to ~dblank/gramps-tk/download/gramps2/zip Could you confirm I downloaded the zip you were referring to? With best regards. Frans. Douglas S. Blank wrote: > Great! Here's what you can do. First, you'll have to get gramps2. I > have put a copy of a zip file and put it at: > > http://mightymouse.brynmawr.edu/~dblank/download/gramps2.zip > > unzip those directories, and then (roughly, from my old DOS memories): > > cd gramps-tk > copy *.py C:\gramps2\src > cd C:\gramps2\src > python gramps_tk.py > > That should try to start something up. There are a couple of places > where file paths will need to be changed, but this is a start! Let us > know how far you make it. > > -Doug > > F.A. Pinkse wrote: From dblank at mainline.brynmawr.edu Thu Jan 20 10:26:05 2005 From: dblank at mainline.brynmawr.edu (Douglas S. Blank) Date: Thu Jan 20 10:23:12 2005 Subject: [Gramps-tk] Needing help on installing Tix. In-Reply-To: <41EFC8A5.5000508@cs.brynmawr.edu> References: <41EC3A5C.4060708@hotmail.com> <20050118155907.GA16252@arno2> <41EDDC9B.5000907@cs.brynmawr.edu> <41EFC8A5.5000508@cs.brynmawr.edu> Message-ID: <41EFCD8D.5060106@cs.brynmawr.edu> That URL should be: http://mightymouse.brynmawr.edu/~dblank/gramps-tk/download/gramps2.zip It is a 6.6 MB file. -Doug From fapinkse at hotmail.com Thu Jan 20 10:40:40 2005 From: fapinkse at hotmail.com (F.A. Pinkse) Date: Thu Jan 20 10:38:08 2005 Subject: [Gramps-tk] Needing help on installing Tix. In-Reply-To: <41EFCD8D.5060106@cs.brynmawr.edu> References: <41EC3A5C.4060708@hotmail.com> <20050118155907.GA16252@arno2> <41EDDC9B.5000907@cs.brynmawr.edu> <41EFC8A5.5000508@cs.brynmawr.edu> <41EFCD8D.5060106@cs.brynmawr.edu> Message-ID: Doug, Got it, busy working on it. Frans. Douglas S. Blank wrote: > That URL should be: > > http://mightymouse.brynmawr.edu/~dblank/gramps-tk/download/gramps2.zip > > It is a 6.6 MB file. > > -Doug > _______________________________________________ > gramps-tk mailing list > gramps-tk@emergent.brynmawr.edu > http://emergent.brynmawr.edu/mailman/listinfo/gramps-tk > From fapinkse at hotmail.com Thu Jan 20 11:02:37 2005 From: fapinkse at hotmail.com (F.A. Pinkse) Date: Thu Jan 20 11:00:08 2005 Subject: [Gramps-tk] Needing help on installing Tix. In-Reply-To: <41EFCD8D.5060106@cs.brynmawr.edu> References: <41EC3A5C.4060708@hotmail.com> <20050118155907.GA16252@arno2> <41EDDC9B.5000907@cs.brynmawr.edu> <41EFC8A5.5000508@cs.brynmawr.edu> <41EFCD8D.5060106@cs.brynmawr.edu> Message-ID: Doug, Got it done. But when run got this error. C:\gramps2\src>c:\python23\python gramps_tk.py Traceback (most recent call last): File "gramps_tk.py", line 10, in ? import RelLib File "C:\gramps2\src\RelLib.py", line 45, in ? import DateHandler File "C:\gramps2\src\DateHandler.py", line 40, in ? import DateParser File "C:\gramps2\src\DateParser.py", line 77, in ? class DateParser: File "C:\gramps2\src\DateParser.py", line 84, in DateParser _codeset = locale.nl_langinfo(locale.CODESET) AttributeError: 'module' object has no attribute 'nl_langinfo' It is the same error Jacob Anwalt reported earlier. Some suggestions? Can I explore? or some one else has a suggestion? With best regards, Frans. Douglas S. Blank wrote: > That URL should be: > > http://mightymouse.brynmawr.edu/~dblank/gramps-tk/download/gramps2.zip > > It is a 6.6 MB file. > > -Doug > _______________________________________________ > gramps-tk mailing list > gramps-tk@emergent.brynmawr.edu > http://emergent.brynmawr.edu/mailman/listinfo/gramps-tk > From david at handysoftware.com Fri Jan 21 16:27:53 2005 From: david at handysoftware.com (David Handy) Date: Fri Jan 21 16:25:28 2005 Subject: [Gramps-tk] Gramps-tk error on Windows In-Reply-To: <41EFD61D.9010302@hotmail.com> References: <41EC3A5C.4060708@hotmail.com> <20050118155907.GA16252@arno2> <41EDDC9B.5000907@cs.brynmawr.edu> <41EFC8A5.5000508@cs.brynmawr.edu> <41EFCD8D.5060106@cs.brynmawr.edu> <41EFD61D.9010302@hotmail.com> Message-ID: <20050121212753.GA8265@arno2> I have not yet tried gramps-tk myself on windows, but looking at the stack trace below, it is pretty easy to tell what the problem is. The error message says that it tried to call a function named 'nl_langinfo' in the locale module, and nothing of that name exists in that module. Looking at the documentation for nl_langinfo function in the locale module, it says "This function is not available on all systems", which pretty clearly means that this is platform-dependent. I just now checked Python 2.3.4 and Python 2.4 on my Windows machine at work, and they don't have nl_langinfo. So it doesn't exist on Windows. The files that use nl_langinfo() are DateDisplay.py and DateParser.py. It just uses it to get the names of the months, and the encoding to use to convert the month names to unicode, in lines that look like this: _codeset = locale.nl_langinfo(locale.CODESET) --> returns 'ANSI_X3.4-1968' on my machine unicode(locale.nl_langinfo(locale.MON_1),_codeset) --> returns u'January' on my machine So it looks like we need to re-implement DateDisplay.py and DateParser.py to be more platform-independent. You could maybe hard-code the values to get past this problem for now (and on to the next problem...) David H. On Thu, Jan 20, 2005 at 05:02:37PM +0100, F.A. Pinkse wrote: > Doug, > > Got it done. > But when run got this error. > > C:\gramps2\src>c:\python23\python gramps_tk.py > Traceback (most recent call last): > File "gramps_tk.py", line 10, in ? > import RelLib > File "C:\gramps2\src\RelLib.py", line 45, in ? > import DateHandler > File "C:\gramps2\src\DateHandler.py", line 40, in ? > import DateParser > File "C:\gramps2\src\DateParser.py", line 77, in ? > class DateParser: > File "C:\gramps2\src\DateParser.py", line 84, in DateParser > _codeset = locale.nl_langinfo(locale.CODESET) > AttributeError: 'module' object has no attribute 'nl_langinfo' > > > It is the same error Jacob Anwalt reported earlier. > > Some suggestions? Can I explore? or some one else has a suggestion? > > With best regards, > > > Frans. From dblank at brynmawr.edu Fri Jan 21 20:54:34 2005 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Fri Jan 21 20:51:35 2005 Subject: [Gramps-tk] locale on Windows/Mac Message-ID: For those of you that have access to platforms other than Linux, can you try the following little Python program and send me the output? (Sorry, but I seriously don't even have a dual-boot machine anymore.) Thanks! -Doug # locale_test.py import locale items = ( "ABMON_1", "ABMON_2", "ABMON_3", "ABMON_4", "ABMON_5", "ABMON_6", "ABMON_7", "ABMON_8", "ABMON_9", "ABMON_10", "ABMON_11", "ABMON_12", "CODESET", "D_FMT", "Error", "LC_ALL", "LC_TIME", "MON_1", "MON_2", "MON_3", "MON_4", "MON_5", "MON_6", "MON_7", "MON_8", "MON_9", "MON_10", "MON_11", "MON_12", "getlocale", "localeconv", "setlocale", "str", "strcoll") for item in items: print "trying '%s'..." % item, retval = "Failed!" try: retval = eval("locale." + item) except: pass print retval From jacob at cachevalley.com Sat Jan 22 00:41:52 2005 From: jacob at cachevalley.com (Jacob Anawalt) Date: Sat Jan 22 00:38:56 2005 Subject: [Gramps-tk] locale on Windows/Mac In-Reply-To: References: Message-ID: <41F1E7A0.2050205@cachevalley.com> Douglas S. Blank wrote: >For those of you that have access to platforms other than Linux, can you try >the following little Python program and send me the output? (Sorry, but I >seriously don't even have a dual-boot machine anymore.) Thanks! -Doug > ># locale_test.py > > Windows XP Home SP2, Python 2.4: trying 'ABMON_1'... Failed! trying 'ABMON_2'... Failed! trying 'ABMON_3'... Failed! trying 'ABMON_4'... Failed! trying 'ABMON_5'... Failed! trying 'ABMON_6'... Failed! trying 'ABMON_7'... Failed! trying 'ABMON_8'... Failed! trying 'ABMON_9'... Failed! trying 'ABMON_10'... Failed! trying 'ABMON_11'... Failed! trying 'ABMON_12'... Failed! trying 'CODESET'... Failed! trying 'D_FMT'... Failed! trying 'Error'... locale.Error trying 'LC_ALL'... 0 trying 'LC_TIME'... 5 trying 'MON_1'... Failed! trying 'MON_2'... Failed! trying 'MON_3'... Failed! trying 'MON_4'... Failed! trying 'MON_5'... Failed! trying 'MON_6'... Failed! trying 'MON_7'... Failed! trying 'MON_8'... Failed! trying 'MON_9'... Failed! trying 'MON_10'... Failed! trying 'MON_11'... Failed! trying 'MON_12'... Failed! trying 'getlocale'... trying 'localeconv'... trying 'setlocale'... trying 'str'... trying 'strcoll'... -- Jacob From fapinkse at hotmail.com Sat Jan 22 05:05:49 2005 From: fapinkse at hotmail.com (F.A. Pinkse) Date: Sat Jan 22 05:03:00 2005 Subject: [Gramps-tk] locale on Windows/Mac In-Reply-To: References: Message-ID: Doug. System details: Windows XP SP1, Python 2.3.4, wxPython,Boa Constructor. Your test results. trying 'ABMON_1'... Failed! trying 'ABMON_2'... Failed! trying 'ABMON_3'... Failed! trying 'ABMON_4'... Failed! trying 'ABMON_5'... Failed! trying 'ABMON_6'... Failed! trying 'ABMON_7'... Failed! trying 'ABMON_8'... Failed! trying 'ABMON_9'... Failed! trying 'ABMON_10'... Failed! trying 'ABMON_11'... Failed! trying 'ABMON_12'... Failed! trying 'CODESET'... Failed! trying 'D_FMT'... Failed! trying 'Error'... locale.Error trying 'LC_ALL'... 0 trying 'LC_TIME'... 5 trying 'MON_1'... Failed! trying 'MON_2'... Failed! trying 'MON_3'... Failed! trying 'MON_4'... Failed! trying 'MON_5'... Failed! trying 'MON_6'... Failed! trying 'MON_7'... Failed! trying 'MON_8'... Failed! trying 'MON_9'... Failed! trying 'MON_10'... Failed! trying 'MON_11'... Failed! trying 'MON_12'... Failed! trying 'getlocale'... trying 'localeconv'... trying 'setlocale'... trying 'str'... trying 'strcoll'... I added: () for those who returned <...> >>>locale.getlocale() (None, None) >>> locale.localeconv() {'mon_decimal_point': '', 'int_frac_digits': 127, 'p_sep_by_space': 127, 'frac_digits': 127, 'thousands_sep': '', 'n_sign_posn': 127, 'decimal_point': '.', 'int_curr_symbol': '', 'n_cs_precedes': 127, 'p_sign_posn': 127, 'mon_thousands_sep': '', 'negative_sign': '', 'currency_symbol': '', 'n_sep_by_space': 127, 'mon_grouping': [], 'p_cs_precedes': 127, 'positive_sign': '', 'grouping': []} >>> locale.setlocale() File "", line 1, in ? ''' exceptions.TypeError : setlocale() takes at least 1 argument (0 given) ''' >>> locale.str() File "", line 1, in ? ''' exceptions.TypeError : str() takes exactly 1 argument (0 given) ''' >>> locale.strcoll() File "", line 1, in ? ''' exceptions.TypeError : strcoll() takes exactly 2 arguments (0 given) ''' >>> I dir also: >>> dir (locale) ['CHAR_MAX', 'Error', 'LC_ALL', 'LC_COLLATE', 'LC_CTYPE', 'LC_MONETARY', 'LC_NUMERIC', 'LC_TIME', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '_build_localename', '_group', '_parse_localename', '_print_locale', '_setlocale', '_test', 'atof', 'atoi', 'encoding_alias', 'format', 'getdefaultlocale', 'getlocale', 'getpreferredencoding', 'locale_alias', 'localeconv', 'normalize', 'resetlocale', 'setlocale', 'str', 'strcoll', 'strxfrm', 'sys', 'windows_locale'] >>> Hope this helps. Frans. From fapinkse at hotmail.com Sat Jan 22 05:14:58 2005 From: fapinkse at hotmail.com (F.A. Pinkse) Date: Sat Jan 22 05:11:59 2005 Subject: [Gramps-tk] locale on Windows/Mac In-Reply-To: References: Message-ID: Doug, >For those of you that have access to platforms other than Linux, can you try >the following little Python program and send me the output? (Sorry, but I >seriously don't even have a dual-boot machine anymore.) Thanks! -Doug > > > I have seen that Python is also available for Mac-OS9 and if I can resurrect my old Mac and have it on OS9 I will try your test on it. Frans. From morrell at asu.edu Sat Jan 22 10:46:39 2005 From: morrell at asu.edu (Darryl Morrell) Date: Sat Jan 22 10:43:35 2005 Subject: [Gramps-tk] locale on Windows/Mac In-Reply-To: References: Message-ID: On Mac OS X: Python 2.3 (#1, Sep 13 2003, 00:49:11) [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin trying 'ABMON_1'... 33 trying 'ABMON_2'... 34 trying 'ABMON_3'... 35 trying 'ABMON_4'... 36 trying 'ABMON_5'... 37 trying 'ABMON_6'... 38 trying 'ABMON_7'... 39 trying 'ABMON_8'... 40 trying 'ABMON_9'... 41 trying 'ABMON_10'... 42 trying 'ABMON_11'... 43 trying 'ABMON_12'... 44 trying 'CODESET'... 0 trying 'D_FMT'... 2 trying 'Error'... locale.Error trying 'LC_ALL'... 0 trying 'LC_TIME'... 5 trying 'MON_1'... 21 trying 'MON_2'... 22 trying 'MON_3'... 23 trying 'MON_4'... 24 trying 'MON_5'... 25 trying 'MON_6'... 26 trying 'MON_7'... 27 trying 'MON_8'... 28 trying 'MON_9'... 29 trying 'MON_10'... 30 trying 'MON_11'... 31 trying 'MON_12'... 32 trying 'getlocale'... trying 'localeconv'... trying 'setlocale'... trying 'str'... trying 'strcoll'... From dblank at mainline.brynmawr.edu Sat Jan 22 21:40:57 2005 From: dblank at mainline.brynmawr.edu (Douglas S. Blank) Date: Sat Jan 22 21:37:54 2005 Subject: [Gramps-tk] locale on Windows/Mac In-Reply-To: References: Message-ID: <41F30EB9.8070107@cs.brynmawr.edu> There is now a version 0.09 of gramps-tk. This version has only one forked file with GRAMPS, but relies on a sed.py script to run through and change some imports and calls to a generic gui interface. It also has a fix to get it working on Windows, thanks to the feedback on locale. If you get the new version of gramps-tk, untar it next to gramps2 as usual, cd into gramps-tk, then: 1. Copy the *.py files to gramps2/src UNIX: cp *.py ../gramps2/src/ WIN: copy *.py ..\gramps2\src\ 2. Patch the gramps2 files so that they can use either GUI, from gramps-tk dir: python sed.py 3. Run gramps_tk in the gramps2/src dir: cd ../gramps2/src python gramps_tk.py If you are on a gtk/gnome system, you can change const.py to run the original gramps2 by changing no_gconf = False and graphics_toolkit = "gtk". I haven't run this version on Mac OS X or Windows yet, but I think that this may be getting close. It does run without gtk, gconf, gnome, and gobject on any Linux. Of course, it is only a viewer so far, but you should be able to view all of the basic genealogy data. The only bug I know about is that you can't select different marriages other than the preferred one so you won't see children from the non-preferred marriage. Let me know how this works, -Doug From jacob at cachevalley.com Sun Jan 23 03:18:20 2005 From: jacob at cachevalley.com (Jacob Anawalt) Date: Sun Jan 23 03:15:51 2005 Subject: [Gramps-tk] locale on Windows/Mac In-Reply-To: <41F30EB9.8070107@cs.brynmawr.edu> References: <41F30EB9.8070107@cs.brynmawr.edu> Message-ID: <41F35DCC.9070700@cachevalley.com> Windows XP Home SP2 Python 2.4 from Python.org Douglas S. Blank wrote: > There is now a version 0.09 of gramps-tk. This version has only one > forked file with GRAMPS, but relies on a sed.py script to run through > and change some imports and calls to a generic gui interface. > > It also has a fix to get it working on Windows, thanks to the feedback > on locale. File "C:\...\gramps2\src\GrampsGuiTk.py", line 136, in ? local.nl_langinfo = nl_langinfo NameError: name 'local' is not defined Small typo here. Fix: locale.nl_langinfo = nl_langinfo > If you are on a gtk/gnome system, you can change const.py to run the > original gramps2 by changing no_gconf = False and graphics_toolkit = > "gtk". What is your goal with this change? Are you thinking of even getting gramps_tk.py merged into gramps.py? I'd rather just run gramps or gramps_tk to switch between interfaces. Looking at how this code may be distributed in the future I see some concerns and things to think about: *Tk version enters GRAMPS upstream* Users: Since the Tk version is already showing a different way of looking at the data, I think it is less confusing to tell people it's a seperate program or at least a seperate interface. Then they won't expect them to work the same. Open the same files, yes, but not look and feel the same and they do not do exactly the same things. (gnome-print, gnome-vfs, etc.) They do get either user interface option from one install. Coding: I am concerned about this direction doubling the load of the core gramps team. The most time consuming stuff with most user programs is often the interface and documentation and support, not coding tricky bits. I don't see having one team work on two interfaces as productive. Distributing: There is only one package file, so that's nice, but you have two camps to try and satisfy. Camp A wants your package to require every optional bit. Camp B wants you to only suggest optional bits. To GRAMPS, Gnome is not optional, but to GRAMPS-Tk it is (our goal to have it be) very optional. *Tk version requires GRAMPS* Users: Depending on how tightly GRAMPS-Tk requires exactly X version of GRAMPS, there may be some frustration if for whatever reason they have non-matching versions of the two. On the bright side they save a little disk space by only having GRAMPS code and stuff in there once. Coding: There needs to be some way for GRAMPS-Tk to know where GRAMPS is installed and then it needs to manipulate it's sys.path so that the GRAMPS code finds it's bits even thought they are in different directories. Distributing: Two package files, but package B requires exactly X version of package A. Also, package A still has the two camps issue and may end up requiring gnome anyway. *Tk version includes version of GRAMPS it builds against* Users: It appears as a different package. Choices are good, seperate can be simpler. It takes a little more space if they have GRAMPS installed too, but wasn't the point to run where GRAMPS wouldn't work anyway? Maybe some find the Tk version more intuitive and like to have both for the GNOME features. Coding: With the GRAMPS code in a subdirectory of GRAMPS-Tk we control where the code is and dont' have to rely on a user setting to find it. We can drop the files we dont need or use (like icon images, etc) and patch the ones we need in the way we like, or have our own versions in a directory that is found before the GRAMPS directory stuff so our overrides are seen first. (This can be applied to the "Tk version requires GRAMPS" scheme as well.) We choose the version of GRAMPS to build against and don't have to worry about version mismatch conflicts because we know the code will always use the versions we release. Distributing: Seperate package, but it can have it's own (limited) set of dependancies seperate from GRAMPS. If coders prune unused files, the bloat is reduced. > > I haven't run this version on Mac OS X or Windows yet, but I think > that this may be getting close. It does run without gtk, gconf, gnome, > and gobject on any Linux. Of course, it is only a viewer so far, but > you should be able to view all of the basic genealogy data. The only > bug I know about is that you can't select different marriages other > than the preferred one so you won't see children from the > non-preferred marriage. > > Traceback (most recent call last): File "gramps_tk.py", line 15, in ? import GrampsCfg File "C:\...\gramps2\src\GrampsCfg.py", line 36, in ? import gobject ImportError: No module named gobject GrampsCfg.py: #------------------------------------------------------------------------- # # GTK/Gnome modules # #------------------------------------------------------------------------- import gobject import gtk import gtk.glade import gnome From jacob at cachevalley.com Sun Jan 23 03:26:29 2005 From: jacob at cachevalley.com (Jacob Anawalt) Date: Sun Jan 23 03:19:54 2005 Subject: [Gramps-tk] locale on Windows/Mac In-Reply-To: References: Message-ID: <41F35FB5.9050208@cachevalley.com> F.A. Pinkse wrote: > I have seen that Python is also available for Mac-OS9 and if I can > resurrect my old Mac and have it on OS9 I will try your test on it. > I just looked into this. From the Mac-Python site: "MacPython-OS9 2.3 does not include Tkinter, use 2.2 if you really need Tkinter support." http://homepages.cwi.nl/~jack/macpython/macpython-older.html I guess the "carbon" interfaces replace Tkinter? I really haven't read much about them. I'm pretty out of the new Mac know. I believe I have Mac Python 1.5.2 installed on my Powerbook 165. :) I installed Mac Python 2.3 over on an old Power Macintosh 8500/120 w/ a 604e/233Mhz upgrade and 160MB RAM. It's still updating the file index. :| I'll test the no Tkinter thing another day I guess. -- Jacob From fapinkse at hotmail.com Sun Jan 23 06:30:46 2005 From: fapinkse at hotmail.com (F.A. Pinkse) Date: Sun Jan 23 06:28:09 2005 Subject: [Gramps-tk] locale on Windows/Mac In-Reply-To: <41F30EB9.8070107@cs.brynmawr.edu> References: <41F30EB9.8070107@cs.brynmawr.edu> Message-ID: Doug, When I run sed.py I get: 'cp' is not recognized as an internal or external command, operable program or batch file. I pinpointed it to: os.system("cp %s %s" % (file, bak)) and tried to run it modified to; os.system("copy %s %s" % (file, bak)) but this gave: The syntax of the command is incorrect. As I am not familiar with this part of Python I stopped for now and let you know. Frans. Douglas S. Blank wrote: > > > 2. Patch the gramps2 files so that they can use either GUI, from > gramps-tk dir: > python sed.py > > From fapinkse at hotmail.com Sun Jan 23 08:20:48 2005 From: fapinkse at hotmail.com (F.A. Pinkse) Date: Sun Jan 23 08:17:54 2005 Subject: [Gramps-tk] locale on Windows/Mac In-Reply-To: <41F30EB9.8070107@cs.brynmawr.edu> References: <41F30EB9.8070107@cs.brynmawr.edu> Message-ID: Doug. > > Let me know how this works, -Doug > _______________________________________________ > I did a check if the patch had done something. I appears that the patching was done but not the backup. I ran gramps-tk and came upto this error: Traceback (most recent call last): File "gramps_tk.py", line 17, in ? import RecentFiles File "C:\gramps2\src\RecentFiles.py", line 31, in ? import fcntl ImportError: No module named fcntl I searched for it but I do not have it. With some hours left to day I will search the Net how to solve this on Windows. FCNTL.py does exsist in the Lib but it says it is depricated and tries to import fcntl instead. With best regards. Frans. From dblank at brynmawr.edu Sun Jan 23 11:06:39 2005 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Sun Jan 23 11:03:34 2005 Subject: [Gramps-tk] locale on Windows/Mac In-Reply-To: <41F35DCC.9070700@cachevalley.com> References: <41F30EB9.8070107@cs.brynmawr.edu>, <41F30EB9.8070107@cs.brynmawr.edu> Message-ID: Thanks to Jacob and Frans for checking into the issues on the other platforms; this information is quite useful, for this project and others. As to the issues Jacob raised: I agree with all of your sentiments. I simply wanted to make it so that if one changes the GRAMPS installed code into a GRAMPS-tk install, it is reversable. I expect that in the end, we will package up the parts of GRAMPS that we use, and make it work the way that we want. We'll make it very easy for all people/platforms to install and run (ie, GRAMPS will not be required at all; gnome will not be optional---it won't be needed at all, either). If the GRAMPS maintainers want to incorporate this work into the main branch, that will be up to them. But I wouldn't count on it. The solution that gramps-tk uses (a combination of a sed-like replacement, a GUI abstraction, and forks where necessary (1 file now)), show that the main GRAMPS code could be done in a gui-independent manner. I fully expect that the GUI of choice will change over time, and gramps-tk will change, too. But the main GRAMPS code base has a lot of work in it. I'm hoping that we can use the reports, for example, directly, with whatever GUI we want. If they aren't abstract enough, we will try to make them so, automatically. I also hope that gramps-tk can come up with a set of abstractions that will make it trivial to add/maintain other GUIs. The first goal will be to get it working. The second goal will be to make it work in an abstract way. (I have some experience with this part. I am part of a team making Python code control robots, and you can set a flag on the command line to indicate what GUI you want to use: tk, curses, openGL, tty, etc.) I'll make the changes that will be necessary to get this past these issues, and hopefully have a version .10 later today. Thanks! -Doug Jacob Anawalt said: > Windows XP Home SP2 Python 2.4 from Python.org > > Douglas S. Blank wrote: > > > There is now a version 0.09 of gramps-tk. This version has only one > > forked file with GRAMPS, but relies on a sed.py script to run through > > and change some imports and calls to a generic gui interface. > > > > It also has a fix to get it working on Windows, thanks to the feedback > > on locale. > > File "C:...gramps2srcGrampsGuiTk.py", line 136, in ? > local.nl_langinfo = nl_langinfo > NameError: name 'local' is not defined > > Small typo here. Fix: > locale.nl_langinfo = nl_langinfo > > > If you are on a gtk/gnome system, you can change const.py to run the > > original gramps2 by changing no_gconf = False and graphics_toolkit = > > "gtk". > > What is your goal with this change? Are you thinking of even getting > gramps_tk.py merged into gramps.py? I'd rather just run gramps or > gramps_tk to switch between interfaces. > > Looking at how this code may be distributed in the future I see some > concerns and things to think about: > > *Tk version enters GRAMPS upstream* > Users: > Since the Tk version is already showing a different way of looking at > the data, I think it is less confusing to tell people it's a seperate > program or at least a seperate interface. Then they won't expect them to > work the same. Open the same files, yes, but not look and feel the same > and they do not do exactly the same things. (gnome-print, gnome-vfs, > etc.) They do get either user interface option from one install. > Coding: > I am concerned about this direction doubling the load of the core gramps > team. The most time consuming stuff with most user programs is often the > interface and documentation and support, not coding tricky bits. I don't > see having one team work on two interfaces as productive. > Distributing: > There is only one package file, so that's nice, but you have two camps > to try and satisfy. Camp A wants your package to require every optional > bit. Camp B wants you to only suggest optional bits. To GRAMPS, Gnome is > not optional, but to GRAMPS-Tk it is (our goal to have it be) very optional. > > *Tk version requires GRAMPS* > Users: > Depending on how tightly GRAMPS-Tk requires exactly X version of GRAMPS, > there may be some frustration if for whatever reason they have > non-matching versions of the two. On the bright side they save a little > disk space by only having GRAMPS code and stuff in there once. > Coding: There needs to be some way for GRAMPS-Tk to know where GRAMPS is > installed and then it needs to manipulate it's sys.path so that the > GRAMPS code finds it's bits even thought they are in different directories. > Distributing: > Two package files, but package B requires exactly X version of package > A. Also, package A still has the two camps issue and may end up > requiring gnome anyway. > > *Tk version includes version of GRAMPS it builds against* > Users: > It appears as a different package. Choices are good, seperate can be > simpler. It takes a little more space if they have GRAMPS installed too, > but wasn't the point to run where GRAMPS wouldn't work anyway? Maybe > some find the Tk version more intuitive and like to have both for the > GNOME features. > Coding: With the GRAMPS code in a subdirectory of GRAMPS-Tk we control > where the code is and dont' have to rely on a user setting to find it. > We can drop the files we dont need or use (like icon images, etc) and > patch the ones we need in the way we like, or have our own versions in a > directory that is found before the GRAMPS directory stuff so our > overrides are seen first. (This can be applied to the "Tk version > requires GRAMPS" scheme as well.) We choose the version of GRAMPS to > build against and don't have to worry about version mismatch conflicts > because we know the code will always use the versions we release. > Distributing: > Seperate package, but it can have it's own (limited) set of dependancies > seperate from GRAMPS. If coders prune unused files, the bloat is reduced. > > > > > I haven't run this version on Mac OS X or Windows yet, but I think > > that this may be getting close. It does run without gtk, gconf, gnome, > > and gobject on any Linux. Of course, it is only a viewer so far, but > > you should be able to view all of the basic genealogy data. The only > > bug I know about is that you can't select different marriages other > > than the preferred one so you won't see children from the > > non-preferred marriage. > > > > > Traceback (most recent call last): > File "gramps_tk.py", line 15, in ? > import GrampsCfg > File "C:...gramps2srcGrampsCfg.py", line 36, in ? > import gobject > ImportError: No module named gobject > > GrampsCfg.py: > #------------------------------------------------------------------------- > # > # GTK/Gnome modules > # > #------------------------------------------------------------------------- > import gobject > import gtk > import gtk.glade > import gnome > _______________________________________________ > gramps-tk mailing list > gramps-tk@emergent.brynmawr.edu > http://emergent.brynmawr.edu/mailman/listinfo/gramps-tk > From dblank at brynmawr.edu Sun Jan 23 11:34:04 2005 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Sun Jan 23 11:30:58 2005 Subject: [Gramps-tk] locale on Windows/Mac In-Reply-To: <41F35FB5.9050208@cachevalley.com> References: , Message-ID: I'll have a version 0.10 up for testing momentarily... Jacob Anawalt said: > I just looked into this. From the Mac-Python site: > > "MacPython-OS9 2.3 does not include Tkinter, use 2.2 if you really need > Tkinter support." I did try installing Python yesterday on my wife's Mac OS X, and it does look like that Fink does install Python 2.3.3 with Tkinter and Tix. I didn't get past some X11 issues, so I'll try that again today. The issue: Traceback (most recent call last): File "gramps_tk.py", line 15, in ? import GrampsCfg File "C:\...\gramps2\src\GrampsCfg.py", line 36, in ? import gobject ImportError: No module named gobject should have not have occurred. The latest sed.py replaces those lines in GrampsCfg.py. Let me know if it doesn't. You can run: python sed.py over and over again, and it shouldn't change anything the 2nd (and greater) time. I'm just commenting out the fcntl lines. I'm not sure what would be wrong with "copy" (it may be that I didn't take care of the paths properly--I'll bet that was it.) -Doug From fapinkse at hotmail.com Sun Jan 23 15:12:10 2005 From: fapinkse at hotmail.com (Frans Pinkse) Date: Sun Jan 23 15:10:39 2005 Subject: [Gramps-tk] locale on Windows/Mac In-Reply-To: Message-ID: Doug, >I'll have a version 0.10 up for testing momentarily... > I downloaded it, ran sed.py but now from the commandline instead of through Boa, will try later if that made a difference. Ran gramps_tk from the command line like this: C:\gramps2\src>c:\Python23\PYthon.exe gramps_tk.py Date parser for None not available, using default Date displayer for None not available, using default and.... got a window tk ~untiteld.grdb-Gramps-tk with menubar Button bar and notebook. It looks complete. But.... Al this happend after I tranferred the images folder in gramps-tk to gramps2/src This was not in your notes I think your notes should read: copy *.* ..\gramps2\src Do you have some suggestions for things to test? Shoud I report every anomaly? It is already late, done a lot and with this success it is a good moment ot stop and have a good night rest. >Jacob Anawalt said: > > > I just looked into this. From the Mac-Python site: > > > > "MacPython-OS9 2.3 does not include Tkinter, use 2.2 if you really need > > Tkinter support." > >I did try installing Python yesterday on my wife's Mac OS X, and it does >look >like that Fink does install Python 2.3.3 with Tkinter and Tix. I didn't get >past some X11 issues, so I'll try that again today. > I tried to revive my Mac 4400 but nothing happend. I found the battery dead. Will pick-up a functional replacement this week. With best regards. Frans. _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ From dblank at brynmawr.edu Mon Jan 24 01:18:20 2005 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Mon Jan 24 01:15:13 2005 Subject: [Gramps-tk] version 0.11 runs on more than one OS In-Reply-To: References: Message-ID: Frans Pinkse said: > C:\gramps2\src>c:\Python23\PYthon.exe gramps_tk.py > Date parser for None not available, using default > Date displayer for None not available, using default > > and.... got a window tk ~untiteld.grdb-Gramps-tk with menubar Button bar > and notebook. > It looks complete. > But.... That's it! The two messages about dates are from the gramps code. That's about all gramps-tk does so far. You can open a ged, gramps, or grdb genealogy file. You can import from one of those file types. Congratulations; I think you were the first person ever to run the gramps core database code on an alien operating system! I added an INSTALL.BAT file and fixed the "copy" command in the sed.py file, so you should be able to unzip gramps2.zip and untar gramps-tk.tgz and then run INSTALL in the gramps-tk directory (assuming python is in your path). I also tried this with a borrowed Windows laptop, and found that the Python for Windows binary installer on the python.org site did not contain the standard bsddb that gramps has been using. I then tried to use the bsddb installer from pybsddb.sourceforge.net, but that didn't work. I then got ActiveState's Python which contained Tkinter, Tix, and a GRAMPS-compatible bsddb, and it worked fine. On the Mac OS X, I found out that you have to make sure you have X11 set up first, before downloading and building Python through Fink. If you build Python with Fink before you have X working, it won't build the Tkinter and Tix bits. I added a PersonEdit screen that you can access by double-clicking the active person on the Family screen. No editing yet, but you can see the general details of a person. Version 0.11 is ready. > Do you have some suggestions for things to test? > Shoud I report every anomaly? Well, get access to a genealogy database that GRAMPS can read, and see if you notice anything that isn't correct. If you see any major anomolies, yes, please report. As soon as we get all of the buttons on the screens, we should probably try to emulate GRAMPS's screen text, click, and double-click behavior so that it will be as compatible as possible. This will make all of the translations, and documentation match as well. (Things that will be different will be things like dragging and dropping from a Linux/Gnome-compatible file folder---that won't work, of course). We probably won't have some of the completition code, nor keyboard shortcuts initially. But the main parts screens will look and act alike for not-too-large databases. I'm not sure what to do about this missing locale codes for windows. It seems to be a shame to have to duplicate all of that. But if we don't "January" won't show up correctly in other languages. We could add the months to the gettext files to translate... or maybe someone has already created a replacement for locale on windows. -Doug > It is already late, done a lot and with this success it is a good moment ot > stop and have a good night rest. > > >Jacob Anawalt said: > > > > > I just looked into this. From the Mac-Python site: > > > > > > "MacPython-OS9 2.3 does not include Tkinter, use 2.2 if you really need > > > Tkinter support." > > > >I did try installing Python yesterday on my wife's Mac OS X, and it does > >look > >like that Fink does install Python 2.3.3 with Tkinter and Tix. I didn't get > >past some X11 issues, so I'll try that again today. > > > > I tried to revive my Mac 4400 but nothing happend. I found the battery dead. > Will pick-up a functional replacement this week. > > > With best regards. > > Frans. From fapinkse at hotmail.com Mon Jan 24 16:24:56 2005 From: fapinkse at hotmail.com (F.A. Pinkse) Date: Mon Jan 24 16:22:48 2005 Subject: [Gramps-tk] version 0.11 runs on more than one OS In-Reply-To: References: Message-ID: Doug, I tried the Install.bat and it did create the .bak files this time. The Batch file did not startup Python. I must set the Path to morrow. So I did start sed and gramps_tk manually and..... got this: C:\Python23\gramps2\src>c:\python23\python gramps_tk.py Traceback (most recent call last): File "gramps_tk.py", line 10, in ? import GrampsGui as gui File "C:\Python23\gramps2\src\GrampsGui.py", line 26, in ? from GrampsGuiTk import * File "C:\Python23\gramps2\src\GrampsGuiTk.py", line 25, in ? import DataView File "C:\Python23\gramps2\src\DataView.py", line 4, in ? import NameDisplay File "C:\Python23\gramps2\src\NameDisplay.py", line 35, in ? import RelLib File "C:\Python23\gramps2\src\RelLib.py", line 45, in ? import DateHandler File "C:\Python23\gramps2\src\DateHandler.py", line 40, in ? import DateParser File "C:\Python23\gramps2\src\DateParser.py", line 77, in ? class DateParser: File "C:\Python23\gramps2\src\DateParser.py", line 84, in DatePar _codeset = locale.nl_langinfo(locale.CODESET) AttributeError: 'module' object has no attribute 'nl_langinfo' C:\Python23\gramps2\src> What went wrong on which side? It can't be any leftovers, .pyc that is, since I did start with a fresh gramp-tk and gramps2 set of folders. I did revert to 0.10 and that ran ok. I also noticed that GrampsInkey in gramps-tk is replacing GrampsInkey in Gramps2. Its late again. I go downstairs for a quick cup of tea and a chat with my wife, Marianne. Frans. From dblank at mainline.brynmawr.edu Mon Jan 24 23:32:57 2005 From: dblank at mainline.brynmawr.edu (Douglas S. Blank) Date: Mon Jan 24 23:29:48 2005 Subject: [Gramps-tk] version 0.11 runs on more than one OS In-Reply-To: References: Message-ID: <41F5CBF9.6050408@cs.brynmawr.edu> Oops; my fault. Fixed, and added another page in the PersonEdit screen. Version 0.12 is up. -Doug F.A. Pinkse wrote: > Doug, > > > I tried the Install.bat and it did create the .bak files this time. > The Batch file did not startup Python. I must set the Path to morrow. > So I did start sed and gramps_tk manually and..... > got this: > > C:\Python23\gramps2\src>c:\python23\python gramps_tk.py > Traceback (most recent call last): > File "gramps_tk.py", line 10, in ? > import GrampsGui as gui > File "C:\Python23\gramps2\src\GrampsGui.py", line 26, in ? > from GrampsGuiTk import * > File "C:\Python23\gramps2\src\GrampsGuiTk.py", line 25, in ? > import DataView > File "C:\Python23\gramps2\src\DataView.py", line 4, in ? > import NameDisplay > File "C:\Python23\gramps2\src\NameDisplay.py", line 35, in ? > import RelLib > File "C:\Python23\gramps2\src\RelLib.py", line 45, in ? > import DateHandler > File "C:\Python23\gramps2\src\DateHandler.py", line 40, in ? > import DateParser > File "C:\Python23\gramps2\src\DateParser.py", line 77, in ? > class DateParser: > File "C:\Python23\gramps2\src\DateParser.py", line 84, in DatePar > _codeset = locale.nl_langinfo(locale.CODESET) > AttributeError: 'module' object has no attribute 'nl_langinfo' > > C:\Python23\gramps2\src> > > What went wrong on which side? > It can't be any leftovers, .pyc that is, since I did start with a fresh > gramp-tk and gramps2 set of folders. > I did revert to 0.10 and that ran ok. > > I also noticed that GrampsInkey in gramps-tk is replacing GrampsInkey in > Gramps2. > > Its late again. I go downstairs for a quick cup of tea and a chat with > my wife, Marianne. > > > Frans. > > _______________________________________________ > gramps-tk mailing list > gramps-tk@emergent.brynmawr.edu > http://emergent.brynmawr.edu/mailman/listinfo/gramps-tk > > -- Douglas S. Blank, Assistant Professor dblank@brynmawr.edu, (610)526-6501 Bryn Mawr College, Computer Science Program 101 North Merion Ave, Park Science Bld. Bryn Mawr, PA 19010 dangermouse.brynmawr.edu From fapinkse at chello.nl Tue Jan 25 17:26:54 2005 From: fapinkse at chello.nl (F.A. Pinkse) Date: Tue Jan 25 21:49:46 2005 Subject: [Gramps-tk] version 0.11 runs on more than one OS In-Reply-To: <41F5CBF9.6050408@cs.brynmawr.edu> References: <41F5CBF9.6050408@cs.brynmawr.edu> Message-ID: <41F6C7AE.90603@chello.nl> Doug. It works again. I fixed my PATH and now the Install.bat runs to completion. I tried to post something with a Word documetn but it was too large. It has some screenshots in it But when I look at the clock its too late allready to fix it. Will report to morrow. Frans. Douglas S. Blank wrote: > Oops; my fault. Fixed, and added another page in the PersonEdit > screen. Version 0.12 is up. -Doug > From dblank at brynmawr.edu Tue Jan 25 22:09:18 2005 From: dblank at brynmawr.edu (Douglas S. Blank) Date: Tue Jan 25 22:06:02 2005 Subject: [Gramps-tk] errors under windows Message-ID: Frans said: > Doug. > > All's well. > I fixed my path and now the Instal.bat runs to completion. > I get the .bak now. But what if I run it twice, does it overwrite the > .bak again? I will check later. Yes, it will overwrite each time you run it. Not sure what to do... could make bak1, .bak2, etc.? > Now some obvious anomalies. > > When I close the gramps-tk window, either throough quit or the window > close button I get an Error message. > This message is from TCLNotifier, python.exe, see attachment. I hope it > will ring a bell or maybe someone else does hear it ringing. (I have placed the attachment which was too big, and some kind of .DOC file, at: http://mightymouse.brynmawr.edu/~dblank/papers/errors.pdf ) I have no idea. Looks like something being deleted after it was freed. Can you run python with -vv on Windows? that might tell you what it is trying to delete when it crashes. > When I choose open file I get a file chooser. Its entry point is on some > folder. But drive B: is not in my system and mt drive E: and I:, a > CD-Writer and a DVD-Rom respectively, are not listed. > Also the File type field is empty and stays empty when I choose a type. Again, I have no idea about drives in Windows. There are simplier file dialog windows in Tkinter; we can try those. > I am not successful in opening or importing the files from > gramps2/example folder. May be I must read some archive stuff. That should work, unless there is some "\n" "\r" issues on the end of the file. Do you have a test .GED file that you can share so that we can test? > It late allready and I have done so little :-) > I hope the attachment is accepted. > > Frans. Thanks, Frans. Getting closer! -Doug Douglas S. Blank wrote: > Oops; my fault. Fixed, and added another page in the PersonEdit > screen. Version 0.12 is up. -Doug > From fapinkse at hotmail.com Wed Jan 26 16:33:58 2005 From: fapinkse at hotmail.com (F.A. Pinkse) Date: Wed Jan 26 16:31:40 2005 Subject: [Gramps-tk] version 0.11 runs on more than one OS In-Reply-To: <41F6C7AE.90603@chello.nl> References: <41F5CBF9.6050408@cs.brynmawr.edu> <41F6C7AE.90603@chello.nl> Message-ID: Doug. I have seen you read my document. Sorry about the size, will be more carefull now. I did also a download on the ActivestateActivePython 2.3, to be compatible with Boa. Even with that I could not open the example data.gramps file in gramps2/example folder. Python complained about it could not open the file C:\\python23\\gramps2\\example\\ramps\\data.gramps Note the double backslashes. So I downloaded ActivestateActivePython 2.4 Same result. I clicked around some button and suddenly noticed there where names displayed in the window. I found out when I click New these names where displayed. I could browse people etc. I have no other GED file at hand, my family data is on my Mac. Frans. F.A. Pinkse wrote: > Doug. > > It works again. > I fixed my PATH and now the Install.bat runs to completion. > > I tried to post something with a Word documetn but it was too large. > It has some screenshots in it > But when I look at the clock its too late allready to fix it. > > Will report to morrow. > > Frans. >