Running PyQt6 with Debug Modules
Florian Bruhin
me at the-compiler.org
Fri Aug 26 11:06:39 BST 2022
Hey,
On Fri, Aug 26, 2022 at 04:24:08AM +0000, Johnmichael.Quinlan at idsoftware.com wrote:
> 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:
>
> [...]
>
> If anyone can help me figure out the steps I would need to build PyQt6 modules that work in debug that would be amazing.
As far as I know, you don't need to have a debug Qt/PyQt to use it with
a debug Python. It looks like you simply have two separate installs of
Python, and only have PyQt installed in one of them.
If you run your python_d.exe with the -v flag, it will show you where
it's trying to find modules you are importing. If you compare those
paths to the python.exe ones, that should give you an idea of what's
missing.
> 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.
How to build PyQt6 from source is documented pretty well:
https://www.riverbankcomputing.com/static/Docs/PyQt6/installation.html#building-and-installing-from-source
Florian
--
me at the-compiler.org | https://www.qutebrowser.org
https://bruhin.software/ | https://github.com/sponsors/The-Compiler/
GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220826/cfb92af7/attachment.sig>
More information about the PyQt
mailing list