Discovery-wrapper.py giving error post ubuntu upgrade from 20.04 to 22.04

Hi,

we have recently upgraded ubuntu from 20.04 to 22.04, (no change in LibreNMS) post which I’m getting below error while running discovery wrapper script.
Can you please help here? what could be the possible issue here?

root@b65inflrenms05:/home/ubuntu# docker exec librenms_dispatcher sh -c ‘/opt/librenms/discovery-wrapper.py 32’
Traceback (most recent call last):
File “/opt/librenms/discovery-wrapper.py”, line 64, in
wrapper.wrapper(
AttributeError: module ‘LibreNMS.wrapper’ has no attribute ‘wrapper’

Below is the output for validate.php ::::::::::::::::
librenms-dispatcher:/opt/librenms$ ./validate.php

Component Version
LibreNMS 23.11.0 (2023-11-25T19:17:34+00:00)
DB Schema 2023_11_04_125846_packages_increase_name_column_length (273)
PHP 8.1.22
Python 3.10.13
Database MariaDB 10.5.24-MariaDB-1:10.5.24+maria~ubu2004
RRDTool 1.7.2
SNMP 5.9.3
===========================================

[OK] Installed from package; no Composer required
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service is enabled
[OK] Locks are functional
[OK] No python wrapper pollers found
[WARN] Using database for locking, you should set CACHE_DRIVER=redis
[OK] rrd_dir is writable
[OK] rrdtool version ok
[FAIL] Scheduler is not running
[FIX]:
sudo cp /opt/librenms/dist/librenms-scheduler.cron /etc/cron.d/
[WARN] Non-git install, updates are manual or from package
librenms-dispatcher:/opt/librenms$