Author vstinner
Recipients LorenzMende, ammar2, eryksun, heckad, paul.moore, skoslowski, steve.dower, tim.golden, vstinner, zach.ware
Date 2019-09-30.08:14:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
On my Windows 10 version 1903, I get:

C:\> typeperf "\System\Processor Queue Length" -si 1
Fin du programme, veuillez patienter...
Erreur : aucun compteur valide.

C:\> echo %errorlevel%

Error message in english: "Error: No valid counters"

Because of this error, regrtest fails with:

  File "C:\vstinner\python\master\lib\test\libregrtest\", line 85, in getloadavg
    typeperf_output = self.read_output()
  File "C:\vstinner\python\master\lib\test\libregrtest\", line 82, in read_output
    return overlapped.getbuffer().decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 74: invalid start byte

I'm using:

platform.architecture: 64bit WindowsPE
platform.platform: Windows-10-10.0.18362-SP0
sys.windowsversion: sys.getwindowsversion(major=10, minor=0, build=18362, platform=2, service_pack='')

Note: same error when testing as an administrator. It's not a permission issue.


On the other side, "wmic cpu get loadpercentage" works as expected:

C:\> wmic cpu get loadpercentage
Date User Action Args
2019-09-30 08:14:21vstinnersetrecipients: + vstinner, paul.moore, tim.golden, zach.ware, eryksun, steve.dower, ammar2, LorenzMende, skoslowski, heckad
2019-09-30 08:14:21vstinnersetmessageid: <>
2019-09-30 08:14:21vstinnerlinkissue36670 messages
2019-09-30 08:14:21vstinnercreate