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

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

I was experimenting with PyQt6, but can't import the QScintilla library. This despite \
the fact that QScintilla seems to be supported in PyQt6:  [ \
https://pypi.org/project/PyQt6-QScintilla/ | \
https://pypi.org/project/PyQt6-QScintilla/ ] 

I run Python 3.9.12 on Windows 11 and have the following packages installed: 
> pip install pyqt6 
> pip install pyqt6-tools 
> pip install PyQt6-QScintilla 
Importing QScintilla fails: 

> > > import PyQt6 
> > > import PyQt6.QtCore 
> > > PyQt6.QtCore.PYQT_VERSION_STR 
'6.1.0' 
> > > import PyQt6.QtGui 
Traceback (most recent call last): 
File "<stdin>", line 1, in <module> 
ImportError: DLL load failed while importing QtGui: The specified procedure could not \
be found. 
> > > import PyQt6.Qsci 
Traceback (most recent call last): 
File "<stdin>", line 1, in <module> 
ImportError: DLL load failed while importing QtGui: The specified procedure could not \
be found. 


[Attachment #3 (text/html)]

<html><body><div style="font-family: Verdana, Arial, Helvetica, sans-serif; \
font-size: 10pt; color: #000000"><div>I was experimenting with PyQt6, but can't \
import the QScintilla library. This despite the fact that QScintilla seems to be \
supported in PyQt6:<br data-mce-bogus="1"></div><div><a \
href="https://pypi.org/project/PyQt6-QScintilla/">https://pypi.org/project/PyQt6-QScintilla/</a><br \
data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>I run Python 3.9.12 \
on Windows 11 and have the following packages installed:</div><div><pre \
style="background-color: #ffffff; color: #0e1416; font-family: 'Source Code \
Pro',monospace; font-size: 9.0pt;" data-mce-style="background-color: #ffffff; color: \
#0e1416; font-family: 'Source Code Pro',monospace; font-size: 9.0pt;"><span \
style="color: #3a7704; font-style: italic;" data-mce-style="color: #3a7704; \
font-style: italic;">&gt; pip install pyqt6</span><span style="color: #3a7704; \
font-style: italic;" data-mce-style="color: #3a7704; font-style: \
italic;"><br></span><span style="color: #3a7704; font-style: italic;" \
data-mce-style="color: #3a7704; font-style: italic;">&gt; pip install \
pyqt6-tools</span><span style="color: #3a7704; font-style: italic;" \
data-mce-style="color: #3a7704; font-style: italic;"><br></span><span style="color: \
#3a7704; font-style: italic;" data-mce-style="color: #3a7704; font-style: \
italic;">&gt; pip install PyQt6-QScintilla</span></pre></div><div>Importing \
QScintilla fails:<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.1.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;">Traceback (most recent call last):</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;">&nbsp; File "&lt;stdin&gt;", \
line 1, in &lt;module&gt;</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;">ImportError: DLL load failed while importing QtGui: \
The specified procedure could not be found.</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><span style="font-family: courier new, courier, monaco, \
monospace, sans-serif;" data-mce-style="font-family: courier new, courier, monaco, \
monospace, sans-serif;">Traceback (most recent call last):</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;">&nbsp; File "&lt;stdin&gt;", line 1, in &lt;module&gt;</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;">ImportError: DLL load failed while importing QtGui: The specified \
procedure could not be found.</span><br><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