Traceback (most recent call last):

 "/usr/lib/python3.4/site-packages/powerline/segment.py", line 112, in process_segment
contents = segment['contents_func'](pl, segment_info)

 "/usr/lib/python3.4/site-packages/powerline/segment.py", line 243, in <lambda>
contents_func = lambda pl, segment_info: _contents_func(pl=pl, **args)

 "/usr/lib/python3.4/site-packages/powerline/segments/common.py", line 1279, in battery
capacity = _get_capacity(pl)

 "/usr/lib/python3.4/site-packages/powerline/segments/common.py", line 1250, in _get_capacity
return _get_capacity(pl)

 "/usr/lib/python3.4/site-packages/powerline/segments/common.py", line 1146, in <lambda>
'Percentage'TypeError: float() argument must be a string or a number, not 'functools.partial'
Traceback (most recent call last):


 "C:\Users\khairy\AppData\Local\Programs\Python\Python35\lib\threading.py", line 914, in _bootstrap_inner

self.run()


 "C:\Users\khairy\AppData\Local\Programs\Python\Python35\lib\threading.py", line 862, in run

self._target(*self._args, **self._kwargs)


 "C:\Users\khairy\AppData\Local\Programs\Python\Python35\lib\site-packages\tweepy-3.6.0-py3.5.egg\tweepy\streaming.py", line 297, in _run

six.reraise(*exc_info)


 "C:\Users\khairy\AppData\Local\Programs\Python\Python35\lib\site-packages\six-1.10.0-py3.5.egg\six.py", line 686, in reraise

raise value


 "C:\Users\khairy\AppData\Local\Programs\Python\Python35\lib\site-packages\tweepy-3.6.0-py3.5.egg\tweepy\streaming.py", line 266, in _run

self._read_loop(resp)


 "C:\Users\khairy\AppData\Local\Programs\Python\Python35\lib\site-packages\tweepy-3.6.0-py3.5.egg\tweepy\streaming.py", line 323, in _read_loop

raise TweepError('Expecting length, unexpected value found')
tweepy.error.TweepError: Expecting length, unexpected value found