On Mon, Oct 19, 2009 at 5:02 PM, I wrote:
> So that gets me to the next problem:
>
> 2) running "hgtk log" prints this to the console:
>
>    SystemError: Objects/funcobject.c:128: bad argument to internal function

A-ha.  I Google'd the error message and found some useful tips.  It
turns out that this is a bug in pygobject 2.12.1, the version included
with RHEL 5 (and therefore CentOS 5).  Naturally, this is a very old
version that has not been upgraded.  "Enterprise" Linux = stable = no
upgrades = few bug fixes.  ;-(

So I built myself a slightly newer pygobject using a source RPM from
Fedora Core 7.  (Couldn't use the binaries from FC7, since they depend
on Python 2.5.)  In case anyone else needs to know, here's what I did:

  $ wget 
http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/7/Fedora/source/SRPMS/pygobject2-2.12.3-3.fc7.src.rpm
  $ rpmbuild --rebuild pygobject2-2.12.3-3.fc7.src.rpm

That built my shiny new RPMs in /scratch/rpm/RPMS/i386 (I have
configured rpmbuild to build there, rather than the default
/usr/src/redhat).  I installed those, and no more problems.  hgtk log
works perfectly now.  Woo hoo!

BTW, it looks like someone else has figured out a workaround for this bug:

  http://hg.clusterlabs.org/pacemaker/pygui/rev/460feb8039c1

but that sure looks painful and awkward.

Greg

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to