簡體   English   中英

sip-install 失敗,退出代碼為 1,錯誤消息不明確

[英]sip-install failing with exit code 1 and an unclear error message

我正在嘗試運行 pyqtdeploy 並收到一條不清楚的錯誤消息。 我下載了所有依賴項並嘗試使用以下命令構建演示應用程序:

python build-demo.py --verbose
Running 'make install'.
/home/argosopentech/run/demo/sysroot-linux-64/Qt/bin/qmake -install qinstall libsip.a /home/argosopentech/run/demo/sysroot-linux-64/lib/python3.7/site-packages/PyQt5/libsip.a
PyQt: installing component...
PyQt: looking for 'pyqt-commercial.sip' in /home/argosopentech/run/demo.
PyQt: looking for 'PyQt5-5.15.2.tar.gz' in /home/argosopentech/run/demo.
PyQt: reading 'https://pypi.org/project/PyQt5/5.15.2/'.
PyQt: downloading 'PyQt5-5.15.2.tar.gz' from https://files.pythonhosted.org/packages/28/6c/640e3f5c734c296a7193079a86842a789edb7988dca39eab44579088a1d1/...
PyQt: downloaded 'https://files.pythonhosted.org/packages/28/6c/640e3f5c734c296a7193079a86842a789edb7988dca39eab44579088a1d1/PyQt5-5.15.2.tar.gz'.
PyQt: copying /home/argosopentech/.pyqtdeploy/cache/PyQt5-5.15.2.tar.gz to /home/argosopentech/run/demo/sysroot-linux-64/build.
PyQt: unpacking 'PyQt5-5.15.2.tar.gz'.
Running 'sip-install --qmake /home/argosopentech/run/demo/sysroot-linux-64/Qt/bin/qmake --no-distinfo --concatenate 2 --no-docstrings --verbose'.
Querying qmake about your Qt installation...
/home/argosopentech/run/demo/sysroot-linux-64/Qt/bin/qmake -query
This is the GPL version of PyQt 5.15.2 (licensed under the GNU General Public License) for Python 3.8.5 on linux.
Found the license file 'pyqt-gpl.sip'.
These bindings will be built: QtCore, QtNetwork, QtGui, QtWidgets, QtX11Extras.
Generating the QtCore bindings...
Generating the QtNetwork bindings...
Generating the QtGui bindings...
Generating the QtWidgets bindings...
Generating the QtX11Extras bindings...
Generating the .pro file for the QtCore module...
Generating the .pro file for the QtNetwork module...
Generating the .pro file for the QtGui module...
Generating the .pro file for the QtWidgets module...
Generating the .pro file for the QtX11Extras module...
Generating the top-level .pro file...
Generating the Makefiles...
/home/argosopentech/run/demo/sysroot-linux-64/Qt/bin/qmake -recursive PyQt5.pro
sip-install: '/home/argosopentech/run/demo/sysroot-linux-64/Qt/bin/qmake -recursive PyQt5.pro' failed returning 3
Info: creating stash file /tmp/tmp0u30e4ly/.qmake.stash
Reading /tmp/tmp0u30e4ly/QtCore/QtCore.pro
Reading /tmp/tmp0u30e4ly/QtNetwork/QtNetwork.pro
Reading /tmp/tmp0u30e4ly/QtGui/QtGui.pro
Reading /tmp/tmp0u30e4ly/QtWidgets/QtWidgets.pro
Reading /tmp/tmp0u30e4ly/QtX11Extras/QtX11Extras.pro
Project ERROR: Unknown module(s) in QT: x11extras
pyqtdeploy-sysroot: execution of 'sip-install' failed: returned exit code 1

完整代碼

解決方案是為 Python3 安裝 PyQt x11extras,這是它自己的 Debian package:

sudo apt-get install -y python3-pyqt5.qtx11extras

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM