Package Base Details: pyqt4

Git Clone URL: (read-only, click to copy)
Submitter: arojas
Maintainer: LaughingMan
Last Packager: LaughingMan
Votes: 19
Popularity: 0.042644
First Submitted: 2018-08-24 08:49
Last Updated: 2021-01-25 01:26

Latest Comments

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

buzo commented on 2019-11-25 20:55

Build is fixed now, thanks omgold!

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}/
patch -i cc.patch PyQt4_gpl_x11-${pkgver}-py2/

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:

---        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.