[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Cannot import QScintilla (part 2)
From:       kristof.mulier () telenet ! be
Date:       2022-05-03 14:21:44
Message-ID: 24360190.15606137.1651587704769.JavaMail.zimbra () telenet ! be
[Download RAW message or body]

I found the reason for the QScintilla import failure. 

It seems that installing the PyQt6 tools downgrades the PyQt6 version nr. If I do \
only this: 

> pip install pyqt6 

I get version '6.3.0'. However, if I also install the PyQt6 tools: 

> pip install pyqt6-tools 

the version of PyQt6 is downgraded to '6.1.0'. So this time, I did NOT install the \
PyQt6 tools and kept my PyQt6 installation at version '6.3.0'. Now the import of \
QScintilla works: 

> > > import PyQt6 
> > > import PyQt6.QtCore 
> > > PyQt6.QtCore.PYQT_VERSION_STR 
'6.3.0' 
> > > import PyQt6.QtGui 
> > > import PyQt6.Qsci 


[Attachment #3 (text/html)]

<html><body><div style="font-family: Verdana, Arial, Helvetica, sans-serif; \
font-size: 10pt; color: #000000"><div>I found the reason for the QScintilla import \
failure.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>It seems \
that installing the PyQt6 tools downgrades the PyQt6 version nr. If I do only \
this:<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><span \
style="font-family: courier new, courier, monaco, monospace, sans-serif;" \
data-mce-style="font-family: courier new, courier, monaco, monospace, \
sans-serif;">&gt; pip install pyqt6</span><br data-mce-bogus="1"></div><div><br \
data-mce-bogus="1"></div><div>I get version '6.3.0'. However, if I also install the \
PyQt6 tools:<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><span \
style="font-family: courier new, courier, monaco, monospace, sans-serif;" \
data-mce-style="font-family: courier new, courier, monaco, monospace, \
sans-serif;">&gt; pip install pyqt6-tools</span><br data-mce-bogus="1"></div><div><br \
data-mce-bogus="1"></div><div>the version of PyQt6 is downgraded to '6.1.0'. So this \
time, I did NOT install the PyQt6 tools and kept my PyQt6 installation at version \
'6.3.0'. Now the import of QScintilla works:<br data-mce-bogus="1"></div><div><br \
data-mce-bogus="1"></div><div><span style="font-family: courier new, courier, monaco, \
monospace, sans-serif;" data-mce-style="font-family: courier new, courier, monaco, \
monospace, sans-serif;">&gt;&gt;&gt; import PyQt6</span><br><span style="font-family: \
courier new, courier, monaco, monospace, sans-serif;" data-mce-style="font-family: \
courier new, courier, monaco, monospace, sans-serif;">&gt;&gt;&gt; import \
PyQt6.QtCore</span><br><span style="font-family: courier new, courier, monaco, \
monospace, sans-serif;" data-mce-style="font-family: courier new, courier, monaco, \
monospace, sans-serif;">&gt;&gt;&gt; PyQt6.QtCore.PYQT_VERSION_STR</span><br><span \
style="font-family: courier new, courier, monaco, monospace, sans-serif;" \
data-mce-style="font-family: courier new, courier, monaco, monospace, \
sans-serif;">'6.3.0'</span><br><span style="font-family: courier new, courier, \
monaco, monospace, sans-serif;" data-mce-style="font-family: courier new, courier, \
monaco, monospace, sans-serif;">&gt;&gt;&gt; import PyQt6.QtGui</span><br><span \
style="font-family: courier new, courier, monaco, monospace, sans-serif;" \
data-mce-style="font-family: courier new, courier, monaco, monospace, \
sans-serif;">&gt;&gt;&gt; import PyQt6.Qsci</span><br \
data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br \
data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br \
data-mce-bogus="1"></div></div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic