UnicodeDecodeError when using annotate - "_onAnnotateFinished"
Hi,
I am trying to provide a tortoisehg package for Ubuntu 20.04 LTS. (https://github.com/glaure/tortoisehg4ubuntu)
When using annotate I am getting errors like these:
#!python
** Mercurial version (5.8.1). TortoiseHg version (5.8.1+14-ae5c8b95d2ae)
** Command:
** CWD: /home/glaure/Development/SW_APP
** Encoding: UTF-8
** Extensions loaded: tortoisehg.util.configitems
** Python version: 3.8.10 (default, Jun 2 2021, 10:49:15) [GCC 9.4.0]
** System: Linux HARR 5.11.0-25-generic #27~20.04.1-Ubuntu SMP Tue Jul 13 17:41:23 UTC 2021 x86_64
** Qt-5.15.2 PyQt-5.15.4 QScintilla-2.13.0
Traceback (most recent call last):
File "/usr/bin/tortoisehg/hgqt/fileview.py", line 1124, in _onAnnotateFinished
data = util.pickle.loads(bytes(sess.readAll()))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 44: ordinal not in range(128)
Or:
#!python
** Mercurial version (5.8.1). TortoiseHg version (5.8.1+14-ae5c8b95d2ae)
** Command:
** CWD: /home/glaure/Development/SW_APP
** Encoding: UTF-8
** Extensions loaded: tortoisehg.util.configitems
** Python version: 3.8.10 (default, Jun 2 2021, 10:49:15) [GCC 9.4.0]
** System: Linux HARR 5.11.0-25-generic #27~20.04.1-Ubuntu SMP Tue Jul 13 17:41:23 UTC 2021 x86_64
** Qt-5.15.2 PyQt-5.15.4 QScintilla-2.13.0
Traceback (most recent call last):
File "/usr/bin/tortoisehg/hgqt/fileview.py", line 1127, in _onAnnotateFinished
for l in data[0][b'lines']:
KeyError: b'lines'
All originating from _onAnnotateFinished.
The current package is build from tortoisehg 5.8.1. The Mercurial dependency is fullfilled using pypi:
pip3 install pyqt5
pip3 install mercurial==5.8.1
pip3 install qscintilla
The package has a number of issues, but the one from annotate is the most annoying one. (Still better than no thg on Ubuntu 20.04)
Anyone has a tip for me how to solve this?
Best Regards, Gunther