Skip to content
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

ERROR: EnergyDriver_executeCommands [via readSample] returned 0xe00002bc #321

Closed
MinnieM0use opened this issue Jul 11, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@MinnieM0use
Copy link

  • CodeCarbon version: 2.1.2 and 2.1.3
  • Python version: 3.9.4 and 3.7.7
  • Operating System: macOS Big Sur 11.6.5

Description

I am trying to wrap the EmissionTracker around a project but I get an error.

What I Did

import sys
import pathlib
import os
from codecarbon import EmissionsTracker
import timeit

path = str(pathlib.Path(__file__).parent.resolve()) + "/pathToFile"
sys.path.append(path)
os.chdir(path)

with EmissionsTracker() as tracker:
    start = timeit.default_timer()
    import main
    stop = timeit.default_timer()
    print('Runtime: ', stop - start)  

sys.path.remove(path)
sys.modules.pop('main')
ERROR: EnergyDriver_executeCommands [via readSample] returned 0xe00002bc

The error appears multiple times in the terminal output

I would be happy with a workaround...

@benoit-cty
Copy link
Contributor

Hello,
Thanks for reporting, this is a Power Gadget error. Which CPU are you using ? Could you give us the full log ?

@benoit-cty benoit-cty added the bug Something isn't working label Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants