E:\pyAPP\Madking\MadKingClient>python bin\NedStark.py collect_data
E:\pyAPP\Madking\MadKingClient
Traceback (most recent call last):
File "E:\pyAPP\Madking\MadKingClient\bin\NedStark.py", line 26, in <module>
HouseStark.ArgvHandler(sys.argv)
File "E:\pyAPP\Madking\MadKingClient\core\HouseStark.py", line 24, in __init__
self.parse_argv()
File "E:\pyAPP\Madking\MadKingClient\core\HouseStark.py", line 30, in parse_argv
func()
File "E:\pyAPP\Madking\MadKingClient\core\HouseStark.py", line 48, in collect_data
asset_data = obj.collect()
File "E:\pyAPP\Madking\MadKingClient\core\info_collection.py", line 32, in collect
info_data = func()
File "E:\pyAPP\Madking\MadKingClient\core\info_collection.py", line 44, in Windows
sys_info = plugin_api.WindowsSysInfo()
File "E:\pyAPP\Madking\MadKingClient\plugins\plugin_api.py", line 19, in WindowsSysInfo
from plugins.windows import sysinfo as win_sysinfo
File "E:\pyAPP\Madking\MadKingClient\plugins\windows\sysinfo.py", line 11, in <module>
import win32com
ModuleNotFoundError: No module named 'win32com'

E:\pyAPP\Madking\MadKingClient>pip install pywin32com
ERROR: Could not find a version that satisfies the requirement pywin32com (from versions: none)
ERROR: No matching distribution found for pywin32com
WARNING: You are using pip version 22.0.4; however, version 22.3.1 is available.
You should consider upgrading via the 'D:\Python\Python310\python.exe -m pip install --upgrade pip' command.

E:\pyAPP\Madking\MadKingClient>pip install pywin32
Collecting pywin32
Using cached pywin32-305-cp310-cp310-win_amd64.whl (12.1 MB)
Installing collected packages: pywin32
Successfully installed pywin32-305
WARNING: You are using pip version 22.0.4; however, version 22.3.1 is available.
You should consider upgrading via the 'D:\Python\Python310\python.exe -m pip install --upgrade pip' command.

E:\pyAPP\Madking\MadKingClient>python bin\NedStark.py collect_data
E:\pyAPP\Madking\MadKingClient
Traceback (most recent call last):
File "E:\pyAPP\Madking\MadKingClient\bin\NedStark.py", line 26, in <module>
HouseStark.ArgvHandler(sys.argv)
File "E:\pyAPP\Madking\MadKingClient\core\HouseStark.py", line 24, in __init__
self.parse_argv()
File "E:\pyAPP\Madking\MadKingClient\core\HouseStark.py", line 30, in parse_argv
func()
File "E:\pyAPP\Madking\MadKingClient\core\HouseStark.py", line 48, in collect_data
asset_data = obj.collect()
File "E:\pyAPP\Madking\MadKingClient\core\info_collection.py", line 32, in collect
info_data = func()
File "E:\pyAPP\Madking\MadKingClient\core\info_collection.py", line 44, in Windows
sys_info = plugin_api.WindowsSysInfo()
File "E:\pyAPP\Madking\MadKingClient\plugins\plugin_api.py", line 19, in WindowsSysInfo
from plugins.windows import sysinfo as win_sysinfo
File "E:\pyAPP\Madking\MadKingClient\plugins\windows\sysinfo.py", line 12, in <module>
import wmi
ModuleNotFoundError: No module named 'wmi'

E:\pyAPP\Madking\MadKingClient>pip install wmi
Collecting wmi
Using cached WMI-1.5.1-py2.py3-none-any.whl (28 kB)
Requirement already satisfied: pywin32 in d:\python\python310\lib\site-packages (from wmi) (305)
Installing collected packages: wmi
Successfully installed wmi-1.5.1
WARNING: You are using pip version 22.0.4; however, version 22.3.1 is available.
You should consider upgrading via the 'D:\Python\Python310\python.exe -m pip install --upgrade pip' command.

E:\pyAPP\Madking\MadKingClient>python bin\NedStark.py collect_data
E:\pyAPP\Madking\MadKingClient
{'os_type': 'Windows', 'os_release': '10 64bit 10.0.19044 ', 'os_distribution': 'Microsoft', 'asset_type': 'server', 'cpu_count': 1, 'cpu_model': 'Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz', 'cpu_core_count': 6, 'ram': [{'slot': 'DIMM A', 'capacity': 8192.0, 'model': '物理内存', 'manufactory': '80AD000080AD', 'sn': '72D9F1A2'}, {'slot': 'DIMM B', 'capacity': 8192.0, 'model': '物理内存', 'manufactory': '80AD000080AD', 'sn': '72D9F135'}], 'manufactory': 'Dell Inc.', 'model': 'G7 7590', 'wake_up_type': 6, 'sn': '00330-80000-00000-AA305', 'physical_disk_driver': [{'iface_type': 'unknown', 'slot': 0, 'sn': '0000_0000_0000_0001_8CE3_8E05_0007_2F85.', 'model': 'NVMe KXG60ZNV1T02 NVM', 'manufactory': '(标准磁盘驱动器)', 'capacity': 953.8639712333679}], 'nic': [{'macaddress': '8C:04:BA:99:70:5E', 'model': '[00000001] Killer E2500 Gigabit Ethernet Controller', 'name': 1, 'ipaddress': '', 'netmask': ''}, {'macaddress': 'A8:6D:AA:52:E3:6F', 'model': '[00000003] Killer(R) Wireless-AC 1550 Wireless Network Adapter (9260NGW) 160MHz', 'name': 3, 'ipaddress': '192.168.43.141', 'netmask': ('255.255.255.0', '64', '128', '64')}, {'macaddress': '00:50:56:C0:00:01', 'model': '[00000004] VMware Virtual Ethernet Adapter for VMnet1', 'name': 4, 'ipaddress': '169.254.155.251', 'netmask': ('255.255.0.0', '64')}, {'macaddress': '00:50:56:C0:00:08', 'model': '[00000005] VMware Virtual Ethernet Adapter for VMnet8', 'name': 5, 'ipaddress': '169.254.193.136', 'netmask': ('255.255.0.0', '64')}, {'macaddress': 'FE:45:20:52:41:53', 'model': '[00000011] WAN Miniport (IP)', 'name': 11, 'ipaddress': '', 'netmask': ''}, {'macaddress': '0C:CC:20:52:41:53', 'model': '[00000012] WAN Miniport (IPv6)', 'name': 12, 'ipaddress': '', 'netmask': ''}, {'macaddress': '18:6C:20:52:41:53', 'model': '[00000013] WAN Miniport (Network Monitor)', 'name': 13, 'ipaddress': '', 'netmask': ''}, {'macaddress': 'A8:6D:AA:52:E3:70', 'model': '[00000014] Microsoft Wi-Fi Direct Virtual Adapter', 'name': 14, 'ipaddress': '', 'netmask': ''}, {'macaddress': 'AA:6D:AA:52:E3:6F', 'model': '[00000015] Microsoft Wi-Fi Direct Virtual Adapter', 'name': 15, 'ipaddress': '', 'netmask': ''}, {'macaddress': '0A:00:27:00:00:13', 'model': '[00000016] VirtualBox Host-Only Ethernet Adapter', 'name': 16, 'ipaddress': '192.168.56.1', 'netmask': ('255.255.255.0', '64')}, {'macaddress': 'A8:6D:AA:52:E3:73', 'model': '[00000017] Bluetooth Device (Personal Area Network)', 'name': 17, 'ipaddress': '', 'netmask': ''}, {'macaddress': '00:15:5D:98:9F:6C', 'model': '[00000019] Hyper-V Virtual Ethernet Adapter', 'name': 19, 'ipaddress': '192.168.64.1', 'netmask': ('255.255.240.0', '64')}]}
{'os_type': 'Windows', 'os_release': '10 64bit 10.0.19044 ', 'os_distribution': 'Microsoft', 'asset_type': 'server', 'cpu_count': 1, 'cpu_model': 'Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz', 'cpu_core_count': 6, 'ram': [{'slot': 'DIMM A', 'capacity': 8192.0, 'model': '物理内存', 'manufactory': '80AD000080AD', 'sn': '72D9F1A2'}, {'slot': 'DIMM B', 'capacity': 8192.0, 'model': '物理内存', 'manufactory': '80AD000080AD', 'sn': '72D9F135'}], 'manufactory': 'Dell Inc.', 'model': 'G7 7590', 'wake_up_type': 6, 'sn': '00330-80000-00000-AA305', 'physical_disk_driver': [{'iface_type': 'unknown', 'slot': 0, 'sn': '0000_0000_0000_0001_8CE3_8E05_0007_2F85.', 'model': 'NVMe KXG60ZNV1T02 NVM', 'manufactory': '(标准磁盘驱动器)', 'capacity': 953.8639712333679}], 'nic': [{'macaddress': '8C:04:BA:99:70:5E', 'model': '[00000001] Killer E2500 Gigabit Ethernet Controller', 'name': 1, 'ipaddress': '', 'netmask': ''}, {'macaddress': 'A8:6D:AA:52:E3:6F', 'model': '[00000003] Killer(R) Wireless-AC 1550 Wireless Network Adapter (9260NGW) 160MHz', 'name': 3, 'ipaddress': '192.168.43.141', 'netmask': ('255.255.255.0', '64', '128', '64')}, {'macaddress': '00:50:56:C0:00:01', 'model': '[00000004] VMware Virtual Ethernet Adapter for VMnet1', 'name': 4, 'ipaddress': '169.254.155.251', 'netmask': ('255.255.0.0', '64')}, {'macaddress': '00:50:56:C0:00:08', 'model': '[00000005] VMware Virtual Ethernet Adapter for VMnet8', 'name': 5, 'ipaddress': '169.254.193.136', 'netmask': ('255.255.0.0', '64')}, {'macaddress': 'FE:45:20:52:41:53', 'model': '[00000011] WAN Miniport (IP)', 'name': 11, 'ipaddress': '', 'netmask': ''}, {'macaddress': '0C:CC:20:52:41:53', 'model': '[00000012] WAN Miniport (IPv6)', 'name': 12, 'ipaddress': '', 'netmask': ''}, {'macaddress': '18:6C:20:52:41:53', 'model': '[00000013] WAN Miniport (Network Monitor)', 'name': 13, 'ipaddress': '', 'netmask': ''}, {'macaddress': 'A8:6D:AA:52:E3:70', 'model': '[00000014] Microsoft Wi-Fi Direct Virtual Adapter', 'name': 14, 'ipaddress': '', 'netmask': ''}, {'macaddress': 'AA:6D:AA:52:E3:6F', 'model': '[00000015] Microsoft Wi-Fi Direct Virtual Adapter', 'name': 15, 'ipaddress': '', 'netmask': ''}, {'macaddress': '0A:00:27:00:00:13', 'model': '[00000016] VirtualBox Host-Only Ethernet Adapter', 'name': 16, 'ipaddress': '192.168.56.1', 'netmask': ('255.255.255.0', '64')}, {'macaddress': 'A8:6D:AA:52:E3:73', 'model': '[00000017] Bluetooth Device (Personal Area Network)', 'name': 17, 'ipaddress': '', 'netmask': ''}, {'macaddress': '00:15:5D:98:9F:6C', 'model': '[00000019] Hyper-V Virtual Ethernet Adapter', 'name': 19, 'ipaddress': '192.168.64.1', 'netmask': ('255.255.240.0', '64')}]}

E:\pyAPP\Madking\MadKingClient>

pywin32和wmi的安装和测试的更多相关文章

  1. my SQL下载安装,环境配置,以及密码忘记的解决,以及navicat for mysql下载,安装,测试连接

    一.下载 在百度上搜索"mysql-5.6.24-winx64下载" 二.安装 选择安装路径,我的路径“C:\Soft\mysql-5.6.24-winx64” 三.环境配置 计算 ...

  2. OpenCV2+入门系列(一):OpenCV2.4.9的安装与测试

    这里假设看到这篇文章的人都已经对OpenCV以及机器视觉等最基础的概念有了一定的认识,因此本文不会对OpenCV做任何的介绍,而是直接介绍OpenCV2.4.9的安装与测试.此外本文只是简单的介绍如何 ...

  3. 决战大数据之三-Apache ZooKeeper Standalone及复制模式安装及测试

    决战大数据之三-Apache ZooKeeper Standalone及复制模式安装及测试 [TOC] Apache ZooKeeper 单机模式安装 创建hadoop用户&赋予sudo权限, ...

  4. coreseek实战(一):windows下coreseek的安装与测试

    coreseek实战(一):windows下coreseek的安装与测试 网上关于 coreseek 在 windows 下安装与使用的教程有很多,官方也有详细的教程,这里我也只是按着官方提供的教程详 ...

  5. Window下memcached安装与测试步骤

    如何在Window下memcached安装与测试步骤 工具/原料 电脑 memcached 软件 方法/步骤 软件包下载 下载Memercached For Windows:http://downlo ...

  6. 【MySql】5.6.14版本的安装和测试

    当前状态:apache2.4.6和php5.5.6已经安装成功: mysql的安装和测试: 一.安装mysql5.6.14,参考http://wenku.baidu.com/link?url=_0jk ...

  7. jdbc_odbc SQLserver 驱动安装及测试

    有2次被问到同一个问题,尽管博客园是.net的园子,我还是分享下吧.PS:我现在做的.net,以前学过点java.献丑了. ------------------ 原始邮件 -------------- ...

  8. mosquitto在Linux环境下的部署/安装/使用/测试

    mosquitto在Linux环境下的部署 看了有三四天的的源码,(当然没怎么好好看了),突然发现对mosquitto的源码有了一点点感觉,于是在第五天决定在Linux环境下部署mosquitto. ...

  9. http_load安装与测试参数分析 - 追求自由自在的编程 - ITeye技术网站

    http_load安装与测试参数分析 - 追求自由自在的编程 - ITeye技术网站 http_load -p 50 -s 120 urls

  10. Docker的安装和测试

    1,Docker安装 Docker是啥,以及其与虚拟机的对比,就不介绍了,网上有很多资源可以学习和了解. 本篇文章重点介绍Docker的安装和测试使用. Docker的安装,分为离线安装和在线安装两种 ...

随机推荐

  1. DRF_序列化and反序列化之高级

    1. source用法 序列化器内的使用 book_name = serializers.CharField(max_length=8, min_length=3,source='name')这个用来 ...

  2. 基于Mindspore2.0的GPT2预训练模型迁移教程

    摘要: 这篇文章主要目的是为了让大家能够清楚如何用MindSpore2.0来进行模型的迁移. 本文分享自华为云社区<MindNLP-基于Mindspore2.0的GPT2预训练模型迁移教程> ...

  3. 什么是RPA?RPA能干什么?

    一.什么是RPA什么是RPA? RPA的全称为机器人流程自动化(Robotic Process Automation),即:"机器人流程自动化",是一种智能化的企业流程管理系统.R ...

  4. Day05笔记

    01.数组类(了解) 1.目的:设计一个类,该类有数组的功能,可以存储数据,可以删除修改数据 2.设计核心数据 1.属性:指针(指向堆区空间),数组实际存储的元素个数,数组容量 2.方法:构造(开辟堆 ...

  5. Ocelot使用与设置路由Routing

    一.安装Ocelot 在程序包管理器控制台输入以下命令安装Ocelot Install-Package Ocelot 二.新建两个项目 我们新建两个.Net Core WebAPI项目如下:   直接 ...

  6. 自己动手从零写桌面操作系统GrapeOS系列教程——18.外设和IO

    学习操作系统原理最好的方法是自己写一个简单的操作系统. 一.外设和I/O接口 前面我们介绍过冯·诺依曼结构包含5部分,其中输入设备和输出设备统称为外部设备,简称外设.常见的外设有鼠标.键盘.显示器.硬 ...

  7. CSS必知必会

    CSS概念 css的使用是让网页具有统一美观的页面,css层叠样式表,简称样式表,文件后缀名.css css的规则由两部分构成:选择器以及一条或者多条声明 选择器:通常是需要改变的HTML元素 声明: ...

  8. Freemon停止提供免费域名注册了

    前言 freemon是一家国外的域名注册商,提供很多顶级的域名注册,最棒的是它还提供了五个免费的顶级一级域名注册分别有:tk.cf.ml.ga.gq,而且据我所知是不限量注册,最高一年使用期,可以免费 ...

  9. 主板芯片组驱动和Win系统版本互相关联

    主板芯片组驱动和Win系统版本互相关联,过早的系统安装较新版的芯片组驱动,或者较新版本的操作系统安装旧版的芯片组驱动,都可能导致系统不稳定蓝屏.解决方案就是安装最新的芯片组驱动和最新版的操作系统.

  10. ChatGPT3.5使用体验

    优点 1.ChatGPT 能颠覆现有的搜索引擎(百度.谷歌). 2.ChatGPT 的交互体验非常好,满足"智能助手"这种工具. 3.如何使用好ChatCPT? 回到一个经典的问题 ...