Package: python3-powerline
Version: 2.7-3
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Dear Maintainer,
as of ipython3 (>= 7) integration with powerline is broken:
ipython3
Python 3.8.2 (default, Feb 25 2020, 13:04:52)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.13.0 -- An enhanced Interactive Python. Type '?' for help.
Traceback (most recent call last):
File "/usr/bin/ipython3", line 11, in <module>
load_entry_point('ipython==7.13.0', 'console_scripts', 'ipython3')()
File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 126, in
start_ipython
return launch_new_instance(argv=argv, **kwargs)
File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line
664, in launch_instance
app.start()
File "/usr/lib/python3/dist-packages/IPython/terminal/ipapp.py", line 356,
in start
self.shell.mainloop()
File "/usr/lib/python3/dist-packages/IPython/terminal/interactiveshell.py",
line 558, in mainloop
self.interact()
File "/usr/lib/python3/dist-packages/IPython/terminal/interactiveshell.py",
line 541, in interact
code = self.prompt_for_code()
File "/usr/lib/python3/dist-packages/IPython/terminal/interactiveshell.py",
line 467, in prompt_for_code
text = self.pt_app.prompt(
File "/usr/lib/python3/dist-packages/prompt_toolkit/shortcuts/prompt.py",
line 797, in prompt
return run_sync()
File "/usr/lib/python3/dist-packages/prompt_toolkit/shortcuts/prompt.py",
line 786, in run_sync
return self.app.run(inputhook=self.inputhook, pre_run=pre_run2)
File
"/usr/lib/python3/dist-packages/prompt_toolkit/application/application.py",
line 736, in run
return run()
File
"/usr/lib/python3/dist-packages/prompt_toolkit/application/application.py",
line 710, in run
return f.result()
File "/usr/lib/python3/dist-packages/prompt_toolkit/eventloop/future.py",
line 151, in result
raise self._exception
File
"/usr/lib/python3/dist-packages/prompt_toolkit/eventloop/coroutine.py", line
92, in step_next
new_f = coroutine.throw(exc)
File
"/usr/lib/python3/dist-packages/prompt_toolkit/application/application.py",
line 685, in _run_async2
result = yield f
File
"/usr/lib/python3/dist-packages/prompt_toolkit/eventloop/coroutine.py", line
88, in step_next
new_f = coroutine.send(None)
File
"/usr/lib/python3/dist-packages/prompt_toolkit/application/application.py",
line 628, in _run_async
self._redraw()
File
"/usr/lib/python3/dist-packages/prompt_toolkit/application/application.py",
line 471, in _redraw
self.renderer.render(self, self.layout)
File "/usr/lib/python3/dist-packages/prompt_toolkit/renderer.py", line 567,
in render
if (self.style.invalidation_hash() != self._last_style_hash or
File "/usr/lib/python3/dist-packages/prompt_toolkit/styles/style.py", line
381, in invalidation_hash
return tuple(s.invalidation_hash() for s in self.styles)
File "/usr/lib/python3/dist-packages/prompt_toolkit/styles/style.py", line
381, in <genexpr>
return tuple(s.invalidation_hash() for s in self.styles)
File "/usr/lib/python3/dist-packages/prompt_toolkit/styles/base.py", line
142, in invalidation_hash
return (self.get_style() or self._dummy).invalidation_hash()
File "/usr/lib/python3/dist-packages/prompt_toolkit/styles/base.py", line
142, in invalidation_hash
return (self.get_style() or self._dummy).invalidation_hash()
File "/usr/lib/python3/dist-packages/prompt_toolkit/styles/base.py", line
142, in invalidation_hash
return (self.get_style() or self._dummy).invalidation_hash()
File
"/usr/lib/python3/dist-packages/powerline/renderers/ipython/since_5.py", line
79, in invalidation_hash
return super(PowerlinePromptStyle, self).invalidation_hash() + 1
TypeError: can only concatenate tuple (not "int") to tuple
If you suspect this is an IPython 7.13.0 bug, please report it at:
https://github.com/ipython/ipython/issues
or send an email to the mailing list at [email protected]
You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.
Upstream has a fix available, but no release has been made yet:
https://github.com/powerline/powerline/blob/develop/powerline/bindings/ipython/since_7.py
- -- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf
Kernel: Linux 5.4.0-2-amd64 (SMP w/2 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-powerline depends on:
ii python3 3.7.5-3
ii python3-psutil 5.6.7-2
python3-powerline recommends no packages.
Versions of packages python3-powerline suggests:
pn powerline-doc <none>
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
iQFFBAEBCgAvFiEEqVSlRXW87UkkCnJc/9PIi5l90WoFAl5t5XMRHGZsYWRpQGRl
Ymlhbi5vcmcACgkQ/9PIi5l90WoQrgf+MzN+Pb2mZ94hjU6MarQGCCHlrEuG310x
aEt3QEMb278rfxLaX2BtNOO7JMq3YGT0uYLcQWmBFQxT+J6OoDqeLubJ6f/WeQWR
QJ0dXZxN1By6QHZksMjSh2w3IlJFJtPX9fJQEocOat+X7DsjPxWGP7274hecsYTO
jD/rUEcKpPt/2eyGP7uf3sREzfMhihFoT6f6MOXf8Ihd9Kgy+IuYKoV4P53p/EBa
qEiURq9ciU1F6OC5OWL1/la3V+yEShcRBSp0trPz2UlYwsIokiujzrRWDiALCaEo
FqxDJguH3k9coCvV/cwzfLv/bxjLpa4Yrnb9wRZX5j5mH/qBF0fKaQ==
=bsCG
-----END PGP SIGNATURE-----