[PyQt] Inconsistent behavior of PyQt5 QSciLexerCustom constructor across platforms

Scott Kitterman debian at kitterman.com
Fri Nov 14 13:17:31 GMT 2014


On Thursday, November 13, 2014 23:33:30 Scott Kitterman wrote:
> On Thursday, November 13, 2014 23:16:08 Dominique Cyprès wrote:
> > After a recent update of my system to Xubuntu 12.10, I have noticed
> > unusual behavior in the QSciLexerCustom constructor for PyQt5. Some
> > simple example code for the class:
> > 
> > http://pastebin.com/kXC3eW1Q
> > 
> > worked just fine before the update, and continues to work fine on a
> > Windows XP VM using PyQt GPL v5.3.2 for Python v3.4, but now produces
> > the following traceback on my primary development system:
> > 
> > Traceback (most recent call last):
> >    File "lexer.py", line 105, in <module>
> >    
> >      win = MainWindow()
> >    
> >    File "lexer.py", line 19, in __init__
> >    
> >      self.lexer = CustomLexer(self.editor)
> >    
> >    File "lexer.py", line 26, in __init__
> >    
> >      Qsci.QsciLexerCustom.__init__(self, parent)
> > 
> > TypeError: QsciLexerCustom(QObject parent=None): argument 1 has
> > unexpected type 'QsciScintilla'
> > 
> > My package manager reports the PyQt5 version as 5.3.2+dfsg-1ubuntu1 and
> > the PyQt5.Qsci version as 2.8.3+dfsg-3. Both are the latest available
> > version available from the distro repository. I'm not sure if this is a
> > problem with packaging, something non-standard in the code I'm running,
> > or something else.
> 
> This sounds like https://bugs.launchpad.net/bugs/1383300
> 
> If I can get the information requested in the bug, I should be able to get
> this fixed.

Actually, I meant 
https://bugs.launchpad.net/ubuntu/+source/qscintilla2/+bug/1391056 and it has 
the information I need to move forward on this, so I'll work on a fix.

Scott K


More information about the PyQt mailing list