[PyQt] pyqtdeploy: No '_winapi' module

Phil Thompson phil at riverbankcomputing.com
Mon Nov 26 16:07:56 GMT 2018


On 22 Nov 2018, at 2:01 pm, anton.kustov <anton.kustov at banuba.com> wrote:
> 
> Installed version of Python has this module (checked by calling the
> "help('modules')").
> Python for sysroot is built from sources of v. 3.6.7 (Python-3.6.7.tar.xz)
> by "pyqtdeploy-sysroot" tool. Compiled version has "_winapi" module as well
> (according to output of the "help('modules')" call).
> 
> Here is my "python" section in skeleton.json:
>    "python": {
>        "build_host_from_source": false,
>        "build_target_from_source": true,
>        "source": "Python-3.*.tar.xz"
>    }
> 
> Don't know if that matters but there is a comment in first line of generated
> ".pro" file:
> # Generated for win-32 and Python v3.6.4.
> But my Python version is 3.6.7

You need to update your .pdy file for the version of Python you are actually using. However I don't think this will affect your problem.

> So, how could I miss this "_winapi" module in my application?

Sorry, I can't reproduce the problem.

Phil


More information about the PyQt mailing list