Package: python-powerline
Version: 0~20140216-1

Dear Maintainer,

I tried to follow the instructions on
https://powerline.readthedocs.org/en/latest/usage/shell-prompts.html#zsh-prompt

To test powerline before adding it to my .zshrc, I sourced
/usr/share/pyshared/powerline/bindings/zsh/powerline.zsh in a running
zsh. What I always got instead of the prompt is the following python
traceback, even with a completely unconfigured zsh:

~ → exec zsh -f
nemo2% . /usr/share/pyshared/powerline/bindings/zsh/powerline.zsh
2014-08-14 23:40:36,841:ERROR:shell:powerline:Failed to render: coercing to 
Unicode: need string or buffer, instancemethod found
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/powerline/__init__.py", line 435, in 
render
    return self.renderer.render(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/powerline/renderers/zsh_prompt.py", 
line 38, in render
    *args, **kwargs
  File "/usr/lib/python2.7/dist-packages/powerline/renderer.py", line 208, in 
render
    segments = [self._get_highlighting(segment, mode) for segment in segments
  File "/usr/lib/python2.7/dist-packages/powerline/theme.py", line 120, in 
get_segments
    segment['contents'] = segment['before'] + u(segment['contents'] if 
segment['contents'] is not None else '') + segment['after']
  File "/usr/lib/python2.7/dist-packages/powerline/lib/unicode.py", line 13, in 
u
    return unicode(s, 'utf-8')
TypeError: coercing to Unicode: need string or buffer, instancemethod found
coercing to Unicode: need string or buffer, instancemethod found

My terminal is an uxterm with the following additional characteristics:

TERM=xterm-256color
COLORTERM=yes
LANG=en_DK.UTF-8
LANGUAGE=en_GB:en

The above happened with uxterm from Wheezy and zsh running on Sid via
SSH.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (900, 'testing'), (899, 
'testing-proposed-updates'), (600, 'stable'), (500, 'proposed-updates'), (200, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.15-trunk-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-powerline depends on:
ii  python-psutil  2.1.1-1+b1
pn  python:any     <none>

python-powerline recommends no packages.

Versions of packages python-powerline suggests:
pn  python-powerline-doc  <none>

-- no debconf information


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to