pc_json = {
'name': f'{platform.node()} {psutil.users()[0].name} ({len(psutil.users())})',
'system': f'{platform.system()} {platform.release()}',
'processor': f'{cpuinfo.get_cpu_info()["brand_raw"]}',
'cpu_count': f'{psutil.cpu_count(logical=False)}',
'cpu_freq': f'{psutil.cpu_freq().current}',
'cpu_temp': f'{cpu_temp}',
'mem_total': f'{get_size(mem_info.total)}',
'mem_used': f'{get_size(mem_info.used)}',
'mem_free': f'{get_size(mem_info.available)}',
'disks': f'{str(len(disk_info))}',
'gpu_name': f'{gpu_name}',
'gpu_mem': f'{get_size(gpu_memory_total)}',
'gpu_mem_used': f'{get_size(gpu_memory_used)}',
'gpu_mem_free': f'{get_size(gpu_memory_free)}',
'gpu_temp': f'{gpu_temp}°C'
}
pc_info = json.dumps(pc_json)
print(6) #<---- Уже не выводит