tortoisehg 6.2.2 on Ubuntu bionic

13 views
Skip to first unread message

Sebastian Unger

unread,
Sep 17, 2022, 11:46:06 PM9/17/22
to TortoiseHg Developers
Not sure if this is the right place. If not, please feel free to redirect me.

I'm trying to build packages of tortoisehg 6.2.2 for use on Ubuntu bionic.

I essentially started out with the vanilla tar-ball added in the packaging from later versions of Ubuntu and then had to make some tweaks to the debian control files to get the package to build on bionic.

The resulting binary package installs just fine, but when I start tortoisehg, I get this:

Traceback (most recent call last):
  File "/usr/lib/python3.6/dist-packages/tortoisehg/hgqt/run.py", line 139, in dispatch
    return _runcatch(u, args)
  File "/usr/lib/python3.6/dist-packages/tortoisehg/hgqt/run.py", line 347, in _runcatch
    return runcommand(ui, args)
  File "/usr/lib/python3.6/dist-packages/tortoisehg/hgqt/run.py", line 441, in runcommand
    return _runcommand(lui, options, cmd, d)
  File "/usr/lib/python3.6/dist-packages/tortoisehg/hgqt/run.py", line 493, in _runcommand
    return checkargs()
  File "/usr/lib/python3.6/dist-packages/tortoisehg/hgqt/run.py", line 446, in checkargs
    return cmdfunc()
  File "/usr/lib/python3.6/dist-packages/tortoisehg/hgqt/run.py", line 440, in <lambda>
    **pycompat.strkwargs(cmdoptions))
  File "/usr/lib/python3.6/dist-packages/tortoisehg/hgqt/qtapp.py", line 428, in __call__
    QSettings.setDefaultFormat(QSettings.Format.IniFormat)
AttributeError: type object 'Format' has no attribute 'IniFormat'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/thg", line 163, in <module>
    tortoisehg.hgqt.run.run()
  File "/usr/lib/python3.6/dist-packages/tortoisehg/hgqt/run.py", line 89, in run
    sys.exit(dispatch(argv))
  File "/usr/lib/python3.6/dist-packages/tortoisehg/hgqt/run.py", line 149, in dispatch
    qtapp.earlyBugReport(e)
  File "/usr/lib/python3.6/dist-packages/tortoisehg/hgqt/qtapp.py", line 129, in earlyBugReport
    dlg = bugreport.BugReport(opts)
  File "/usr/lib/python3.6/dist-packages/tortoisehg/hgqt/bugreport.py", line 86, in __init__
    tb.setHtml('<pre>' + qtlib.htmlescape(self.text, False) + '</pre>')
  File "/usr/lib/python3.6/importlib/util.py", line 233, in __getattribute__
    self.__spec__.loader.exec_module(self)
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.6/dist-packages/tortoisehg/hgqt/qtlib.py", line 827, in <module>
    def CommonMsgBox(icon, title, main, text='', buttons=QMessageBox.StandardButton.Ok,
AttributeError: type object 'StandardButton' has no attribute 'Ok'

Any ideas?

Cheers,
Seb

Yuya Nishihara

unread,
Sep 18, 2022, 7:23:36 AM9/18/22
to Sebastian Unger, thg...@googlegroups.com
On Sat, 17 Sep 2022 14:40:54 -0700 (PDT), Sebastian Unger wrote:
> I'm trying to build packages of tortoisehg 6.2.2 for use on Ubuntu bionic.
>
> QSettings.setDefaultFormat(QSettings.Format.IniFormat)AttributeError: type
> object 'Format' has no attribute 'IniFormat'During handling of the above

PyQt 5.10 is no longer supported. Maybe you can try tortoisehg 6.1.x, which
should be compatible with older PyQt versions.
Reply all
Reply to author
Forward
0 new messages