On Jul 24, 2012, at 12:29 AM, Doug Blank wrote:
> On Tue, Jul 24, 2012 at 2:54 AM, Benny Malengier
> <benny.malengier@...> wrote:
>>
>>
>> 2012/7/24 Doug Blank <doug.blank@...>
>>>
>>> On Mon, Jul 23, 2012 at 11:11 PM, John Ralls <jralls@...> wrote:
>>>>
>>>> On Jul 23, 2012, at 6:39 PM, Doug Blank wrote:
>>>>
>>>>> On Mon, Jul 23, 2012 at 5:05 PM, Benny Malengier
>>>>> <benny.malengier@...> wrote:
>>>>>> Ok,
>>>>>>
>>>>>> Branch /branches/geps/gep-029-gtk3 has been reintegrated in trunk.
>>>>>>
>>>>>> So crashes abound now. most fixes are simple, look at the changelog
>>>>>> done for
>>>>>> equal code, and change likewise:
>>>>>>
>>>>>>
>>>>>> http://gramps.svn.sourceforge.net/viewvc/gramps?limit_changes=0&view=revision&revision=20057
>>>>>>
>>>>>> All glade files not touched yet should be opened in current glade for
>>>>>> GTK3
>>>>>> and resaved, then fixed for layout problems. Seen changes in glade
>>>>>> files
>>>>>> fixed already by me in case of issues.
>>>>>>
>>>>>> For documentation links, and how to install the new requirements, see
>>>>>> the
>>>>>> GEP:
>>>>>>
>>>>>> http://www.gramps-project.org/wiki/index.php?title=GEPS_029:_GTK3-GObject_introspection_Conversion
>>>>>>
>>>>>> Fixing the crashes in a part will make you acquinted with the new way
>>>>>> of
>>>>>> working.
>>>>>>
>>>>>> I'll fix futher things the coming days.
>>>>>>
>>>>>> Main issue will probably be geography view which is now disabled. If
>>>>>> needed
>>>>>> we will have to help out in porting the dependency. On the plus side,
>>>>>> the
>>>>>> developer will know the code will be used immediately, helping to find
>>>>>> bugs.
>>>>>>
>>>>>> Benny
>>>>>
>>>>> Great to see this happening!
>>>>>
>>>>> BTW, I did have a strange hard-crash on Python 2.7.2 without the
>>>>> proper pygobject. (I'll no doubt be helping with this port, but I'm
>>>>> still working hard to get Gramps-Connect to a near-finished state. So,
>>>>> initially I'm just making sure that the CLI use of Gramps works ok
>>>>> even without the proper pygobject, as it should.)
>>>>>
>>>>> I found with Python 2.7.2+ on Ubuntu 11.10 that you can get a crash
>>>>> without the ability to try/except when you try to import webkit from a
>>>>> Gramps plugin. However, if you "import gtk" early on, then later
>>>>> "import webkit" it won't crash. Just thought I'd mention this in case
>>>>> anyone is having trouble getting started on the new Gramps...
>>>>
>>>> That's an interesting crash. Did you look at the C backtrace?
>>>>
>>>>> shall we call this Gramps 4.0?
>>>>
>>>> I think we'll need to have a bunch of testing releases, so we should
>>>> probably call it 3.90.x for a while.
>>>
>>> I guess with Gramps the x.9 status is implied. For example, trunk has
>>> been called "3.3" and "3.4" at various times (and is "3.5" currently)
>>> so that the addon version numbers will match. (The addons need to
>>> match at least major version number with Gramps.) SVN versions get
>>> appended onto the displayed version number (after updating const.py
>>> with ./autogen.sh), so we always can tell one is running trunk.
>>>
>>> Since we don't have an official release until it is really ready (and
>>> usually follow that up with a few point releases) the name is really
>>> just a place holder. But I thought it might be nice to move it from
>>> "3.5" to "4.0" to indicate that trunk is now on a
>>> backwards-incompatible path, and give a clear point for people's
>>> reference.
>>
>>
>> Yes, this should be version 4.0 later.
>> Can you do the changes? As you know gramps-addons better, you should have a
>> good view on what to change.
>
> Done. There appears to be an error in ./autogen.sh so make sure you at least:
>
> cp src/gen/const.py.in src/gen/const.py
>
>> It is a pity we can't do the 3.99 thing, but a release called 4.0-0.alpha is
>> not a big issue if communication is done correctly.
>>
>> About webkit, we are not to do import gtk anywhere in the code! In the docs
>> I read they claim this leads to issues. As geography is not ready, I also
>> did not test htmlview.
>
> Yes, I just meant this as a workaround. But I think I found the root
> of the problem and made more notes at:
> http://gramps-project.org/wiki/index.php?title=GEPS_029:_GTK3-GObject_introspection_Conversion
I don't see anything about webkit there. Was getting rid of the old gobject the solution?
Speaking of the Wiki page, should we open bugs to track the listed problems?
>
>> As to allowing lower gi version number for CLI, that is not a problem.
>
> As we approach the next release, it looks like it will be entirely
> possible to have a core gramps package without GUI code, for use in
> Gramps-Connect, etc. However, by moving all of the graphics subsystems
> (including PDF creation) to pygobject and friends, that substantially
> raises the bar for what is needed in a server-based install. For
> example, I can run gramps-connect with Gramps 4.0 on Python 2.6,
> Django 1.2 on an old Fedora 13 machine (in fact it is running on
> http://gramps-connect.org right now). But, I had to use
> src/plugins/lib/libcairodoc.py and src/plugins/docgen/pdfdoc.py from
> Gramps 3.5 to allow PDF creation from the webserver.
>
> I wonder how we can have both the newer versions, and the older
> versions? Maybe we could add something else to the gpr file, so that
> one would load in gramps-gtk, and the other in gramps-connect?
Rename the pygtk versions and bring them back into trunk, then selectively import?
It occurs to me that we're being a bit aggressive in migrating to pygi: Thanks to Bug 679654 [1] (and maybe others), Gramps won't actually run on any current released Gtk. That means that even after the next release cycle it's only going to work on bleeding-edge distros like Ubuntu and Debian Unstable. That's going to freeze out a lot of users.
Regards,
John Ralls
[1] https://bugzilla.gnome.org/show_bug.cgi?id=679654
|