mlco2 / codecarbon

Track emissions from Compute and recommend ways to reduce their impact on the environment.
https://mlco2.github.io/codecarbon
MIT License
1.17k stars 177 forks source link

[codecarbon WARNING @ 23:09:59] Another instance of codecarbon is already running. Exiting. #702

Closed bashir-abubakar closed 2 weeks ago

bashir-abubakar commented 3 weeks ago

[codecarbon WARNING @ 23:09:59] Another instance of codecarbon is already running. Exiting.

How do i quit the instance? I have restarted my system but keep getting same error in juypter notebook using

from codecarbon import EmissionsTracker tracker = EmissionsTracker()

inimaz commented 3 weeks ago

Hi!

Thanks for using codecarbon. There is a bug, that sometimes there is a hanging lock file that prevents from continuing. Normally solved by https://github.com/mlco2/codecarbon/pull/701. This fix will be included in future releases.

As a temporary workaround until the next release is ready you can find this lock file and remove it. In Linux it should be

rm /tmp/.codecarbon.lock

Sorry for the inconveniences

inimaz commented 2 weeks ago

@bashir-abubakar if you update the codecarbon package, the fix is included in the latest release (v2.7.4). Feel free to test it and tell us if you still have the issue

benoit-cty commented 2 weeks ago

Closed by https://github.com/mlco2/codecarbon/pull/701