Traceback (most recent call last):


 "<stdin>", line 1, in <module>


 "/usr/local/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 3306, in plot

ax = gca()


 "/usr/local/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 950, in gca

return gcf().gca(**kwargs)


 "/usr/local/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 586, in gcf

return figure()


 "/usr/local/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 535, in figure

**kwargs)


 "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_qt4agg.py", line 46, in new_figure_manager

return new_figure_manager_given_figure(num, thisFig)


 "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_qt4agg.py", line 54, in new_figure_manager_given_figure

return FigureManagerQT(canvas, num)


 "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5.py", line 488, in __init__

self.toolbar = self._get_toolbar(self.canvas, self.window)


 "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5.py", line 539, in _get_toolbar

toolbar = NavigationToolbar2QT(canvas, parent, False)


 "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5.py", line 585, in __init__

NavigationToolbar2.__init__(self, canvas)


 "/usr/local/lib/python2.7/dist-packages/matplotlib/backend_bases.py", line 2760, in __init__

self._init_toolbar()


 "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5.py", line 601, in _init_toolbar

a = self.addAction(self._icon(image_file + '.png'),


 "/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5.py", line 591, in _icon

pm.setDevicePixelRatio(self.canvas._dpi_ratio)
AttributeError: 'QPixmap' object has no attribute 'setDevicePixelRatio'

Traceback (most recent call last):


 "/usr/bin/auto-cpufreq", line 437, in <module>

cli()


 "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__

return self.main(*args, **kwargs)


 "/usr/lib/python3/dist-packages/click/core.py", line 717, in main

rv = self.invoke(ctx)


 "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke

return callback(*args, **kwargs)


 "/usr/bin/auto-cpufreq", line 401, in cli

set_autofreq()


 "/usr/bin/auto-cpufreq", line 243, in set_autofreq

bat_state = p.sensors_battery().power_plugged
AttributeError: 'NoneType' object has no attribute 'power_plugged'
