thingspeak icon indicating copy to clipboard operation
thingspeak copied to clipboard

AttributeError: 'module' object has no attribute 'avail_phymem'

Open wireddude opened this issue 10 years ago • 1 comments

getting this when I run on my raspberry pi

AttributeError: 'module' object has no attribute 'avail_phymem'

any ideas?

wireddude avatar Nov 03 '15 22:11 wireddude

I haven't figured out when avail_phymem was removed from psutil, but it seems to have been a while ago. I think psutil.virtual_memory().available is the replacement; at least, close enough for that example.

I haven't used thingspeak in a year or two. I haven't tested that the psutil change is the only one required to get the example working.

bergey avatar Nov 04 '15 21:11 bergey