summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2023-05-13 15:50:47 +0200
committernicolargo <nicolas@nicolargo.com>2023-05-13 15:50:47 +0200
commitff504b982239fea21d4c0d8e72c54e297543dff1 (patch)
treefadee184b63e9615818ff382ad38159872613ee2
parent6ea9185ba2106339c2ca05bdab15435c461b7c90 (diff)
Correect issue (error message) concerning the Cloud plugin - Related to #2392
-rw-r--r--docker-compose/glances.conf2
-rw-r--r--glances/outdated.py2
-rw-r--r--optional-requirements.txt3
-rwxr-xr-xsetup.py1
4 files changed, 5 insertions, 3 deletions
diff --git a/docker-compose/glances.conf b/docker-compose/glances.conf
index dcf016db..dbf94977 100644
--- a/docker-compose/glances.conf
+++ b/docker-compose/glances.conf
@@ -8,7 +8,7 @@
# It is also possible to overwrite it in each plugin sections
refresh=2
# Does Glances should check if a newer version is available on PyPI ?
-check_update=false
+check_update=False
# History size (maximum number of values)
# Default is 1200 values (~1h with the default refresh rate)
history_size=1200
diff --git a/glances/outdated.py b/glances/outdated.py
index b2b17913..023413e2 100644
--- a/glances/outdated.py
+++ b/glances/outdated.py
@@ -27,7 +27,7 @@ try:
PACKAGING_IMPORT = True
except Exception as e:
- logger.error("Unable to import 'packaging' module ({}). Glances cannot check for updates.".format(e))
+ logger.warning("Unable to import 'packaging' module ({}). Glances cannot check for updates.".format(e))
PACKAGING_IMPORT = False
PYPI_API_URL = 'https://pypi.python.org/pypi/Glances/json'
diff --git a/optional-requirements.txt b/optional-requirements.txt
index d299de03..baab58a3 100644
--- a/optional-requirements.txt
+++ b/optional-requirements.txt
@@ -15,7 +15,7 @@ influxdb>=1.0.0 # For InfluxDB < 1.8
influxdb-client; python_version >= "3.7" # For InfluxDB >= 1.8
kafka-python
netifaces
-py3nvml; python_version >= "3.5"
+packaging; python_version >= "3.7"
paho-mqtt
pika
podman; python_version >= "3.6"
@@ -24,6 +24,7 @@ prometheus_client
pygal
pymdstat
pymongo; python_version >= "3.7"
+py3nvml; python_version >= "3.5"
pysnmp
pySMART.smartx
python-dateutil
diff --git a/setup.py b/setup.py
index 316e3df2..da9f384a 100755
--- a/setup.py
+++ b/setup.py
@@ -80,6 +80,7 @@ def get_install_extras_require():
# 'gpu' and 'sensors' ==> See below
}
if PY3:
+ extras_require['cloud'].append('packaging')
extras_require['export'].append('influxdb-client')
extras_require['export'].append('pymongo')
extras_require['gpu'] = ['py3nvml']