pyqtdeploy: sip API version mismatch

Patrick Stinson patrickkidd at gmail.com
Mon Oct 24 20:18:04 BST 2022


Maybe it would be easier to just get the latest versions and necessary
.toml values to build a pyqtdeploy project compatible with latest open
source releases of PyQt5-5.15.*, Qt-5.15.*, Python-3.*? I assume that would
include values in:

- local python environment
- sysroot.toml
- my_custom_extension.toml

FWIW, the goal of my pyqtdeploy-demo project in the recent email thread was
to work out a minimal reproducible example to reference for these sorts of
problems, but it is stuck on the two outstanding questions from Oct 17.

Cheers,
-Patrick

On Mon, Oct 24, 2022 at 11:02 AM Patrick Stinson <patrickkidd at gmail.com>
wrote:

> With sip-5.5.0 in my python env, which requires < python 3.10
> PyQt-5.15.2 and sip abi-version "12.8" in the toml's, I'm getting this for
> pyqtdeploy-sysroot:
>
> Generating the _pkdiagram bindings...
>
> sip-build:
> /Users/patrick/dev/familydiagram/.venv/lib/python3.9/site-packages/PyQt5/bindings/QtCore/QtCoremod.sip:23:
> syntax error
>
>
>
> Cheers,
>
> -Patrick
>
> On Mon, Oct 24, 2022 at 7:50 AM Patrick Stinson <patrickkidd at gmail.com>
> wrote:
>
>> Ah gotcha. I’ll give that a shot.
>>
>> I was trying to build with 12.11 but was getting a crash at exit when
>> importing both a pure sip and a PyQt-builder extension in the same app exe.
>> So this is an attempt to revert the sip version to see if that fixes it.
>>
>> On Mon, Oct 24, 2022 at 7:25 AM Phil Thompson <
>> phil at riverbankcomputing.com> wrote:
>>
>>> On 24/10/2022 16:09, Patrick Stinson wrote:
>>> > I'm getting the following error when loading the pyqtdeploy project
>>> > defined
>>> > by the attached files. The sip extension modules specify 12.8. How can
>>> > I
>>> > get PyQt5 to use 12.8 instead of 12.11 in the sysroot?
>>>
>>> Build PyQt5 with a version of SIP for which 12.8 was current - which I
>>> think was SIP v5.
>>>
>>> > RuntimeError: the sip module implements API v12.0 to v12.8 but the
>>> > PyQt5.QtCore module requires API v12.11
>>>
>>> Phil
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20221024/c434fb9e/attachment.htm>


More information about the PyQt mailing list