Hello,
I wish to submit a list of installation problems that I have had with
TortoiseHg in the hopes that they might be fixed:
1) The Ubuntu package from launchpad fails with the following message:
{{{
#!python
** Mercurial version (1.9). TortoiseHg version (2.1.1+88-68df62c90b8a)
** Command:
** CWD: /home/daniel/Other/GCC/hg-trunk
** Encoding: UTF-8
** Extensions loaded: mq, rebase, convert, graphlog, hgsubversion,
crecord, kilnauth
** Python version: 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3]
** Qt-4.6.2 PyQt-4.7.2
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/tortoisehg/hgqt/run.py", line 504,
in __call__
from thginithook import thginithook
File "/usr/lib/pymodules/python2.6/mercurial/demandimport.py", line
85, in _demandimport
return _origimport(name, globals, locals, fromlist)
ImportError: No module named thginithook
}}}
So I removed the package and the Mercurial installed via apt-get. I
installed the latest Mercurial from source and tried to run the
TortoiseHg source distribution.
2) The TortoiseHg distribution would benefit from a README file
explaining how to install thg. This should also be included in the
install page of the thg manual:
http://tortoisehg.bitbucket.org/manual/2.1/intro.html#installing-tortoisehg
The way it is today the information is scattered and hard to find. The
only reason I know more or less how to do it is due to the boundless
patience of some people who have explained things to me. At a minimum,
the README should contain at least three things:
1. You don't need to run setup.py, instead just move the thg directory
to its final destination. This bit is currently in the Wiki some place
that I didn't find without help.
2. You also need to change your ~/.hgrc file to add a linke lke:
%include /path/to/tortoisehg/contrib/mergetools.rc
This is the only bit that is currently in the installation page.
3. List of dependencies, including Mercurial dependencies.
There is probably something else missing since I think I've done all of
the above correctly and I still don't have thg working. So whatever I've
missed, should be added as well.
As for my particular case, I have thg 2.1.1 which as far as I can tell
is supposed to work with my Mercurial 1.9:
>>> import mercurial.util
>>> mercurial.util.version()
'1.9'
I also think I have the correct versions of Python and PyQt. But
TortoiseHg dies with the following message:
{{{
#!python
** Mercurial version (1.9). TortoiseHg version (unknown)
** Command:
** CWD: /home/daniel/Other/GCC/hg-trunk
** Extensions loaded: mq, rebase, convert, graphlog, hgsubversion,
crecord, kilnauth
** Python version: 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3]
** Qt-4.6.2 PyQt-4.7.2
Traceback (most recent call last):
File
"/home/daniel/.local/share/hg/tortoisehg-thg-65a385cf4238/tortoisehg/hgqt/run.py",
line 50, in dispatch
return _runcatch(u, args)
File
"/home/daniel/.local/share/hg/tortoisehg-thg-65a385cf4238/tortoisehg/hgqt/run.py",
line 236, in _runcatch
return runcommand(ui, args)
File
"/home/daniel/.local/share/hg/tortoisehg-thg-65a385cf4238/tortoisehg/hgqt/run.py",
line 309, in runcommand
return _runcommand(lui, options, cmd, d)
File
"/home/daniel/.local/share/hg/tortoisehg-thg-65a385cf4238/tortoisehg/hgqt/run.py",
line 360, in _runcommand
return checkargs()
File
"/home/daniel/.local/share/hg/tortoisehg-thg-65a385cf4238/tortoisehg/hgqt/run.py",
line 314, in checkargs
return cmdfunc()
File
"/home/daniel/.local/share/hg/tortoisehg-thg-65a385cf4238/tortoisehg/hgqt/run.py",
line 308, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/usr/local/lib/python2.6/dist-packages/mercurial/util.py", line
385, in check
return func(*args, **kwargs)
File
"/home/daniel/.local/share/hg/tortoisehg-thg-65a385cf4238/tortoisehg/hgqt/run.py",
line 692, in log
from tortoisehg.hgqt.workbench import run
File
"/usr/local/lib/python2.6/dist-packages/mercurial/demandimport.py", line
85, in _demandimport
return _origimport(name, globals, locals, fromlist)
File
"/home/daniel/.local/share/hg/tortoisehg-thg-65a385cf4238/tortoisehg/hgqt/workbench.py",
line 19, in <module>
from tortoisehg.hgqt.repowidget import RepoWidget
File
"/usr/local/lib/python2.6/dist-packages/mercurial/demandimport.py", line
109, in _demandimport
mod = _origimport(name, globals, locals)
File
"/home/daniel/.local/share/hg/tortoisehg-thg-65a385cf4238/tortoisehg/hgqt/repowidget.py",
line 28, in <module>
from tortoisehg.hgqt.revdetails import RevDetailsWidget
File
"/usr/local/lib/python2.6/dist-packages/mercurial/demandimport.py", line
109, in _demandimport
mod = _origimport(name, globals, locals)
File
"/home/daniel/.local/share/hg/tortoisehg-thg-65a385cf4238/tortoisehg/hgqt/revdetails.py",
line 18, in <module>
from tortoisehg.hgqt.fileview import HgFileView
File
"/usr/local/lib/python2.6/dist-packages/mercurial/demandimport.py", line
109, in _demandimport
mod = _origimport(name, globals, locals)
File
"/home/daniel/.local/share/hg/tortoisehg-thg-65a385cf4238/tortoisehg/hgqt/fileview.py",
line 23, in <module>
qsci = Qsci.QsciScintilla
File
"/usr/local/lib/python2.6/dist-packages/mercurial/demandimport.py", line
75, in __getattribute__
self._load()
File
"/usr/local/lib/python2.6/dist-packages/mercurial/demandimport.py", line
47, in _load
mod = _origimport(head, globals, locals)
ImportError: No module named Qsci
}}}
I hope that future versions of TortoiseHg will at least come with a
README file with the correct information. I cannot emphasize this
enough. The most frustrating thing for me was not the fact that it
didn't work, but the fact that the distribution didn't come with
instructions, and secondly, that the installation page on the website
didn't have the necessary information either.
Daniel.
--
I'm not overweight, I'm undertall.
------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide. Store less, Store more with what you own, Move data to
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Tortoisehg-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss