Package Details: python-pyqt4 4.12.3-3

Git Clone URL: https://aur.archlinux.org/pyqt4.git (read-only)
Package Base: pyqt4
Description: A set of Python 3.x bindings for the Qt toolkit
Upstream URL: http://www.riverbankcomputing.com/software/pyqt/intro
Licenses: GPL
Conflicts: pyqt
Provides: pyqt=4.12.3
Replaces: pyqt
Submitter: arojas
Maintainer: 4llan (buzo)
Last Packager: buzo
Votes: 18
Popularity: 0.40
First Submitted: 2018-08-24 08:49
Last Updated: 2019-04-12 11:08

Dependencies (13)

Required by (60)

Sources (1)

Latest Comments

1 2 3 4 5 6 Next › Last »

PedroHLC commented on 2019-11-17 22:27

I can't build this with Python 3.8, anyone knows how?

yoarch commented on 2019-11-13 15:11

Solved it by creating the patch cc.patch mentioned by omgold. Puting it in the src folder and adding these 2 lines in the prepare function of the PKGBUILD:

patch -i cc.patch PyQt4_gpl_x11-${pkgver}/configure-ng.py
patch -i cc.patch PyQt4_gpl_x11-${pkgver}-py2/configure-ng.py

Restart the compilation.

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:

--- configure-ng.py.orig        2019-11-04 12:26:04.113841273 +0100
+++ configure-ng.py     2019-11-04 12:27:12.965701104 +0100
@@ -2217,7 +2217,7 @@
     mk_clean_dir(mname)

     # 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.
     argv.append('-B')

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().
Aborting...
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: https://archive.archlinux.org/packages/s/sip/ 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 https://archive.archlinux.org/packages/s/sip/sip-4.19.16-1-x86_64.pkg.tar.xz 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)