lgi-devs / lgi

Dynamic Lua binding to GObject libraries using GObject-Introspection
MIT License
440 stars 70 forks source link

Typelib file for namespace 'Playerctl' (any version) not found #264

Closed undefinedDarkness closed 3 years ago

undefinedDarkness commented 3 years ago

I was trying to rewrite smth that currently uses playectl's follow mode to use the GObject api thingy Docs are scarce for anything but python so idk if I did it right full code here

But before I can test the code I get an error :(((

> require("lgi").Playerctl
/usr/share/lua/5.3/lgi/namespace.lua:158: Typelib file for namespace 'Playerctl' (any version) not found
stack traceback:
        [C]: in function 'assert'
        /usr/share/lua/5.3/lgi/namespace.lua:158: in function 'lgi.require'
        (...tail calls...)
        stdin:1: in main chunk
        [C]: in ?

from the lua repl this is on ubuntu lts (20.04) with version 0.9.4 I think https://packages.ubuntu.com/focal/lua-lgi

Im not sure exactly why im getting this error :sweat_smile: Maybe its smth specific to ubuntu's version

undefinedDarkness commented 3 years ago

I needed the gir1.2-playerctl-2.0 package