VoxelCubes / PanelCleaner

An AI-powered tool to clean manga panels.
GNU General Public License v3.0
241 stars 18 forks source link

psutil: RuntimeError: PdhAddEnglishCounterW failed #115

Closed wolfkingal2000 closed 1 month ago

wolfkingal2000 commented 1 month ago

Traceback (most recent call last): File "pcleaner\main.py", line 837, in File "pcleaner\main.py", line 310, in main File "pcleaner\gui\launcher.py", line 80, in launch 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.

VoxelCubes commented 1 month ago

This is an issue with your Windows machine. You need to enable performance counters. Someone in this forum post had the same issue with the psutils package and managed to fix it: https://support.nagios.com/forum/viewtopic.php?t=66133

If that doesn't resolve it for you, please raise the issue to psutil, where the problem occurs: https://github.com/giampaolo/psutil

VoxelCubes commented 1 month ago

Well, I added a workaround for it in version 2.9.3 anyway, so it'll work now no matter what.