[PyQt] TortoiseHG, newest PyQt4 and Sip error

Sebastian Elsner sebastianelsner at freenet.de
Tue Jul 15 17:07:03 BST 2014


Hello,

I have just upgraded PyQt4, SIP and QScintilla and TortoiseHG to the 
newest versions. But now Tortoise refuses to launch. See below:

   #!python
     ** Mercurial version (3.0.2).  TortoiseHg version 
(3.0.2+153-9ff2ef0f9295)
     ** Command:
     ** CWD: /home/sebels
     ** Encoding: UTF-8
     ** Extensions loaded:
     ** Python version: 2.6.6 (r266:84292, Jan 22 2014, 09:42:36) [GCC 
4.4.7 20120313 (Red Hat 4.4.7-4)]
     ** System: Linux STATION38 2.6.32-431.20.3.el6.x86_64 #1 SMP Thu 
Jun 19 21:14:45 UTC 2014 x86_64
     ** Qt-4.8.5 PyQt-4.11.1 QScintilla-2.8.3
     Traceback (most recent call last):
       File "/usr/local/tortoisehg/tortoisehg/hgqt/run.py", line 50, in 
dispatch
         return _runcatch(u, args)
       File "/usr/local/tortoisehg/tortoisehg/hgqt/run.py", line 229, in 
_runcatch
         return runcommand(ui, args)
       File "/usr/local/tortoisehg/tortoisehg/hgqt/run.py", line 317, in 
runcommand
         return _runcommand(lui, options, cmd, d)
       File "/usr/local/tortoisehg/tortoisehg/hgqt/run.py", line 368, in 
_runcommand
         return checkargs()
       File "/usr/local/tortoisehg/tortoisehg/hgqt/run.py", line 322, in 
checkargs
         return cmdfunc()
       File "/usr/local/tortoisehg/tortoisehg/hgqt/run.py", line 316, in 
<lambda>
         d = lambda: qtrun(checkedfunc, ui, *args, **cmdoptions)
       File "/usr/local/tortoisehg/tortoisehg/hgqt/qtapp.py", line 338, 
in __call__
         dlg, reporoot = self._createdialog(dlgfunc, args, opts)
       File "/usr/local/tortoisehg/tortoisehg/hgqt/qtapp.py", line 402, 
in _createdialog
         return dlgfunc(self._ui, *args, **opts), reporoot
       File 
"/usr/local/lib64/python2.6/site-packages/mercurial/util.py", line 518, 
in check
         return func(*args, **kwargs)
       File "/usr/local/tortoisehg/tortoisehg/hgqt/run.py", line 845, in log
         w = _workbench(ui, *pats, **opts)
       File "/usr/local/tortoisehg/tortoisehg/hgqt/run.py", line 416, in 
_workbench
         w = qtrun.createWorkbench()
       File "/usr/local/tortoisehg/tortoisehg/hgqt/qtapp.py", line 434, 
in createWorkbench
         self._workbench = workbench.Workbench(self._ui, self._repomanager)
       File "/usr/local/tortoisehg/tortoisehg/hgqt/workbench.py", line 
52, in __init__
         self.reporegistry = rr = RepoRegistryView(repomanager, self)
       File "/usr/local/tortoisehg/tortoisehg/hgqt/reporegistry.py", 
line 266, in __init__
         sfile = settingsfilename()
       File "/usr/local/tortoisehg/tortoisehg/hgqt/reporegistry.py", 
line 22, in settingsfilename
         dir = os.path.dirname(unicode(s.fileName()))
     TypeError: 'sip.methoddescriptor' object is not callable


If I add an print sip.methoddescriptor I get:


AttributeError: 'module' object has no attribute 'methoddescriptor'


The sip api for QString seems to be set to version 1. Isn't that 
strange, since "thg" uses "dirname" and other directly....


Regards,

Sebastian



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140715/d6aa34ab/attachment.html>


More information about the PyQt mailing list