Hi,

On 17.06.2012 16:20, Paweł Rumian wrote:
> 2012/6/17 Uli Schlachter <[email protected]>:
>> apt-get install -t unstable lgi
>>
>> But that doesn't count as "trying to install it myself".
> 
> Ah, OK, I was just wondering if there was another change that I have
> not noticed :)
> 
> Anyway, I have just tried running the latest version from git and it
> fails with the following:
> 
> /usr/local/share/lua/5.1/lgi/namespace.lua:149: Typelib file for
> namespace 'Pango' (any version) not found
> /etc/xdg/awesome/rc.lua:2: loop or previous error loading module 'awful'
> E: awesome: main:555: couldn't find any rc file
> 
> Is it happening because of some intensive work-in-progress in the
> repository and I just need to be more patient or do I need to adjust
> something on my system?
> I am using lua-5.1 and lgi compiled manually from git sources.

Short version:
You need /usr/lib/girepository-1.0/Pango-1.0.typelib (in debian this is in
package gir1.2-pango-1.0).

Long version:
The "gi" in "lgi" means "gobject introspection". The old oocairo and oopango
handwritten code and every single function needed to be bound by hand. 
Cumbersome.

The gobject API is supposed to be introspectable. That means that you can write
a program which gets a description of which functions are there and which
argument they take. This program can then call these functions.

This is especially useful for language bindings like lgi. Instead of having to
write the binding by hand, gobject introspection is used to figure out which
objects, functions etc exist and the binding for them is created
automatically[0]. Since I were the one who had to write the binding in oocairo
by hand, I love this approach. :-)

Your problem now seems to be that the description of which functions exist in
Pango is missing and thus lgi can't do its gobject-magic.

Uli


[0]: Well, it's not perfect. lgi contains "overrides" which extend the
introspectable API with extra stuff. Some of these functions aren't
introspectable (yet) and thus can't be auto-generated, some of this works around
bugs in the introspection information and some of this describes stuff which GIR
can't express (yet?).
-- 
- He made himself, me nothing, you nothing out of the dust
- Er machte sich mir nichts, dir nichts aus dem Staub

-- 
To unsubscribe, send mail to [email protected].

Reply via email to