[PyQt] pyqtdeploy-sysroot error

Phil Thompson phil at riverbankcomputing.com
Sat Sep 29 19:17:30 BST 2018

On 29 Sep 2018, at 7:07 pm, David Beck <dbeck at ualberta.ca> wrote:
> Hello,
> I’m trying to work through the pyqt-demo from the User guide online and I’m having trouble with pyqt-sysroot, which doesn’t seem to want to build Python 3.7.0. When I try running pyqt-sysroot, I get “execution failed: returned exit code 2” in the context below:
> iMac-2:demo David$ pyqtdeploy-sysroot sysroot.json --source-dir /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/src --component python
> Installing an existing Python v3.7.0 as the host Python
> Building the target Python from source
> Configuring Python v3.7.0 for macos-64
> Installing /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/sysroot-macos-64/build/Python-3.7.0/Modules/config.c
> Generating /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/sysroot-macos-64/build/Python-3.7.0/pyconfig.h
> Installing /Users/David/OpenSource/ELFBDeployment/pyqtdeploy-2.2/demo/sysroot-macos-64/build/Python-3.7.0/python.pro
> pyqtdeploy-sysroot: Execution failed: returned exit code 2
> pyqtdeploy-sysroot has no problem building OpenSSL, ZLib, or Qt (though I do have to point it to a static build using qt_dir in the .json file), but it bugs out when it gets to Python.
> I’m working on MacOS 10.13.6 and have Qt 5.11.0 and PyQt 5.11.2 installed. The Python in the source directory is Python-3.7.0.tar.xz, downloaded a couple of days ago. XCode and the commandline tools are all up to date. Any suggestions about what might be going on would be appreciated.

Run with the --verbose flag to see what's going on.

Use of XCode 10 is completely untested.


More information about the PyQt mailing list