Closed inimaz closed 5 months ago
Thanks ! I'm having the same problem under Linux. But as it doesn't happened in CI I though it was a local problem.
I think it's [this line](def _has_powermetrics_sudo():) that don't work as expected : if re.search(r"[sudo].*password", stderr):
Solution proposal : https://github.com/mlco2/codecarbon/pull/576
I am using linux system. When I ran the unit tests, when it arrives to
test_powermetrics.py
, it asks for sudo permissions to run it.How to reproduce
Run
hatch run test:package