TortoiseHg doesn't start

Bug #1152912 reported by Geier
176
This bug affects 34 people
Affects Status Importance Assigned to Milestone
tortoisehg (Debian)
Fix Released
Unknown
tortoisehg (Ubuntu)
Fix Released
High
Unassigned
Raring
Fix Released
Undecided
Unassigned

Bug Description

[Impact]
The Tortoise HG application doesn't start in raring ringtail (13.04). This is due to wrong version comparison where Qt 4.10 (included in Raring) appeared < Qt 4.6 required by the package. TortoiseHG 2.8 includes the fix.

[Test Case]
Execute command `thg`.
Expected: Application "TortoiseHG Workbench" starts
What happens: Nothing.

There are no errors in the console window, the application just stops.

$ apt-cache policy tortoisehg
tortoisehg:
  Installiert: 2.4-2
  Installationskandidat: 2.4-2
  Versionstabelle:
 *** 2.4-2 0
        500 http://de.archive.ubuntu.com/ubuntu/ raring/universe amd64 Packages
        100 /var/lib/dpkg/status

[Regression Potential]
Because 2.4-2 never worked in Raring, there is no regression in this version. Regarding changes from previous Ubuntu release, this version of application is more stable and mature release, which is also suits best the version of Mercurial shipped with Ubuntu.

Revision history for this message
Kostya Vasilyev (kmansoft) wrote :

Same here. Ubuntu 12.10 upgraded to 13.04 beta.

Also tried more recent mercurial / thg from https://launchpad.net/~tortoisehg-ppa, didn't make any difference.

Curiously enough, commands that don't launch a GUI -- "thg version", "thg help" -- work fine. Trying to launch the GUI fails.

Attaching the output of "strace thg" and "python -v /usr/bin/thg", hoping it might be useful.

Revision history for this message
Kostya Vasilyev (kmansoft) wrote :

Diagnosed the issue:

Caused by a dependency check for Qt 4.6 and PyQt 4.7 in tortoisehg/hgqt/qtlib.py.

if PYQT_VERSION_STR.split('.') < ['4', '7'] or \
   QT_VERSION_STR.split('.') < ['4', '6']:
    sys.stderr.write('TortoiseHg requires Qt 4.6 and PyQt 4.7\n')
    sys.stderr.write('You have Qt %s and PyQt %s\n' %
                     (QT_VERSION_STR, PYQT_VERSION_STR))
    sys.exit()

The "sys.stderr.write" lines above don't produce any output even when running from the command line... (?)

Upstream issue: https://bitbucket.org/tortoisehg/thg/issue/2467

Changed in tortoisehg (Debian):
status: Unknown → Confirmed
Revision history for this message
Halverneus (halverneus) wrote :

I can confirm kmansoft's diagnosis:

In /usr/lib/python2.7/dist-packages/tortoisehg/hgqt/
I renamed qtlib.pyc -> qtlib.pyc.backup
I backed up qtlib.py -> qtlib.py.backup
I commented out lines 27-32 and was able to start and use TortoiseHg normally.

(Not the recommended fix, but it served my immediate needs.)
Thank you, kmansoft!

Running Kubuntu 13.04 Beta 1 with updates current as of 20MAR2013 inside VirtualBox.

Revision history for this message
razor7 (ghiamar) wrote :

Great, this official patch solves the issue https://bitbucket.org/tortoisehg/thg/commits/e571f9b3eadc

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in tortoisehg (Ubuntu):
status: New → Confirmed
OmniUni (omniuni)
tags: added: raring
Logan Rosen (logan)
Changed in tortoisehg (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → High
Revision history for this message
Airlangga Cahya Utama (airlangga.cahya) wrote :

Upstream tortoisehg already fixed at version 2.7.2 https://bitbucket.org/tortoisehg/thg/wiki/ReleaseNotes#!bug-fixes
Raring version of tortoisehg is non usable at all....

Revision history for this message
Kostya Vasilyev (kmansoft) wrote :

FWIW -- I've been running TortoiseHG and Mercurial from these PPAs, they need to be installed together (thg requires a certain range of hg verisons)...

https://launchpad.net/~tortoisehg-ppa/+archive/stable-snapshots

https://launchpad.net/~mercurial-ppa/+archive/stable-snapshots

There are no "raring" versions, but the ones for "quantal" have been working just fine for me.

Changed in tortoisehg (Debian):
status: Confirmed → Fix Released
Revision history for this message
anatoly techtonik (techtonik) wrote :

How to raise priority for this bug in Ubuntu? What is the process to officialy fix this?

Revision history for this message
anatoly techtonik (techtonik) wrote :

Added a sync request #1188397. Just in case.

Revision history for this message
anatoly techtonik (techtonik) wrote :

Sync request in bug 1188397.

Revision history for this message
anatoly techtonik (techtonik) wrote :

Can anybody raise the pririty of this bug to critical for https://wiki.ubuntu.com/StableReleaseUpdates ?

description: updated
Revision history for this message
Logan Rosen (logan) wrote :

This bug was fixed in Saucy with 2.8-1.

Changed in tortoisehg (Ubuntu):
status: Triaged → Fix Released
Julian Taylor (jtaylor)
Changed in tortoisehg (Ubuntu Raring):
assignee: nobody → Julian Taylor (jtaylor)
Revision history for this message
Julian Taylor (jtaylor) wrote :

I have uploaded a fix to raring-proposed
please test it when it has been accepted, the release team will post instructions on how to do that.

Changed in tortoisehg (Ubuntu Raring):
assignee: Julian Taylor (jtaylor) → nobody
status: New → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Geier, or anyone else affected,

Accepted tortoisehg into raring-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/tortoisehg/2.4-2ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Revision history for this message
anatoly techtonik (techtonik) wrote :

Proposed package works. Thanks.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Colin Watson (cjwatson) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package tortoisehg - 2.4-2ubuntu0.1

---------------
tortoisehg (2.4-2ubuntu0.1) raring-proposed; urgency=low

  * pyqt4.10.patch: fix startup under PyQt 4.10 (LP: #1152912)
 -- Julian Taylor <email address hidden> Mon, 10 Jun 2013 21:45:59 +0200

Changed in tortoisehg (Ubuntu Raring):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.