"The energy-usage package only works on Linux kernels" while running on Linux
Opened this issue · 1 comments
So I had the error: "The energy-usage package only works on Linux kernels" while trying to run this on my Mac, which made sense. But I just made a Linux VM and tried to utilize the library and I'm getting the same error again, when I'm definitely running on Linux. Does anyone know how I can either fix this problem or bypass the error/make it think I'm using a Linux kernel (even though I am?)
I had a similar issue – looking at the code, the actual error message is:
The energy-usage package only works on Linux kernels with Intel processors that support the RAPL interface and/or machines with an Nvidia GPU. Please try again on a different machine.
energy-usage/energyusage/evaluate.py
Lines 398 to 401 in eb26f34
…which might explain your situation. For me this was when attempting to run this in GitHub Actions (Ubuntu, I don’t know much else about the virtual hardware). This error message is masked due to #16.