You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using glances 4.1.2 on Python 3.8.10, I get following error message on startup: Error while initializing the containers plugin ('type' object is not subscriptable)
To Reproduce
$ python --version
Python 3.8.10
$ glances
Error while initializing the containers plugin ('type' object is not subscriptable)
Expected behavior
The containers plugin should be initialized correctly.
Environment
Operating System (lsb_release -a or OS name/version): Ubuntu 20.04.5 LTS
Glances & psutil versions:
Glances version: 4.1.2
PsUtil version: 6.0.0
How do you install Glances (Pypi package, script, package manager, source): pip install glances --upgrade
2024-08-16 10:08:13,775 -- INFO -- Start Glances 4.1.2
2024-08-16 10:08:13,775 -- INFO -- CPython 3.8.10 (/usr/bin/python3) and psutil 6.0.0 detected
2024-08-16 10:08:13,788 -- WARNING -- Missing Python Lib (No module named 'pydantic'), EventList will be skipping data validation
2024-08-16 10:08:13,823 -- INFO -- Start GlancesStandalone mode
2024-08-16 10:08:13,929 -- WARNING -- Missing Python Lib (No module named 'pymdstat'), Raid plugin is disabled
2024-08-16 10:08:13,942 -- WARNING -- Sparklines module not found (No module named 'sparklines')
2024-08-16 10:08:13,943 -- WARNING -- Missing Python Lib (No module named 'pySMART'), HDD Smart plugin is disabled
2024-08-16 10:08:13,946 -- WARNING -- Missing Python Lib (No module named 'pynvml'), Nvidia GPU plugin is disabled
2024-08-16 10:08:13,950 -- CRITICAL -- Error while initializing the containers plugin ('type' object is not subscriptable)
2024-08-16 10:08:13,950 -- ERROR -- Traceback (most recent call last):
File "~/.local/lib/python3.8/site-packages/glances/stats.py", line 100, in _load_plugin
plugin = import_module('glances.plugins.' + plugin_path)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "~/.local/lib/python3.8/site-packages/glances/plugins/containers/__init__.py", line 16, in <module>
from glances.plugins.containers.engines import ContainersExtension
File "~/.local/lib/python3.8/site-packages/glances/plugins/containers/engines/__init__.py", line 4, in <module>
class ContainersExtension(Protocol):
File "~/.local/lib/python3.8/site-packages/glances/plugins/containers/engines/__init__.py", line 8, in ContainersExtension
def update(self, all_tag) -> Tuple[Dict, list[Dict[str, Any]]]:
TypeError: 'type' object is not subscriptable
The text was updated successfully, but these errors were encountered:
Describe the bug
Using glances 4.1.2 on Python 3.8.10, I get following error message on startup:
Error while initializing the containers plugin ('type' object is not subscriptable)
To Reproduce
Expected behavior
The containers plugin should be initialized correctly.
Environment
Ubuntu 20.04.5 LTS
pip install glances --upgrade
Additional context
Glances log file:
The text was updated successfully, but these errors were encountered: