hgview will not start

Bug #1748925 reported by Ethan Blanton
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
hgview (Debian)
Fix Released
Unknown
hgview (Ubuntu)
Invalid
Low
Unassigned

Bug Description

When trying to start hgview 1.9.0-1.1 on Artful, it fails to start with the following message:

Traceback (most recent call last):
  File "/usr/bin/hgview", line 38, in <module>
    main()
  File "/usr/lib/python2.7/dist-packages/hgviewlib/application.py", line 226, in main
    sys.exit(start(repo, opts, args, parser.error))
  File "/usr/lib/python2.7/dist-packages/hgviewlib/application.py", line 174, in start
    app = Application(repo, opts, args)
  File "/usr/lib/python2.7/dist-packages/hgviewlib/qt4/application.py", line 54, in __init__
    super(HgViewQtApplication, self).__init__(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgviewlib/application.py", line 84, in __init__
    self.choose_viewer()
  File "/usr/lib/python2.7/dist-packages/hgviewlib/application.py", line 108, in choose_viewer
    viewer = self.HgRepoViewer(self.repo)
  File "/usr/lib/python2.7/dist-packages/hgviewlib/qt4/hgrepoviewer.py", line 106, in __init__
    self._repodate = self._getrepomtime()
  File "/usr/lib/python2.7/dist-packages/hgviewlib/qt4/hgrepoviewer.py", line 623, in _getrepomtime
    for l in (self.repo.sjoin('lock'), self.repo.join('wlock')):

This appears to affect all repositories.
---
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
DistroRelease: Ubuntu 17.10
InstallationDate: Installed on 2015-06-04 (983 days ago)
InstallationMedia: Lubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
Package: hgview 1.9.0-1.1
PackageArchitecture: all
ProcVersionSignature: Ubuntu 4.13.0-32.35-generic 4.13.13
Tags: artful
Uname: Linux 4.13.0-32-generic x86_64
UpgradeStatus: Upgraded to artful on 2017-11-09 (94 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare scanner sudo
_MarkForUpload: True

Revision history for this message
Ethan Blanton (eblanton) wrote : Dependencies.txt

apport information

tags: added: apport-collected artful
description: updated
Revision history for this message
Ethan Blanton (eblanton) wrote : JournalErrors.txt

apport information

Revision history for this message
Ethan Blanton (eblanton) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Ethan Blanton (eblanton) wrote : ProcEnviron.txt

apport information

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for taking your time to report this issue and help making Ubuntu better.

I haven't verified this issue myself, but I did find a corresponding bug report in Debian with the same traceback.

Changed in hgview (Ubuntu):
status: New → Confirmed
Changed in hgview (Debian):
status: Unknown → Confirmed
Revision history for this message
Arthur Lutz (Logilab) (arthur-lutz-logilab) wrote :

Hi Ethan, thanks for reporting this bug and using hgview. I believe a fix has been pushed upstream https://hg.logilab.org/review/hgview but has not yet been published or arrived in debian / ubuntu. Would you be willing to try out an install from source to confirm this ? I've notified the maintainers of hgview to encourage them to push this update where it need to be pushed.

Revision history for this message
Ethan Blanton (eblanton) wrote :

I would. I assume this is the fix: https://hg.logilab.org/review/hgview/rev/cb30615c7174

I will try 1.10.0 later today; I assume Ubuntu would pull just that patch to 1.9.0, I will also try to check that.

Revision history for this message
Ethan Blanton (eblanton) wrote :

Both 1.10.0 and 1.9.0 + revision cb30615c7174 work here.

Revision history for this message
dino99 (9d9) wrote :

Needs an upstream/ubuntu upgrade for Bionic
 https://www.logilab.org/ticket/10126859

tags: added: bionic upgrade-software-version
Revision history for this message
Tobias Groll (gibot) wrote :

With the actual version from the upstream repository I get still the following error:

Traceback (most recent call last):
  File "/usr/local/bin/hgview", line 36, in <module>
    from hgviewlib.application import main
  File "/usr/local/lib/python2.7/dist-packages/hgviewlib/application.py", line 27, in <module>
    from hgviewlib.util import find_repository, rootpath, build_repo
  File "/usr/local/lib/python2.7/dist-packages/hgviewlib/util.py", line 23, in <module>
    from mercurial.util import binay # noqa
ImportError: cannot import name binay

I have fixed this by adding an r to the word binay in line 23 in /usr/local/lib/python2.7/dist-packages/hgviewlib/util.py so this line is now:
 from mercurial.util import binary # noqa

Revision history for this message
Steffen Hemer (s-hemer) wrote :

I can confirm that building the Debian package from the upstream repo with the fix Tobias mentioned work perfectly fine on Bionic.

Changed in hgview (Debian):
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

Closing since the package is removed from Ubuntu

Changed in hgview (Ubuntu):
importance: Undecided → Low
status: Confirmed → Invalid
Revision history for this message
Steffen Hemer (s-hemer) wrote :

But it is still available in bionic and it was not working ever since although it would be just adding the simple fix!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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