[SOLVED] Conky-all latest update

Started by alexsid, 2025/08/14, 18:11:24

Previous topic - Next topic

alexsid

Hello!
Conky-all was updated to the latest version 1.22.2 today. The result of the update is the conflict between conky and lua. Visible graphs stopped to be visible in Astro Nerd Conky. I had to go back to the saved Timeshift image and prevented any conky-all upgrade. (sudo aptitude hold conky-all). Bad!
May the happiness be with you!

unklarer

Quote
  * Ensure vim syntax files are installed into the correct location.

https://metadata.ftp-master.debian.org/changelogs//main/c/conky/conky_1.22.2-1_changelog

alexsid

Quote from: unklarer on 2025/08/15, 10:03:37
Quote
  * Ensure vim syntax files are installed into the correct location.

https://metadata.ftp-master.debian.org/changelogs//main/c/conky/conky_1.22.2-1_changelog

Thank you for your info. I have no idea what are vim syntax files and what is their correct location.
May the happiness be with you!

unklarer

Quote from: alexsidThank you for your info. I have no idea what are vim syntax files and what is their correct location.

I'm not the developer and I'm not sure that the configuration files were created in Syntax1.10 with Vim (which I don't use) and are in the 'right place'. So,
~/.config/conky

Maybe it's a new obstacle...    :o

Do you have an error message from the terminal before we continue groping around in the dark here?

alexsid

No errors. Just a visual bargraphs stop working. If I return to the saved Timeshift image, everything works again under conky-all 1.22.1-1. 1.22.2-1 - doesn't work. conkyrc.vim files are in the same locations in both conky versions.
May the happiness be with you!

unklarer

#5
conky -c ~/path/to/myConky &
kill
pkill -xf "conky -c /home/alexsid/path/to/myConky" &

or, Show the lua script from the bargraph.

Probably only this needs to be entered:
require 'cairo_xlib'

alexsid

#6
The bargraph.lua perfectly works with conky-all 1.22.1-1 and earlier, but not with 1.22.2-1.
require 'cairo_xlib' ADDED.
The code is too long for the message, and I see no way to add the file.
Here goes the example how it works on 1.22.1 version. All works.
https://i.postimg.cc/jqkgPpHP/screenshot-01.jpg
On 1.22.2 bargraphs ON THE LEFT conky does not work. Green bars on the RIGHT - still work. Crazy!

May the happiness be with you!

unklarer

One more time!
Start the left Conky in the terminal.

If no error occurs (which I doubt), there is still the debug mode in Conky.
conky -c ~/path/to/myConky -DD &
the first ~30 lines of which

pkill -xf "conky -c /home/alexsid/path/to/myConky -DD" &

alexsid

#8
Hello again!
And thank you so much for the help!

In my bargraph.lua file there are two lines which were added specially in the beginning:

require 'cairo'
require 'cairo_xlib'

----------------

1. I debugged conky on conky-all 1.22.1-1. No errors, the conky works OK and graphs are visible.
2. I updated conky-all to 1.22.2-1 and debugged conky.
3. I got some error messages.
Error # 1:
-----------------
conky: llua_load: specified script file '~/.conky/Astro_Nerd_Conky/scripts/bargraph.lua' doesn't exist
-----------------
How is it possible? The file is still in its place!

In astro_rc file I can see the following code:

lua_load = '~/.conky/Astro_Nerd_Conky/scripts/bargraph.lua',
   lua_draw_hook_pre = 'main_bars',

In debug file I see
llua_load:
Why are there two letters 'l' in the word lua?

Error # 2:
----------------
conky: llua_do_call: function conky_main_bars execution failed: attempt to call a nil value
----------------

Here goes the part of the debug code for conky-all 1.22.2-1

-----------
conky -c .conky/Astro_Nerd_Conky/astro_rc -DD &

alex@alex-sid:~$ conky -c .conky/Astro_Nerd_Conky/astro_rc -DD &
[1] 11329
alex@alex-sid:~$ DEBUG(0) [./src/conky.cc:2096]: reading contents from config file '.conky/Astro_Nerd_Conky/astro_rc'
DEBUG(0) [./src/output/x11.cc:247]: enter init_x11()
DEBUG(0) [./src/output/x11.cc:368]: Fixed xinerama area to: 0 0 1920 1200
DEBUG(0) [./src/output/x11.cc:291]: leave init_x11()
conky: Invalid value 'Conky' for setting 'own_window_type'. Valid values are: 'normal', 'dock', 'panel', 'desktop', 'utility', 'override'.
DEBUG(0) [./src/output/x11.cc:486]: enter x11_init_window()
DEBUG(0) [./src/output/x11.cc:368]: Fixed xinerama area to: 0 0 1920 1200
conky: desktop window (0x352) is root window
DEBUG(0) [./src/output/x11.cc:463]: Found ARGB Visual
conky: window type - normal
DEBUG(0) [./src/output/x11.cc:698]: hint - undecorated
DEBUG(0) [./src/output/x11.cc:709]: hint - below
DEBUG(0) [./src/output/x11.cc:753]: hint - sticky
DEBUG(0) [./src/output/x11.cc:775]: hint - skip taskbar
DEBUG(0) [./src/output/x11.cc:788]: hint - skip pager
conky: drawing to created window (0x2a00002)
DEBUG(0) [./src/output/x11.cc:907]: leave x11_init_window()
conky: drawing to double buffer
conky: llua_load: specified script file '~/.conky/Astro_Nerd_Conky/scripts/bargraph.lua' doesn't exist
DEBUG(1) [./src/core.cc:2109]: no templates to replace
DEBUG(0) [./src/output/display-output.cc:39]: HTTP display output disabled. Enable by recompiling with 'BUILD_HTTP' flag enabled.
conky: FOUND: wayland
conky: FOUND: x11
conky: FOUND: file
conky: FOUND: ncurses
conky: FOUND: console
DEBUG(1) [./src/output/display-output.cc:101]: Testing display output 'wayland'...
DEBUG(1) [./src/output/display-output.cc:101]: Testing display output 'x11'...
DEBUG(1) [./src/output/display-x11.cc:233]: Display output 'x11' enabled in config.
DEBUG(1) [./src/output/display-output.cc:103]: Detected display output 'x11'...
DEBUG(1) [./src/lua/fonts.cc:64]: setting up fonts
DEBUG(1) [./src/lua/fonts.cc:84]: loading fonts
conky: llua_do_call: function conky_main_bars execution failed: attempt to call a nil value
DEBUG(1) [./src/lua/fonts.cc:64]: setting up fonts
DEBUG(0) [./src/output/display-output.cc:111]: Initialized display output 'x11'...
DEBUG(1) [./src/output/display-output.cc:101]: Testing display output 'file'...
DEBUG(1) [./src/output/display-output.cc:101]: Testing display output 'ncurses'...
DEBUG(1) [./src/output/display-output.cc:101]: Testing display output 'console'...
conky: 'KDE' wayland session running
DEBUG(1) [./src/output/display-x11.cc:817]: Processing 13 X11 events...
DEBUG(1) [./src/output/display-x11.cc:838]: Done processing 13 events.
conky: llua_do_call: function conky_main_bars execution failed: attempt to call a nil value
DEBUG(1) [./src/lua/fonts.cc:64]: setting up fonts
DEBUG(1) [./src/lua/fonts.cc:84]: loading fonts
conky: llua_do_call: function conky_main_bars execution failed: attempt to call a nil value
DEBUG(0) [./src/conky-imlib2.cc:205]: Drawing image '/home/alex/.conky/Astro_Nerd_Conky/tmp/current.jpg' at (0,44) scaled to 110x110, caching interval set to 0 (with -n opt 0)
DEBUG(0) [./src/conky-imlib2.cc:205]: Drawing image '/home/alex/.conky/Astro_Nerd_Conky/tmp/current_moon.png' at (190,500) scaled to 55x55, caching interval set to 0 (with -n opt 0)
DEBUG(1) [./src/lua/fonts.cc:64]: setting up fonts
DEBUG(1) [./src/output/display-x11.cc:817]: Processing 1 X11 events...
DEBUG(1) [./src/output/display-x11.cc:838]: Done processing 1 events.
conky: llua_do_call: function conky_main_bars execution failed: attempt to call a nil value
------------
May the happiness be with you!

alexsid

SH :)T! I managed! )))
I just change the relative link to absolute link in my conky file. So I changed in my astro_rc:

FROM
lua_load = '~/.conky/Astro_Nerd_Conky/scripts/bargraph.lua',

TO

lua_load = '/home/alex/.conky/Astro_Nerd_Conky/scripts/bargraph.lua',

I can see graphs now, but the reason of the error is still unclear for me. Why did everything work in conky-all 1.22.1-1 version and earlier versions?
May the happiness be with you!

unklarer

Congratulations!

Quote
I can see graphs now, but the reason of the error is still unclear for me. Why did everything work in conky-all 1.22.1-1 version and earlier versions?

See my quoted sentence from the changelog.
The 'restrictions' are becoming more and more absolute. However, this does not have to be the case for the next user.
A joke is   ::)   : conky -v
conky 1.22.1 compiled 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
  * IRC
  * Curl
  * RSS
  * ICal
  * iconv
  * wireless
  * support for IBM/Lenovo notebooks
  * nvidia
  * builtin default configuration
  * old configuration syntax      <=====================================
  * Imlib2
  * OSS mixer support
  * apcupsd
  * iostats
  * ncurses
  * Internationalization support
  * PulseAudio

Lua bindings:
  * Cairo
  * Imlib2
  * RSVG
X11:
  * Xdamage extension
  * Xinerama extension (virtual display)
  * Xshape extension (click through)
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual
  * Own window
  * Mouse events
Wayland:
  * ARGB visual
  * Mouse events

Music detection:
  * Audacious
  * 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


I've NEVER experienced that !

unklarer

Please mark your initial post in the subject line with [solved]  Thanks!

DeepDayze

So now Conky requires the full path of any lua or vim files apparently. Good that you solved it.