Building from source fails

Phil Thompson phil at riverbankcomputing.com
Fri Dec 20 21:23:02 GMT 2024


Python v3.14 isn't supported. Try with v3.13.

Phil

On 20/12/2024 14:51, C L wrote:
> (venv) cc at pretty:~$ pip install -v  PyQt5  --config-settings 
> --confirm-license=
> Using pip 24.3.1 from
> /home/cc/venv/lib64/python3.14t/site-packages/pip (python 3.14)
> Collecting PyQt5
>   Using cached PyQt5-5.15.11.tar.gz (3.2 MB)
>   Running command pip subprocess to install build dependencies
>   Using pip 24.3.1 from
> /home/cc/venv/lib/python3.14t/site-packages/pip (python 3.14)
>   Collecting sip<7,>=6.8.6
>     Obtaining dependency information for sip<7,>=6.8.6 from
> https://files.pythonhosted.org/packages/0b/b5/aafbb1f35d53ae590d5c0455edc0694a355c3dac22a88392421789c4edd1/sip-6.9.1-py3-none-any.whl.metadata
>     Using cached sip-6.9.1-py3-none-any.whl.metadata (5.3 kB)
>   Collecting PyQt-builder<2,>=1.14.1
>     Obtaining dependency information for PyQt-builder<2,>=1.14.1 from
> https://files.pythonhosted.org/packages/a2/7c/e3ff1467ac5e1e094c210a877c75dd872d9110f8e602cb7c0a4d620fd47c/PyQt_builder-1.17.0-py3-none-any.whl.metadata
>     Using cached PyQt_builder-1.17.0-py3-none-any.whl.metadata (3.3 kB)
>   Collecting packaging (from sip<7,>=6.8.6)
>     Obtaining dependency information for packaging from
> https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl.metadata
>     Using cached packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
>   Collecting setuptools>=69.5 (from sip<7,>=6.8.6)
>     Obtaining dependency information for setuptools>=69.5 from
> https://files.pythonhosted.org/packages/55/21/47d163f615df1d30c094f6c8bbb353619274edccf0327b185cc2493c2c33/setuptools-75.6.0-py3-none-any.whl.metadata
>     Using cached setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB)
>   Using cached sip-6.9.1-py3-none-any.whl (471 kB)
>   Using cached PyQt_builder-1.17.0-py3-none-any.whl (3.7 MB)
>   Using cached setuptools-75.6.0-py3-none-any.whl (1.2 MB)
>   Using cached packaging-24.2-py3-none-any.whl (65 kB)
>   Installing collected packages: setuptools, packaging, sip, 
> PyQt-builder
>     Creating /tmp/pip-build-env-3i0svnrb/overlay/bin
>     changing mode of /tmp/pip-build-env-3i0svnrb/overlay/bin/sip-build 
> to 755
>     changing mode of 
> /tmp/pip-build-env-3i0svnrb/overlay/bin/sip-distinfo to 755
>     changing mode of 
> /tmp/pip-build-env-3i0svnrb/overlay/bin/sip-install to 755
>     changing mode of /tmp/pip-build-env-3i0svnrb/overlay/bin/sip-module 
> to 755
>     changing mode of /tmp/pip-build-env-3i0svnrb/overlay/bin/sip-sdist 
> to 755
>     changing mode of /tmp/pip-build-env-3i0svnrb/overlay/bin/sip-wheel 
> to 755
>     changing mode of 
> /tmp/pip-build-env-3i0svnrb/overlay/bin/pyqt-bundle to 755
>     changing mode of
> /tmp/pip-build-env-3i0svnrb/overlay/bin/pyqt-qt-wheel to 755
>   ERROR: pip's dependency resolver does not currently take into
> account all the packages that are installed. This behaviour is the
> source of the following dependency conflicts.
>   sphinx 8.1.3 requires docutils<0.22,>=0.20, but you have docutils
> 0.16 which is incompatible.
>   Successfully installed PyQt-builder-1.17.0 packaging-24.2
> setuptools-75.6.0 sip-6.9.1
>   Installing build dependencies ... done
>   Running command Getting requirements to build wheel
>   Getting requirements to build wheel ... done
>   Running command Preparing metadata (pyproject.toml)
>   Querying qmake about your Qt installation...
>   This is the GPL version of PyQt 5.15.11 (licensed under the GNU
> General Public License) for Python 3.14.0a2 on linux.
>   Found the license file 'pyqt-gpl.sip'.
>   Checking to see if the QtCore bindings can be built...
>   Checking to see if the QtNetwork bindings can be built...
>   Checking to see if the QtGui bindings can be built...
>   Checking to see if the QtWidgets bindings can be built...
>   Checking to see if the QtQml bindings can be built...
>   Checking to see if the QAxContainer bindings can be built...
>   Checking to see if the QtAndroidExtras bindings can be built...
>   Checking to see if the QtBluetooth bindings can be built...
>   Checking to see if the QtDBus bindings can be built...
>   Checking to see if the QtDesigner bindings can be built...
>   Checking to see if the Enginio bindings can be built...
>   Checking to see if the QtHelp bindings can be built...
>   Checking to see if the QtMacExtras bindings can be built...
>   Checking to see if the QtMultimedia bindings can be built...
>   Checking to see if the QtMultimediaWidgets bindings can be built...
>   Checking to see if the QtNfc bindings can be built...
>   Checking to see if the QtOpenGL bindings can be built...
>   Checking to see if the QtPositioning bindings can be built...
>   Checking to see if the QtLocation bindings can be built...
>   Checking to see if the QtPrintSupport bindings can be built...
>   Checking to see if the QtQuick bindings can be built...
>   Checking to see if the QtQuick3D bindings can be built...
>   Checking to see if the QtQuickWidgets bindings can be built...
>   Checking to see if the QtRemoteObjects bindings can be built...
>   Checking to see if the QtSensors bindings can be built...
>   Checking to see if the QtSerialPort bindings can be built...
>   Checking to see if the QtSql bindings can be built...
>   Checking to see if the QtSvg bindings can be built...
>   Checking to see if the QtTest bindings can be built...
>   Checking to see if the QtTextToSpeech bindings can be built...
>   Checking to see if the QtWebChannel bindings can be built...
>   Checking to see if the QtWebKit bindings can be built...
>   Checking to see if the QtWebKitWidgets bindings can be built...
>   Checking to see if the QtWebSockets bindings can be built...
>   Checking to see if the QtWinExtras bindings can be built...
>   Checking to see if the QtX11Extras bindings can be built...
>   Checking to see if the QtXml bindings can be built...
>   Checking to see if the QtXmlPatterns bindings can be built...
>   Checking to see if the _QOpenGLFunctions_2_0 bindings can be built...
>   Checking to see if the _QOpenGLFunctions_2_1 bindings can be built...
>   Checking to see if the _QOpenGLFunctions_4_1_Core bindings can be 
> built...
>   Checking to see if the dbus-python support should be built...
>   The dbus-python package does not seem to be installed.
>   These bindings will be built: QtCore, QtNetwork, QtGui, QtWidgets,
> QtDBus, QtOpenGL, QtPrintSupport, QtSql, QtTest, QtXml, Qt,
> _QOpenGLFunctions_2_0, _QOpenGLFunctions_2_1,
> _QOpenGLFunctions_4_1_Core, pylupdate, pyrcc.
>   Generating the QtCore bindings...
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 118: '%BIGetReadBufferCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 131: '%BIGetSegCountCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 138: '%BIGetCharBufferCode' is deprecated and will be removed in
> SIP v7.0.0
>   Generating the QtNetwork bindings...
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 118: '%BIGetReadBufferCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 131: '%BIGetSegCountCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 138: '%BIGetCharBufferCode' is deprecated and will be removed in
> SIP v7.0.0
>   Generating the QtGui bindings...
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 118: '%BIGetReadBufferCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 131: '%BIGetSegCountCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 138: '%BIGetCharBufferCode' is deprecated and will be removed in
> SIP v7.0.0
>   Generating the QtWidgets bindings...
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 118: '%BIGetReadBufferCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 131: '%BIGetSegCountCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 138: '%BIGetCharBufferCode' is deprecated and will be removed in
> SIP v7.0.0
>   Generating the QtDBus bindings...
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 118: '%BIGetReadBufferCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 131: '%BIGetSegCountCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 138: '%BIGetCharBufferCode' is deprecated and will be removed in
> SIP v7.0.0
>   Generating the QtOpenGL bindings...
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 118: '%BIGetReadBufferCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 131: '%BIGetSegCountCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 138: '%BIGetCharBufferCode' is deprecated and will be removed in
> SIP v7.0.0
>   Generating the QtPrintSupport bindings...
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 118: '%BIGetReadBufferCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 131: '%BIGetSegCountCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 138: '%BIGetCharBufferCode' is deprecated and will be removed in
> SIP v7.0.0
>   Generating the QtSql bindings...
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 118: '%BIGetReadBufferCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 131: '%BIGetSegCountCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 138: '%BIGetCharBufferCode' is deprecated and will be removed in
> SIP v7.0.0
>   Generating the QtTest bindings...
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 118: '%BIGetReadBufferCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 131: '%BIGetSegCountCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 138: '%BIGetCharBufferCode' is deprecated and will be removed in
> SIP v7.0.0
>   Generating the QtXml bindings...
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 118: '%BIGetReadBufferCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 131: '%BIGetSegCountCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 138: '%BIGetCharBufferCode' is deprecated and will be removed in
> SIP v7.0.0
>   Generating the Qt bindings...
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 118: '%BIGetReadBufferCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 131: '%BIGetSegCountCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 138: '%BIGetCharBufferCode' is deprecated and will be removed in
> SIP v7.0.0
>   Generating the _QOpenGLFunctions_2_0 bindings...
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 118: '%BIGetReadBufferCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 131: '%BIGetSegCountCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 138: '%BIGetCharBufferCode' is deprecated and will be removed in
> SIP v7.0.0
>   Generating the _QOpenGLFunctions_2_1 bindings...
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 118: '%BIGetReadBufferCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 131: '%BIGetSegCountCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 138: '%BIGetCharBufferCode' is deprecated and will be removed in
> SIP v7.0.0
>   Generating the _QOpenGLFunctions_4_1_Core bindings...
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 118: '%BIGetReadBufferCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 131: '%BIGetSegCountCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 138: '%BIGetCharBufferCode' is deprecated and will be removed in
> SIP v7.0.0
>   Generating the pylupdate bindings...
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 118: '%BIGetReadBufferCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 131: '%BIGetSegCountCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 138: '%BIGetCharBufferCode' is deprecated and will be removed in
> SIP v7.0.0
>   Generating the pyrcc bindings...
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 118: '%BIGetReadBufferCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 131: '%BIGetSegCountCode' is deprecated and will be removed in
> SIP v7.0.0
> 
> /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf/sip/QtCore/qbytearray.sip:
> line 138: '%BIGetCharBufferCode' is deprecated and will be removed in
> SIP v7.0.0
>   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 QtDBus module...
>   Generating the .pro file for the QtOpenGL module...
>   Generating the .pro file for the QtPrintSupport module...
>   Generating the .pro file for the QtSql module...
>   Generating the .pro file for the QtTest module...
>   Generating the .pro file for the QtXml module...
>   Generating the .pro file for the Qt module...
>   Generating the .pro file for the _QOpenGLFunctions_2_0 module...
>   Generating the .pro file for the _QOpenGLFunctions_2_1 module...
>   Generating the .pro file for the _QOpenGLFunctions_4_1_Core module...
>   Generating the .pro file for the pylupdate module...
>   Generating the .pro file for the pyrcc module...
>   Generating the top-level .pro file...
>   Generating the Makefiles...
>   Compiling the project...
>   _in_process.py: 'make' failed returning 2
>   error: subprocess-exited-with-error
> 
>   × Preparing metadata (pyproject.toml) did not run successfully.
>   │ exit code: 1
>   ╰─> See above for output.
> 
>   note: This error originates from a subprocess, and is likely not a
> problem with pip.
>   full command: /home/cc/venv/bin/python3.14t
> /home/cc/venv/lib64/python3.14t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py
> prepare_metadata_for_build_wheel /tmp/tmp5m37q6_f
>   cwd: /tmp/pip-install-xcowgmhy/pyqt5_5fd95f757c274c4989e77cd4bcd37baf
>   Preparing metadata (pyproject.toml) ... error
> error: metadata-generation-failed
> 
> × Encountered error while generating package metadata.
> ╰─> See above for output.
> 
> note: This is an issue with the package mentioned above, not pip.
> hint: See above for details.


More information about the PyQt mailing list