The latest version of psutil library 5.9.0 is adapted to this behavior, but the latest version of psutil not supports Python 2.7.
That is why I copied psutil code to local function psutil_local_swap_memory and adapted it.
Also I added support for Python3.7 and updated installation documentation for Python3.
The old version of psutil fails due to changes in
swap -l
command output.New variant:
Old variant:
The latest version of psutil library 5.9.0 is adapted to this behavior, but the latest version of psutil not supports Python 2.7. That is why I copied psutil code to local function psutil_local_swap_memory and adapted it.
Also I added support for Python3.7 and updated installation documentation for Python3.