Running PyQt6 with Debug Modules

Johnmichael.Quinlan at idsoftware.com Johnmichael.Quinlan at idsoftware.com
Fri Aug 26 05:24:08 BST 2022


Hi,

I have an application that I need to run in debug that utilizes PyQt6, however, the modules fail to load, it appears I need to build PyQt6 with debug symbols, likely against the Qt debug libraries? I couldn't find any documentation on how to do this and it doesn't appear to be supported in the shipped modules you can download. See the code and images below for details:

Code:

import sys
import PyQt6
from PyQt6.QtWidgets import QApplication, QWidget  # this line fails in the debug console with a no module named PyQt6.QtWidgets

app = QApplication(sys.argv)
q = QWidget()
q.resize(200,200)
q.show()


Python.exe - non debug
[cid:image001.png at 01D8B8D9.C5BF1D00]

However, running the debug python console:

[cid:image002.png at 01D8B8D9.C5BF1D00]

If anyone can help me figure out the steps I would need to build PyQt6 modules that work in debug that would be amazing.

I tried to build pyqt6 with sipbuild from the debug console passing the debug flag however it cant find some modules for sipbuild, so the next thing I was going to try was building sipbuild in debug. It just seems like a bit of mine field without any documentation.

Many thanks
Jm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220826/c6cb284d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 19963 bytes
Desc: image001.png
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220826/c6cb284d/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 12067 bytes
Desc: image002.png
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220826/c6cb284d/attachment-0003.png>


More information about the PyQt mailing list