TypeError: invalid result from RepoTreeModel.data(), unable to convert a Python 'unicode' object to a C++ 'QString' instance
Created originally on Bitbucket by Pierre Bousquie
Hi, after updating mercurial + tortoisehg i’m having this Error at startup.
I don’t know why it’s python 2 and not python 3 that is loaded.. and how to force load it.
I’m using it on command line for “hg view”
.hgrc
[extension]
hgk =
[hgk]
path=/usr/bin/thg
$ hg view
qt5ct: using qt5ct plugin
qt5ct: D-Bus global menu: no
Exception UnicodeEncodeError: UnicodeEncodeError('ascii', u'Votre TortoiseHg est \xe0 jour.', 21, 22, 'ordinal not in range(128)') in 'garbage collection' ignored
Fatal Python error: unexpected exception during garbage collection
#!python
** Mercurial version (5.0.2). TortoiseHg version (5.0.2)
** Command:
** CWD: /home/pierre/src/facturation
** Encoding: UTF-8
** Extensions loaded: purge, shelve, rebase, hgk, strip, mq, prompt, extdiff, tortoisehg.util.configitems
** Python version: 2.7.16 (default, Mar 11 2019, 18:59:25) [GCC 8.2.1 20181127]
** System: Linux minibear 5.1.19-1-MANJARO #1 (closed) SMP PREEMPT Sun Jul 21 14:17:15 UTC 2019 x86_64
** Qt-5.13.0 PyQt-5.13.0 QScintilla-2.11.2
TypeError: invalid result from RepoTreeModel.data(), unable to convert a Python 'unicode' object to a C++ 'QString' instance
TypeError: invalid result from RepoTreeModel.data(), unable to convert a Python 'unicode' object to a C++ 'QString' instance