Page 1 of 1

[SOLVED] Function waiting_for_reboot in utils.py is broken in version 2.6.0.16767

Published: January 15, 2025 - 11:43 AM
by tux
Hello,

The waiting_for_reboot function in utils.py line 145 crashes.

isPendingReboot = waiting_for_reboot()
File "C:\Program Files (x86)\wapt\waptwua\utils.py", line 145, in waiting_for_reboot
if reg_key_exists(HKEY_LOCAL_MACHINE,r'SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update','RebootRequired') or \
TypeError: reg_key_exists() takes 2 positional arguments but 3 were given


Wapt Enterprise version 2.6.0.16767 (version installed yesterday afternoon), Windows 10 client.

Re: The waiting_for_reboot function in utils.py is broken in version 2.6.0.16767

Published: January 15, 2025 - 4:51 PM
by fschelfaut
Hello,

the `waiting_for_reboot()` is deprecated; it's better to use `is_pending_reboot()` from the ` setuphelpers`
. If you want to know the reasons for the reboot, you also have this function available: `pending_reboot_reasons()`.

Flavien,

Re: The waiting_for_reboot function in utils.py is broken in version 2.6.0.16767

Published: January 15, 2025 - 6:21 PM
by tux
Hello,

thank you for this feedback.