Closed arrrrrmin closed 1 year ago
Appears to be an issue coming through the python version. Using Python 3.10.10
everything looks fine. π
Maybe I missed the python version requirement for this package.
Should I close this issue?
Hello,
Thanks for reporting this, it's a good think to know that we have something to do to support 3.11.
We will keep this issue open and I will rename it "Python 3.11 Support"
@benoit-cty I try to could contribute to the project. Forked, branched, cloned and installed as pointed out in the Guideline, but I'm not really understanding why these fail. Im using venv with 3.10/3.11 installed and execute the tox
command:
====================================== short test summary info ======================================
FAILED tests/test_emissions_tracker_constant.py::TestCarbonTrackerConstant::test_carbon_tracker_offline_constant_default_cpu_power - AssertionError: 500.0 != 5.0
FAILED tests/test_ram.py::TestRAM::test_ram_diff - AssertionError: False is not true : (1000, 1000, 1000), 0.9313225746154785, 0.8813629150390625, ...
I'm asking myself if this relevant since, my cpu (Apple-M1 (2020)) might be different from the one used in the GitHub-Action for CI. The emissions.csv
written during the first test is showing cpu_power
-value of 5.0
, maybe this file should not be written?
Don't worry, I think you are fine, these tests are very sensitives and may fail under some conditions.
You could launch only the test that fail with 3.11 with 'pytest tests/test_energy.py'
2.1.4
Python 3.11.3
OSX 13.2.1
Description
Hi π first of all thanks for publishing the package. Upon importing
codecarbon
thedataclass
wrapper complains aboutEnergy
https://github.com/mlco2/codecarbon/blob/2108c72ebfa81587d69656464173aecb8989cb0a/codecarbon/core/rapl.py#L12Here is the complete Exception:
What I Did