Open manceaur opened 1 year ago
I am having the same issue with Ubuntu 16.04 TLS and python 3.7.
I got the same error, did anyone figure it out? Using Ubuntu 20.04 and python 3.8.
I changed the code to this,
_pkg = [j / number for j in self.pkg] if self.pkg else None
_dram = [j / number for j in self.dram] if self.dram else None
But I haven't studied it enough to know if this is correct.
Had the same, in my case it looks like the dram
metrics/list is not populated. The class attribute is Optional
(thanks for the type hints!), but the code doesn't seem to take that into consideration when iterating it. I fixed it locally to ignore the dram
for now (couldn't find if I have to enable something on Ubuntu) with this code:
_dram = [] if self.dram is None else [j / number for j in self.dram]
I tried to run a simple following example with pyRAPL but something went wrong when measurement ends :
I'm using Fedora 35, python 3.9.12
Here the code :