Package Details: python-pyqt4 4.12.3-6

Git Clone URL: https://aur.archlinux.org/pyqt4.git (read-only, click to copy)
Package Base: pyqt4
Description: A set of Python 3.x bindings for the Qt toolkit
Upstream URL: https://riverbankcomputing.com/software/pyqt/intro
Licenses: GPL
Conflicts: pyqt
Provides: pyqt
Replaces: pyqt
Submitter: arojas
Maintainer: LaughingMan
Last Packager: LaughingMan
Votes: 20
Popularity: 0.000000
First Submitted: 2018-08-24 08:49 (UTC)
Last Updated: 2023-05-11 01:50 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 Next › Last »

buzo commented on 2019-11-25 20:55 (UTC)

Build is fixed now, thanks omgold!

PedroHLC commented on 2019-11-17 22:27 (UTC)

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

yoarch commented on 2019-11-13 15:11 (UTC) (edited on 2019-11-14 12:40 (UTC) by yoarch)

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 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

@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 (UTC)

esdrasedu thank you very much,very useful!

esdrasedu commented on 2019-10-03 11:35 (UTC)

@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