Conky and lua

Hello all,

So I'm running into an issue. Conky is missing module 'cairo' and it appears to not have lua supported. I'm using the version of conky that is installed by default with Garuda - i3.

This appears to be the exact same issue as this. [Cairo module not found]

conky: llua_load: $HOME/.conky/scifi/lua/battery.lua:1: module 'cairo' not found:
        no field package.preload['cairo']
        no file '/usr/share/lua/5.4/cairo.lua'
        no file '/usr/share/lua/5.4/cairo/init.lua'
        no file '/usr/lib/lua/5.4/cairo.lua'
        no file '/usr/lib/lua/5.4/cairo/init.lua'
        no file './cairo.lua'
        no file './cairo/init.lua'
        no file '/usr/lib/conky/libcairo.so'
        no file '/usr/lib/lua/5.4/cairo.so'
        no file '/usr/lib/lua/5.4/loadall.so'
        no file './cairo.so'

I've tried installing conky-lua-nv: (Target not found)
I've tried installing conky-lua: (Target not found)
I'm using all repos installed by default. (This is a new build)
I'm up to date on all default repos. (Including chaotic)

[user@aruda ~]$ sudo pacman -Syu conky-lua-nv
:: Synchronizing package databases...
 garuda is up to date
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 chaotic-aur is up to date
error: target not found: conky-lua-nv
[user@garuda ~]$ sudo pacman -Qi conky-lua-nv
error: package 'conky-lua-nv' was not found
[user@garuda ~]$ sudo pacman -Qi conky-lua-nv
error: package 'conky-lua' was not found
[user@aruda ~]$ cat /etc/*release*
DISTRIB_ID=Garuda
DISTRIB_RELEASE=Soaring
DISTRIB_DESCRIPTION="Garuda Linux"
DISTRIB_CODENAME="Talon"
NAME="Garuda Linux"
PRETTY_NAME="Garuda Linux"
ID=garuda
ID_LIKE=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://garudalinux.org/"
DOCUMENTATION_URL="https://wiki.garudalinux.org/"
SUPPORT_URL="https://forum.garudalinux.org/"
BUG_REPORT_URL="https://gitlab.com/groups/garuda-linux/"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=garudalinux
[user@garuda etc]$ conky -v
conky 1.15.0_pre compiled 2022-11-05 for Linux x86_64

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky


 General:
  * math
  * hddtemp
  * portmon
  * IPv6
  * Curl
  * RSS
  * wireless
  * support for IBM/Lenovo notebooks
  * nvidia
  * builtin default configuration
  * old configuration syntax
  * Imlib2
  * OSS mixer support
  * apcupsd
  * iostats
  * ncurses
  * Internationalization support
  * PulseAudio
 X11:
  * Xdamage extension
  * Xinerama extension (virtual display)
  * Xshape extension (click through)
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual
  * Own window

 Music detection:
  * CMUS
  * MPD
  * MOC

 Default values:
  * Netdevice: eno1
  * Local configfile: $HOME/.conkyrc
  * Localedir: /usr/share/locale
  * Maximum netdevices: 256
  * Maximum text size: 16384
  * Size text buffer: 256

Thank you very much for any assistance.

Hi there, welcome to the forum.
The two packages you mentioned are in the AUR repository. You can install with

paru conky-lua-nv

Exit the PKGBUILD with button q and confirm installation.

isn’t that marked as out of date in the AUR?

2 Likes

Yeah, well I read only the page of conky-lua-nv and the answer of the maintainer made sense to me. Actually in the other one I see the point, in asking to update the conky version.

1 Like

Looks like AUR (en) - conky-cairo is pretty recent for nvidia systems (no-nvidia variant one is marked as out of date). Also depends on lau, so that should be included in it as well.
Might be worth a shot?

2 Likes

Building it out now. Also putting in a request with the maintainer of conky-lua-nv to update it.

I really appreciate all the help.

1 Like

Boom. It's like magic.

Thank you very much!

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.