我下载后遇到了无法运行的问题,以下是一些信息,供参考:
- 运行EXE:
![image](https://private-user-images.githubusercontent.com/108813113/331762329-9e699e55-4891-4276-95c1-7fd6b7d3a8a2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxMTYxMzYsIm5iZiI6MTcyNTExNTgzNiwicGF0aCI6Ii8xMDg4MTMxMTMvMzMxNzYyMzI5LTllNjk5ZTU1LTQ4OTEtNDI3Ni05NWMxLTdmZDZiN2QzYThhMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODMxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgzMVQxNDUwMzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iMTg2NWUxNGY5OTI1YmQ3YmYzOTZiNDExNjdjOTJhMzY2ODJlZGRiMzQxMTU3NjFiN2JkMTUwMzhiZjcxY2M1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.8DaAuxIwWYDTdvVLD6Ykd4eO_lb-OH45jVmBGsZkEN4)
报错信息:
Traceback (most recent call last): File "main.py", line 17, in <module> File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module File "cyber_life\computer_info\manager.py", line 15, in <module> File "cyber_life\computer_info\manager.py", line 20, in _SystemInfoManager File "cyber_life\computer_info\inspector_memory.py", line 19, in __init__ File "cyber_life\computer_info\inspector_memory.py", line 25, in inspect File "psutil\__init__.py", line 2036, in swap_memory File "psutil\_pswindows.py", line 266, in swap_memory RuntimeError: PdhAddEnglishCounterW failed. Performance counters may be disabled.
2.下载python源码后也无法运行:
![image](https://private-user-images.githubusercontent.com/108813113/331762415-6a8bc54a-e161-474d-9889-4b8001f73ec7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUxMTYxMzYsIm5iZiI6MTcyNTExNTgzNiwicGF0aCI6Ii8xMDg4MTMxMTMvMzMxNzYyNDE1LTZhOGJjNTRhLWUxNjEtNDc0ZC05ODg5LTRiODAwMWY3M2VjNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODMxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgzMVQxNDUwMzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xNWQ1M2ZiNTUzMWI4YzkwODZkZjNjZWM5NDQ4MTVlZTU1OTIzMzQxMzYwNDZiYTJkNzJjYjA2NmRiMmUxNzljJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.z_YfRjsElAvBM_wQkapWbFwgjz6jtJ7lLmPK22aawSo)
报错信息:
Traceback (most recent call last): File "D:\下载\cyber-life-1.0.1\main.py", line 17, in <module> from cyber_life.computer_info.manager import SYSTEM_INFO_MANAGER File "D:\下载\cyber-life-1.0.1\cyber_life\computer_info\manager.py", line 15, in <module> class _SystemInfoManager(metaclass=SingletonMeta): File "D:\下载\cyber-life-1.0.1\cyber_life\computer_info\manager.py", line 20, in _SystemInfoManager INSPECTOR_MEMORY = InspectorMemory() File "D:\下载\cyber-life-1.0.1\cyber_life\computer_info\inspector_memory.py", line 19, in __init__ self.inspect() File "D:\下载\cyber-life-1.0.1\cyber_life\computer_info\inspector_memory.py", line 25, in inspect psutil.swap_memory().percent / 100, File "C:\Users\shila\AppData\Local\Programs\Python\Python310\lib\site-packages\psutil\__init__.py", line 2036, in swap_memory return _psplatform.swap_memory() File "C:\Users\shila\AppData\Local\Programs\Python\Python310\lib\site-packages\psutil\_pswindows.py", line 266, in swap_memory percentswap = cext.swap_percent() RuntimeError: PdhAddEnglishCounterW failed. Performance counters may be disabled.
目前已排除:
(以下信息从 系统 - 关于 复制而来)
设备名称 DESKTOP-OQE452V
处理器 AMD Ryzen 5 5600G with Radeon Graphics 3.90 GHz
机带 RAM 32.0 GB (31.8 GB 可用)
设备 ID ---****-*** (此处人工打码处理)
产品 ID ---(此处人工打码处理)
系统类型 64 位操作系统, 基于 x64 的处理器
笔和触控 没有可用于此显示器的笔或触控输入
版本 Windows 10 专业版
版本号 22H2
安装日期 ****//(此处人工打码处理)
操作系统内部版本 19045.4412
体验 Windows Feature Experience Pack .*****..0 (此处人工打码处理)