Glances won't start when using snmp discovery with parameter -c #3354

This commit is contained in:
nicolargo
2025-11-23 10:06:08 +01:00
parent b9c451ce7a
commit f2641c80e2
2 changed files with 4 additions and 3 deletions

View File

@@ -13,8 +13,9 @@ from glances.logger import logger
# Import mandatory PySNMP lib
try:
from pysnmp.entity.rfc3413.oneliner import cmdgen
except ImportError:
logger.critical("PySNMP library not found. To install it: pip install pysnmp")
except ImportError as e:
logger.debug(f"Can not import pysnmp-lextudio lib: {e}")
logger.critical("PySNMP library not found. To install it: pip install 'pysnmp-lextudio<6.2.0'")
sys.exit(2)

View File

@@ -102,7 +102,7 @@ ip = [
raid = ["pymdstat"]
sensors = ["batinfo; platform_system == 'Linux'"]
smart = ["pySMART.smartx"]
snmp = ["pysnmp-lextudio<6.3.1"]
snmp = ["pysnmp-lextudio<6.2.0"]
sparklines = ["sparklines"]
web = [
"fastapi>=0.82.0",