Psutil Error On Macos
def showMemTime(when='Resources'): global maxmem # memory and time measurement process = psutil.Process(os.getpid()) mem = process.get_memory_info()[0] / float(2 ** 20) m
Solution 1:
Process class doesn't have a method named get_memory_info
. It has memory_full_info()
and memory_info()
psutil.Process
Solution 2:
additional info to metmirr's this has been removed from macos, may thats why people still run into this.
Changed in version 5.6.0: removed macOS support because inherently broken (see issue #1291)
Post a Comment for "Psutil Error On Macos"