tortoisehg issues

Steve Borho steve at borho.org
Thu Oct 15 12:15:40 CDT 2009


On Thu, Oct 15, 2009 at 12:07 PM, Neal Becker <ndbecker2 at gmail.com> wrote:
> Just tried latest tortoisehg dev on linux.  I did:
> python setup.py build
> sudo python setup.py install

This was the root cause, for future reference.  We prefer you use one
of two install methods:

1) a binary package
2) run directly out of a clone

When you install by setup.py, it creates a tortoisehg/util/config.py
file that guesses where things are going to be installed.  In your
case, it guessed wrong.

> Problem 1:
>  hgtk log
> [nbecker at nbecker1 mod]$ icon not found menulog.ico
> icon not found menupatch.ico
> icon not found hg.ico
> icon not found menulog.ico
> icon not found menucommit.ico
> icon not found menurepobrowse.ico
> icon not found general.ico
> icon not found proxy.ico
> icon not found shelve.ico
> icon not found menusynch.ico
> icon not found settings_repo.ico
>
> Icons all got installed:
> running install_data
> copying icons/settings_repo.ico -> /usr/share/pixmaps/tortoisehg/icons
> copying icons/ignore.ico -> /usr/share/pixmaps/tortoisehg/icons
> ...

Find where tortoisehg/util/config.py was installed and update icon_path

> Problem 2:
> hgtk about gives:
>
> {{{
> #!python
> ** Please report this bug to http://bitbucket.org/tortoisehg/stable/issues
> or tortoisehg-discuss at lists.sourceforge.net
> ** Mercurial version (1.3.1).  TortoiseHg version (74061568b17f)
> ** Command: about
> ** CWD: /home/nbecker/raysat/mod
> ** Extensions loaded: mq, hgk, transplant, extdiff, convert, record,
> graphlog, highlight, rebase, rdiff, Artemis, purge
> Traceback (most recent call last):
>  File "/usr/lib/python2.6/site-packages/tortoisehg/hgtk/hgtk.py", line 53,
> in dispatch
>    return _runcatch(u, args)
>  File "/usr/lib/python2.6/site-packages/tortoisehg/hgtk/hgtk.py", line 177,
> in _runcatch
>    return runcommand(ui, args)
>  File "/usr/lib/python2.6/site-packages/tortoisehg/hgtk/hgtk.py", line 243,
> in runcommand
>    return func(ui, *args, **cmdoptions)
>  File "/usr/lib/python2.6/site-packages/tortoisehg/hgtk/hgtk.py", line 280,
> in about
>    gtkrun(run, ui, *pats, **opts)
>  File "/usr/lib/python2.6/site-packages/tortoisehg/hgtk/hgtk.py", line 259,
> in gtkrun
>    win = dlgfunc(ui, *args, **opts)
>  File "/usr/lib/python2.6/site-packages/tortoisehg/hgtk/about.py", line 94,
> in run
>    return AboutDialog()
>  File "/usr/lib/python2.6/site-packages/tortoisehg/hgtk/about.py", line 86,
> in __init__
>    self.set_logo(gtk.gdk.pixbuf_new_from_file(thg_logo))
> TypeError: pixbuf_new_from_file() argument 1 must be string, not None
>
> }}}

This is actually the same issue, with less friendly results.

--
Steve Borho



More information about the Mercurial mailing list