glances
glances copied to clipboard
FastAPI import error. Glances cannot start in web server mode.
Describe the bug Web server will not start citing FastAPI import error Ensured FastAPI is installed
To Reproduce Steps to reproduce the behavior:
- Start Glances with the following options '-w'
- See error
Expected behavior Web Server to start
Screenshots
Environment (please complete the following information)
- Operating = System Debian 12
- Glances & psutil versions: 4.1.2, 6.0.0 respectively
- How do you install Glances = Pipx
- Glances test:
===============================================================================
Glances 4.1.2 (/root/.local/pipx/venvs/glances/lib/python3.11/site-packages/glances/__init__.py)
Python 3.11.2 (/root/.local/pipx/venvs/glances/bin/python)
PsUtil 6.0.0 (/root/.local/pipx/venvs/glances/lib/python3.11/site-packages/psutil/__init__.py)
===============================================================================
alert [OK] 0.00001s
[]
amps [OK] 0.00015s key=name
[{'count': 0,
'countmax': None,
'countmin': 1.0,
'key': 'name',
'name': 'Dropbox',
'refresh': 3.0,
'regex': True,
'result': None,
'timer': 2.0611817836761475}, ...]
cloud [OK] 0.00001s
{}
connections [OK] 0.00298s
{'ESTABLISHED': 1,
'LISTEN': 2,
'SYN_RECV': 0,
'SYN_SENT': 0,
'initiated': 0,
'net_connections_enabled': True,
'nf_conntrack_enabled': False,
'terminated': 0}
containers [OK] 0.00001s
{}
core [OK] 0.00037s
{'log': 12, 'phys': 6}
cpu [OK] 0.00023s
{'cpucore': 12,
'ctx_switches': 0,
'ctx_switches_gauge': 1340438,
'guest': 0.0,
'idle': 99.7,
'interrupts': 0,
'interrupts_gauge': 997896,
'iowait': 0.0,
'irq': 0.0,
'nice': 0.0,
'soft_interrupts': 0,
'soft_interrupts_gauge': 1042232,
'steal': 0.0,
'syscalls': 0,
'syscalls_gauge': 0,
'system': 0.1,
'time_since_update': 2.0410869121551514,
'total': 0.3,
'user': 0.1}
diskio [OK] 0.00034s key=disk_name
[{'disk_name': 'sda',
'key': 'disk_name',
'read_bytes': 0,
'read_bytes_gauge': 606389248,
'read_count': 0,
'read_count_gauge': 18055,
'time_since_update': 2.0070862770080566,
'write_bytes': 0,
'write_bytes_gauge': 2408474624,
'write_count': 0,
'write_count_gauge': 97850}, ...]
folders [OK] 0.00001s
[]
fs [OK] 0.00023s key=mnt_point
[{'device_name': '/dev/mapper/Meg--Server--vg-root',
'free': 927703187456,
'fs_type': 'ext4',
'key': 'mnt_point',
'mnt_point': '/',
'percent': 0.4,
'size': 981306851328,
'used': 3680542720}, ...]
gpu [OK] 0.00001s
[]
help [OK] 0.00000s
None
ip [NA]
irq [NA]
load [OK] 0.00002s
{'cpucore': 12, 'min1': 0.0, 'min15': 0.0, 'min5': 0.0}
mem [OK] 0.00007s
{'active': 369356800,
'available': 16111738880,
'buffers': 102952960,
'cached': 1813774336,
'free': 16111738880,
'inactive': 1410637824,
'percent': 3.5,
'shared': 991232,
'total': 16702517248,
'used': 590778368}
memswap [OK] 0.00012s
{'free': 1023406080,
'percent': 0.0,
'sin': 0,
'sout': 0,
'time_since_update': 2.0437328815460205,
'total': 1023406080,
'used': 0}
network [OK] 0.00080s key=interface_name
[{'alias': None,
'bytes_all': 0,
'bytes_all_gauge': 13160,
'bytes_all_rate_per_sec': 0.0,
'bytes_recv': 0,
'bytes_recv_gauge': 6580,
'bytes_recv_rate_per_sec': 0.0,
'bytes_sent': 0,
'bytes_sent_gauge': 6580,
'bytes_sent_rate_per_sec': 0.0,
'interface_name': 'lo',
'key': 'interface_name',
'speed': 0,
'time_since_update': 2.0068416595458984}, ...]
now [OK] 0.00002s
{'custom': '2024-08-27 15:18:33 BST', 'iso': '2024-08-27T15:18:33+01:00'}
percpu [OK] 0.00022s key=cpu_number
[{'cpu_number': 0,
'dpc': None,
'guest': 0.0,
'guest_nice': 0.0,
'idle': 100.0,
'interrupt': None,
'iowait': 0.0,
'irq': 0.0,
'key': 'cpu_number',
'nice': 0.0,
'softirq': 0.0,
'steal': 0.0,
'system': 0.0,
'total': 0.0,
'user': 0.0}, ...]
ports [OK] 0.00000s
[]
processcount [OK] 0.02141s
{'pid_max': 0, 'running': 1, 'sleeping': 78, 'thread': 170, 'total': 169}
processlist [OK] 0.00008s
[]
psutilversion [OK] 0.00001s
'6.0.0'
quicklook [OK] 0.00019s
{'cpu': 0.3,
'cpu_hz': 3800000000.0,
'cpu_hz_current': 3045168083.3333335,
'cpu_log_core': 12,
'cpu_name': 'AMD Ryzen 5 3600X 6-Core Processor',
'cpu_phys_core': 6,
'load': 0.0,
'mem': 3.5,
'percpu': [{...}, {...}, {...}, {...}, {...}, {...}, {...}, {...}, {...}, {...}, {...}, {...}],
'swap': 0.0}
raid [NA]
sensors [OK] 0.00000s key=label
[{'critical': None,
'key': 'label',
'label': 'Tccd1',
'type': <SensorType.CPU_TEMP: 'temperature_core'>,
'unit': 'C',
'value': 37,
'warning': None}, ...]
smart [NA]
system [OK] 0.00000s
{'hostname': 'Meg-Server',
'hr_name': 'Debian GNU/Linux 12 64bit / Linux 6.1.0-23-amd64',
'linux_distro': 'Debian GNU/Linux 12',
'os_name': 'Linux',
'os_version': '6.1.0-23-amd64',
'platform': '64bit'}
uptime [OK] 0.00006s
{'seconds': 12064}
version [OK] 0.00001s
'4.1.2'
wifi [NA]
===============================================================================
Total time to update all stats: 0.02886s
===============================================================================