-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[macOS] cpu_freq() fails on arm64 #2382
Comments
I will check further! Will also look into #2354 at the same time. |
I think this is a relic of the VM used by GitHub (and other CI providers) that don't include the |
Yeah what Daniel has pointed out in #2222 (comment) is spot on as to why this is failing. I just booted a VM to test this and when I tried to use |
Any way you can explore around and see if the "voltage-states5-sram" or "voltage-states1-sram" or any "voltage-states*-sram" value exists in any key? |
|
any "voltage-states" at all? I'm not sure "CPU Frequency" has any meaning for a VM, anyway. And in most cases, CPU Frequency has changed by the time you read the results. I think the appropriate response here is to ignore the error and return either 0 or some sane default. |
We recently added a macOS build for arm64 and we get a failure:
https://github.com/giampaolo/psutil/actions/runs/8301314525/job/22721158479
Error originates from:
psutil/psutil/arch/osx/cpu.c
Lines 160 to 166 in f51f62b
Change was introduced in #2222.
@snOm3ad: Any chance you can take a look?
The text was updated successfully, but these errors were encountered: