Package Details: python2-pyqt4 4.12.3-3

Git Clone URL: (read-only)
Package Base: pyqt4
Description: A set of Python 2.x bindings for the Qt toolkit
Upstream URL:
Licenses: GPL
Conflicts: python2-pyqt
Provides: python2-pyqt=4.12.3
Replaces: python2-pyqt
Submitter: arojas
Maintainer: 4llan (buzo)
Last Packager: buzo
Votes: 18
Popularity: 0.47
First Submitted: 2018-08-24 08:49
Last Updated: 2019-04-12 11:08

Dependencies (14)

Required by (122)

Sources (1)

Latest Comments

1 2 3 4 5 6 Next › Last »

omgold commented on 2019-11-04 11:43

Got the same problem as JohnRobson:

/usr/bin/sip -w -n PyQt4.sip -f -n PyQt4.sip -t WS_X11 -t Qt_4_8_7 -B Qt_5_0_0 -o -P -a QtCore.api -y QtCore.pyi -g -c /home/omgold/tmp/pyqt4/src/PyQt4_gpl_x11-4.12.3/QtCore -I sip -I /home/omgold/tmp/pyqt4/src/PyQt4_gpl_x11-4.12.3/sip /home/omgold/tmp/pyqt4/src/PyQt4_gpl_x11-4.12.3/sip/QtCore/QtCoremod.sip
sip: Deprecation warning: the -B flag is deprecated
Error: Unable to create the C++ code.

The issue is the '-f' flag in combination with the deprecation warning (which -f turns into an error). Unfortunately it is hardcoded in the configure script. Patching it like this, helps for me:

---        2019-11-04 12:26:04.113841273 +0100
+++     2019-11-04 12:27:12.965701104 +0100
@@ -2217,7 +2217,7 @@

     # Build the SIP command line.
-    argv = [quote(target_config.sip), '-w', '-n', 'PyQt4.sip', '-f', sip_flags]
+    argv = [quote(target_config.sip), '-w', '-n', 'PyQt4.sip', sip_flags]

     # Make sure any unknown Qt version gets treated as the latest Qt v4.

JohnRobson commented on 2019-10-28 00:43

The interpreter used by pyuic4 is /usr/bin/python.
Generating the C++ source for the QtCore module...
Error: Unable to create the C++ code.
==> ERROR: A failure occurred in build().
Error making: pyqt4 (pyqt4-common)

Attius_Sullivan commented on 2019-10-16 08:46

Actually, since the day before yesterday (14th of October 2019) the "sip"-Package got flagged outdated. Does it make sense to install the 4.19.16-2 version of "sip" or have we to accept that this isn't working now. What do you think?

Skalli84 commented on 2019-10-08 00:48

@esdrasedu: Thanks, it helped me too. For noobs like me, to get the package you can download it from here: I followed the advice and tried it with 4.19.16-1 (couldn't find the 2). sip-4.19.16-1-x86_64.pkg.tar.xz Downgraded with sudo pacman -U ~/Downloads/sip-4.19.16-1-x86_64.pkg.tar.xz. Might work with sudo pacman -U too but haven't tried.

Neff commented on 2019-10-05 07:04

esdrasedu thank you very much,very useful!

esdrasedu commented on 2019-10-03 11:35

@zorki, @Attius_Sullivan and @0003c9fe I have same issue. It in my case is becase sip version 4.19.19-1 isn't compatible with python2-pyqt4 version 4.12.3-3! I installed sip version 4.19.16-2 and seems working well

zorki commented on 2019-10-02 02:48

Having the same error.

Attius_Sullivan commented on 2019-09-26 11:28

@0003c9fe I've got the same problem here (arch, linux-lts kernel)

0003c9fe commented on 2019-09-20 17:16

I'm getting the same error as others had before, but the fix for that seemed to be changing the PKGBUILD, which seems to have been corrected since then, so I'm not sure why it isn't working.

Qt v4.8.7 (Open Source) is being used.
Qt is built as a shared library.
SIP 4.19.19 is being used.
The sip executable is /usr/bin/sip.
These PyQt4 modules will be built: QtCore, QtGui, QtHelp, QtMultimedia,
QtNetwork, QtDeclarative, QtScript, QtScriptTools, QtOpenGL, QtSql, QtSvg,
QtTest, QtXml, QtXmlPatterns, phonon, QtDesigner, QtDBus.
The PyQt4 Python package will be installed in /usr/lib/python3.7/site-packages.
PyQt4 is being built with generated docstrings.
PyQt4 is being built with 'protected' redefined as 'public'.
The Designer plugin will be installed in /usr/lib/qt4/plugins/designer.
The QScintilla API file will be installed in /usr/share/qt4/qsci/api/python.
The PyQt4 PEP 484 stub files will be installed in
The dbus support module will be installed in
pyuic4, pyrcc4 and pylupdate4 will be installed in /usr/bin.
The interpreter used by pyuic4 is /usr/bin/python.
Generating the C++ source for the QtCore module...
Error: Unable to create the C++ code.
==> ERROR: A failure occurred in build().

Tio commented on 2019-06-19 11:28

I apologize. Thank you!