Package Details: python-pyqt4 4.12.3-5

Git Clone URL: (read-only, click to copy)
Package Base: pyqt4
Description: Common PyQt files shared between python-pyqt4 and python2-pyqt4
Upstream URL:
Licenses: GPL
Conflicts: pyqt
Provides: pyqt
Replaces: pyqt
Submitter: arojas
Maintainer: LaughingMan
Last Packager: LaughingMan
Votes: 20
Popularity: 0.000488
First Submitted: 2018-08-24 08:49 (UTC)
Last Updated: 2021-01-25 01:26 (UTC)

Latest Comments

LaughingMan commented on 2022-03-04 20:55 (UTC)

Pushed an updated python2-opengl back online.

MarsSeed commented on 2022-03-04 20:32 (UTC)

It seems someone is indiscriminately deleting needed Python 2 based dependencies from AUR.

The AUR git repo still exists for python2-opengl.

FraYoshi commented on 2022-02-28 09:47 (UTC)

dependency missing python2-opengl can't make..

error: could not find all required packages:
    python2-opengl (wanted by: python-pyqt4)

LaughingMan commented on 2021-12-06 20:46 (UTC)

No, I meant "How did you end up with a sip5 binary in the first place"? Arch only ships sip (which is at version 6.4) and sip4. None of them contain a sip5 file though. pacman -Qo /usr/bin/sip5 should tell you which package that file belongs to.

dale6998 commented on 2021-12-06 15:06 (UTC)

i had to symllink /usr/bin/sip5 to /usr/bin/sip in order to make this work...I'm not sure why this is calling the sip5 binary.

LaughingMan commented on 2021-12-06 05:46 (UTC)

Still builds fine for me. How did you end up with sip5 though? This package requires sip4 for building.

dale6998 commented on 2021-12-05 20:33 (UTC)

This fails with: Querying qmake about your Qt installation... Determining the details of your Qt installation... This is the GPL version of PyQt 4.12.3 (licensed under the GNU General Public License) for Python 3.9.9 on linux. Found the license file pyqt-gpl.sip. Traceback (most recent call last): File "/usr/bin/sip5", line 5, in <module> from sipbuild.legacy.sip5 import main ModuleNotFoundError: No module named 'sipbuild.legacy' Error: '/usr/bin/sip5 -V' did not generate any output. ==> ERROR: A failure occurred in build(). Aborting... :: Unable to build pyqt4-common - makepkg exited with code: 4

tuxayo commented on 2021-06-21 18:34 (UTC)

It works, thanks :D

LaughingMan commented on 2021-06-21 17:45 (UTC)

The AUR sync bug is finally fixed and I've pushed python2-dbus.

LaughingMan commented on 2021-04-10 05:51 (UTC)

The problem is that the list of official packages doesn't get synced to the AUR, so it thinks that python2-dbus is still available as an official package and blocks my pushes. The relevant bug report is here:

dbus-python is just the python3 version and won't help.

nourathar commented on 2021-04-09 22:22 (UTC) (edited on 2021-04-09 22:32 (UTC) by nourathar)

There is now a dbus-python package in extra but makepkg still complains about missing python2-dbus when I have it installed. So thanks for posting the PKGBUILD here: that worked for me ! But should that be filed as a bug ? I am not familiar with doing that...

willemw commented on 2021-03-27 07:16 (UTC)

Dependency python2-dbus has been dropped from the official repositories (

dreieck commented on 2021-03-23 13:02 (UTC)

Checksum verification fails:

==> Validating source files with sha256sums...
    PyQt4_gpl_x11-4.12.3.tar.gz ... FAILED

Thanks for maintaining!

tuxayo commented on 2021-03-21 15:42 (UTC)

Thanks for trying the new package LaughingMan.

About flagging, it was a mistake for pyqt4. I though the missing dep was for pyqt4 but no, it was for python2-pyqt4. Even then, for python2-pyqt4, was flagging out-of-date for a non-existing dep accurate? I wasn't sure if we can say that the PKGBUILD is outdated due to pointing to a unexisting dep.

LaughingMan commented on 2021-03-21 11:40 (UTC)

I tried to push a python2-dbus package to AUR but it thinks that's still provided by [extra] and rejects it. Will try again in a few days.

pkgdesc="Python2 bindings for DBUS"
license=('GPL' 'LGPL')
depends=('dbus' 'glib2' 'python2' 'python-dbus-common<1.3' 'python-dbus-common>=1.2')

prepare() {
  cd $_pkgname-$pkgver
  autoreconf -vfi

build() {
  cd $_pkgname-$pkgver

  ./configure --prefix=/usr PYTHON_VERSION=2
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

package() {
  cd $_pkgname-$pkgver
  make DESTDIR="${pkgdir}" install

  rm -rf "${pkgdir}/usr/share"
  rm -r "${pkgdir}/usr/include"
  rm -r "${pkgdir}/usr/lib/pkgconfig"

PS: Please don't flag packages as out of date just because of a problem. Even more so if the problem isn't even with the package itself.

bartus commented on 2021-03-18 08:19 (UTC)

python2-dbus was dropped from extra repository.

tuxayo commented on 2021-03-17 21:00 (UTC)

Can't upgrade my system because now dbus-python and python2-dbus conflict. And python2-dbus is a dependency of python2-pyqt4.

Actually python2-dbus isn't anymore in the AUR

LaughingMan commented on 2021-01-25 01:55 (UTC)

Since this package was orphaned I've adopted it for now and fixed up the sip/sip4 situation. If some more experienced maintainer wants to take over, let me know.

madjoe commented on 2021-01-19 11:25 (UTC)

sip has been replaced with sip4 and dependency should be moved accordingly

tuxayo commented on 2021-01-07 18:54 (UTC)

It seems to be the case, I can't build with only sip 6.0.0-1 installed, I need sip4 4.19.24-1

tuxayo commented on 2021-01-07 18:31 (UTC)

IIUC now it should depend on sip4 rather than sip.

marmistrz commented on 2020-10-12 12:27 (UTC)

@Tmpod for now you can use the pkgbuild under to build python2-opengl locally.

Hopefully someone will submit python2-opengl to AUR soon.

Tmpod commented on 2020-10-12 12:21 (UTC)

Yeah, but how can it be fixed now? I need this package :/

marmistrz commented on 2020-10-12 11:34 (UTC)

python2-opengl was removed in this commit:

vS0uz4 commented on 2020-10-07 02:38 (UTC)

Guys, how to install the package if currently the dependency "python2-opengl" cannot be met?

python2-opengl no longer exists.

cuppajoeman commented on 2020-08-31 16:50 (UTC)

When I tried to install this I got the following 404:

    qt4-openssl-1.1.patch ... Passed
==> Making package: python-sip-pyqt4 4.19.22-1 (Mon 31 Aug 2020 01:48:43 PM ADT)
==> Retrieving sources...
  -> Downloading sip-4.19.22.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found
==> ERROR: Failure while downloading
error: target not found: python-sip-pyqt4
error: target not found: python2-sip-pyqt4
error: target not found: phonon-qt4

senkomputilulo commented on 2020-07-26 09:18 (UTC)

I got an error:

$ pacaur -S python-pyqt4 :: Package python-pyqt4 not found in repositories, trying AUR... :: resolving dependencies... :: looking for inter-conflicts...

AUR Packages (5) phonon-qt4-4.10.3-1 pyqt4-common-4.12.3-4 python-pyqt4-4.12.3-4 python-sip-pyqt4-4.19.22-1 python2-sip-pyqt4-4.19.22-1
Repo Packages (6) cmake-3.18.0-2 extra-cmake-modules-5.72.0-1 jsoncpp-1.9.3-1 python2-opengl-3.1.5-1 rhash-1.3.9-2 sip-4.19.23-1

Repo Download Size: 10.88 MiB Repo Installed Size: 64.83 MiB

:: Proceed with installation? [J/n] :: Retrieving package(s)... no results found for pyqt4 update complete: /home/egil/.cache/pacaur/phonon-qt4 update complete: /home/egil/.cache/pacaur/python-sip-pyqt4 :: failed to retrieve pyqt4 package

maximaman commented on 2020-05-09 21:13 (UTC)

The creation of the package fails during the build() stage with the following error: Error: PyQt4 cannot be built with sip v5 (or later)..

I managed to fix the error by replacing all invocations of with invocations of (Check out the diff at the end of the comment for more info.)

After fixing the aforementioned error, I experienced another one (again during the build() stage):

Traceback (most recent call last):
  File "", line 27, in <module>
    import sipconfig
ImportError: No module named sipconfig

This traceback turned out to be from an invocation of using python2, so I checked whether I had python2-sip installed, and I did not (as I expected). Naturally, installing that package solved the problem for me. (I suppose that it is also necessary to have python-sip installed so that the invocation of using python3 would succeed as well.)

After that, I experienced another error during the package_pyqt4-common() phase:

make: Entering directory '/home/sid/.cache/yay/pyqt4/src/PyQt4_gpl_x11-4.12.3/pyrcc'
cp -f pyrcc4 /usr/bin/pyrcc4
cp: cannot create regular file '/usr/bin/pyrcc4': Permission denied
make: *** [Makefile:41: install] Error 1
make: Leaving directory '/home/sid/.cache/yay/pyqt4/src/PyQt4_gpl_x11-4.12.3/pyrcc'

It turned out that the error is caused by the make install not being properly invoked for the pyrcc subdirectory by the package_pyqt4-common() function: the value of the DESTDIR variable is not assigned, so the install target for the pyrcc subdirectory would attempt to copy a file into the real root instead of the fake one (which causes the permission error). I was able to fix the problem and (finally!) successfully build the package by changing the invocations of make install for pyrcc and pylupdate to have DESTDIR set to the fakeroot.

Here is a diff containing all of my modifications to the tip of the master branch:

diff --git a/PKGBUILD b/PKGBUILD
index d25a0ca..a82f094 100644
@@ -23,7 +23,7 @@ prepare() {

 build() {
   cd PyQt4_gpl_x11-${pkgver}
-  python \
+  python \
     --confirm-license \
     --no-sip-files \
     --qsci-api \
@@ -35,7 +35,7 @@ build() {

   ### Python2 version ###
   cd ../PyQt4_gpl_x11-${pkgver}-py2
-  python2 \
+  python2 \
     --confirm-license \
     --no-sip-files \
     --qsci-api \
@@ -54,8 +54,8 @@ package_pyqt4-common() {

   cd PyQt4_gpl_x11-${pkgver}
-  make -C pyrcc INSTALL_ROOT="${pkgdir}" install
-  make -C pylupdate INSTALL_ROOT="${pkgdir}" install
+  make -C pyrcc INSTALL_ROOT="${pkgdir}" DESTDIR="${pkgdir}" install
+  make -C pylupdate INSTALL_ROOT="${pkgdir}" DESTDIR="${pkgdir}" install

   install -Dm644 PyQt4.api "${pkgdir}"/usr/share/qt4/qsci/api/python/PyQt4.api

malibu commented on 2020-05-02 16:50 (UTC) (edited on 2020-05-02 17:09 (UTC) by malibu)

Hi there, I am getting an invalid key error installing phonon with the default trizen install for python-pyqt4:

phonon-4.10.2.tar.xz ... FAILED (unknown public key B92A5F04EC949121).

I have read that phonon is deprecated and should be removed. so I am happy to read that phonon is optional for this package; can anyone tell me how to skip it so that I can install pyqt4 which I need for hp-setup in order to get my printer to work?

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

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:

---        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 (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().
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: 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 (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

zorki commented on 2019-10-02 02:48 (UTC)

Having the same error.

Attius_Sullivan commented on 2019-09-26 11:28 (UTC)

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

0003c9fe commented on 2019-09-20 17:16 (UTC)

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

I apologize. Thank you!

buzo commented on 2019-06-19 08:53 (UTC)

Tio: Wrong package, this is not python-sip-pyqt4 – and wrong distribution, this is Arch Linux.

But besides, none of these pyqt4-packages has any dependency to xorg-server-utils or cin-bin. Please seek help from the Manjaro team.

Tio commented on 2019-06-19 07:07 (UTC)

Error on Manjaro Gnome:

Cloning python-sip-pyqt4 build files...
Checking python-sip-pyqt4 dependencies...
Warning: cannot resolve "xorg-server-utils", a dependency of "cin-bin"
Failed to prepare transaction.
Failed to prepare transaction:
could not satisfy dependencies:
unable to satisfy dependency 'xorg-server-utils' required by cin-bin

buzo commented on 2019-04-02 16:30 (UTC)

The build should be fixed now.

alexei commented on 2019-03-28 01:14 (UTC)

@DarkSun: use the latest python-sip-pyqt4 4.19.15, do not downgrade it.

There are two remaining problems with this python-pyqt4 package:

  1. This package PKGBUILD must be changed to python-sip-pyqt4 and python2-sip-pyqt4 instead of python-sip and python2-sip, because the latter do not build the necessary PyQt4 module, so if you do not have the former installed, you will get:

    AttributeError: 'module' object has no attribute 'QWidget'

@buzo, can you change the dependencies here?

  1. For Python 2, python2-sip-pyqt4 is out-of-date (4.19.13) so its PKGBUILD must be edited manually to update to 4.19.15. Really, python2-sip-pyqt4 should be deleted and python-sip-pyqt4 should be a merged package that builds for both python 2 and 3.

DarkSun commented on 2019-03-27 22:24 (UTC)

@alexei python-sip-pyqt4 is updated to 4.19.15, Is it still neccesary to change the python-sip-pyqt4's version to 4.19.14?

alexei commented on 2019-03-09 13:44 (UTC)

Did you read the comments before posting? There is a workaround there.

Castanea commented on 2019-03-09 09:17 (UTC) (edited on 2019-03-09 20:00 (UTC) by Castanea)

Sorry for my post @alexei, its ok now.

Same as @JohnRobson

g++ -c -pipe -fno-exceptions -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I/usr/include/python3.7m -I../qpy/QtCore -I. -o sipQtCoreQObject.o sipQtCoreQObject.cpp
/tmp/yaourt-tmp-test/aur-python2-pyqt4/src/PyQt4_gpl_x11-4.12.3/QtCore/sipQtCoreQObject.cpp:2345:1: error: ne peut convertir « std::nullptr_t » en « int » dans l'initialisation
make[1]: *** [Makefile:749: sipQtCoreQObject.o] Error 1
make[1] : on quitte le répertoire « /tmp/yaourt-tmp-test/aur-python2-pyqt4/src/PyQt4_gpl_x11-4.12.3/QtCore »
make: *** [Makefile:60: sub-QtCore-make_default-ordered] Error 2

mark commented on 2019-03-08 07:25 (UTC)

@alexei Thank you for the clear instructions, it installed okay!

JohnRobson commented on 2019-03-08 05:48 (UTC)

g++ -c -pipe -fno-exceptions -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I/usr/include/python3.7m -I../qpy/QtCore -I. -o sipQtCoreQObject.o sipQtCoreQObject.cpp
/tmp/yay/pyqt4/src/PyQt4_gpl_x11-4.12.3/QtCore/sipQtCoreQObject.cpp:2345:1: error: cannot convert ‘std::nullptr_t’ to ‘int’ in initialization
distcc[1235] ERROR: compile sipQtCoreQObject.cpp on localhost failed
make[1]: *** [Makefile:749: sipQtCoreQObject.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tmp/yay/pyqt4/src/PyQt4_gpl_x11-4.12.3/QtCore'
make: *** [Makefile:60: sub-QtCore-make_default-ordered] Error 2
==> ERROR: A failure occurred in build().
Error making: pyqt4 (pyqt4-common python2-pyqt4)

alexei commented on 2019-03-08 00:29 (UTC) (edited on 2019-03-08 00:31 (UTC) by alexei)

@mark: on line 14, change python-sip python2-sip dependencies to python-sip-pyqt4 python2-sip-pyqt4. EDIT: and remove the former packages if you have them installed.

The error you cite just tells you to install pyqt4-common from AUR, which is a dependency of this package. If you use yaourt (or similar) it fetches dependencies automatically, otherwise you have to install deps manually.

mark commented on 2019-03-07 19:38 (UTC)

I'm still having trouble installing this.

=>> Select packages to install
  1> pyqt4-common
  2> python-pyqt4
  3> python2-pyqt4

Install [1]: 3
[sudo] password for username: 
loading packages...
resolving dependencies...
warning: cannot resolve "pyqt4-common", a dependency of "python2-pyqt4"
:: The following package cannot be upgraded due to unresolvable dependencies:

I've added the temporary workaround after configure commands, but I didn't quite get where the rest of the changes should be made. Even though it should build but not work with just this hotfix?

alexei commented on 2019-02-18 19:33 (UTC) (edited on 2019-02-18 20:14 (UTC) by alexei)

As a temporary workaround, add this after both configure commands in the PKGBUILD:

find . -type f -name '*.cpp' -exec sed -i 's/{SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}/{SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, 0}/g' {} \;

Btw, you also must change python-sip/python2-sip dependencies to python-sip-pyqt4/python2-sip-pyqt4, otherwise PyQt will build but the module won't work: import will fail with 'sip' not find, and if you import the default sip, you'll get errors like QtGui.QWidget no attrivute QWidget in QtGui.

Also, you must update python-sip-pyqt4/python2-sip-pyqt4 to 4.19.14 by bumping the version and URL in the PKGBUILD to . Otherwise, 'from PyQt4 import QtGui' will fail with need API v12.6 but sip provides only v12.5.

UPDATE: Also, be careful with versions of sip and python-sip-pyqt packages, it's easy to end up with different versions if you're not careful, and that's probably not good. I ended up simply adding the python-sip-pyqt4 packages to the sip source package PKGBUILD, which already has the python-sip-pyqt5; and uninstalled all sip packages from the system before building and installing the package set from the modified sip PKGBUILD. That way, all sip packages are of the same version. This does not address the underlying issue, though that PyQt4 does not build with latest sip 4.19.14.

UPDATE2: reported to PyQt4:

tchakatak commented on 2019-02-17 10:35 (UTC)

@kingkingmax > Can you detail more your solution? I am having the same issue.

kingkingmax commented on 2019-02-16 03:35 (UTC)

@ColonelThirtyTwo @sfaunl I found the issue is at sip.h Even compilier is new version, it doesn't work very well for following:

if __cplusplus >= 201103L || defined(_MSVC_LANG)

========================= / C++11 and later. /

define SIP_NULLPTR nullptr
define SIP_OVERRIDE override

/ Earlier versions of C++. /

define SIP_NULLPTR 0

============= I changed C++11 part as earlier version of C++. It works.

sfaunl commented on 2019-02-15 23:54 (UTC)

@ColonelThirtyTwo I'm getting same error. Downgrading gcc did not solve the problem.

ColonelThirtyTwo commented on 2019-02-14 03:33 (UTC) (edited on 2019-02-14 03:33 (UTC) by ColonelThirtyTwo)

Getting an error when I try to build this using G++ 8.2.1 (latest arch version):

g++ -c -pipe -fno-exceptions -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -D_REENTRANT -fPIC -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -I/usr/include/python3.7m -I../qpy/QtCore -I. -o sipQtCoreQAbstractTransition.o sipQtCoreQAbstractTransition.cpp
/home/col/.cache/pikaur/build/pyqt4/src/PyQt4_gpl_x11-4.12.3/QtCore/sipQtCoreQAbstractTransition.cpp:812:1: error: cannot convert ‘std::nullptr_t’ to ‘int’ in initialization

make[1]: *** [Makefile:698: sipQtCoreQAbstractTransition.o] Error 1
make[1]: Leaving directory '/home/col/.cache/pikaur/build/pyqt4/src/PyQt4_gpl_x11-4.12.3/QtCore'
make: *** [Makefile:60: sub-QtCore-make_default-ordered] Error 2

chrisjbillington commented on 2019-01-30 23:42 (UTC) (edited on 2019-01-30 23:43 (UTC) by chrisjbillington)

There is now an AUR package for the missing sip module, such that these packages should depend on python2-sip-pyqt4/python-sip-pyqt4. Alternately this package could be modified to include the sip module, if the maintainer has interest.

daviding commented on 2018-12-31 03:23 (UTC)

For anyone that needs full newbie instructions on "How to install PKGBUILD file downloaded manually?", there are now some at

inemum commented on 2018-12-14 02:15 (UTC)

Here are a couple of PKGBUILDs for the sip module: and

0strodamus commented on 2018-12-14 01:09 (UTC)

@inemum: Thanks for the tip! I created a sip PKGBUILD as you suggested and was able to get everything working again with pyqt4-4.12.3.

fraze commented on 2018-12-13 20:30 (UTC)

Same error as Ostrodamus. Add puddletag to the list of broken packages that depend on python-pyqt4.

inemum commented on 2018-12-13 19:41 (UTC)

0strodamus: you can modify the sip PKGBUILD using the "--sip-module PyQt4.sip" option that you mentioned. I added a couple of extra packages (python-sip-pyqt4 and python2-sip-pyqt4) using the code for Qt5 as a basis and it seems to work fine on my system.

0strodamus commented on 2018-12-13 00:39 (UTC)

I'm seeing Import error "No module named sip" crashes in poptrayminus with 4.12.3. According to, "building PyQt4 v4.12.2 or later you must configure SIP to create a private copy of the sip module using a command line similar to the following: python --sip-module PyQt4.sip --no-dist-info --no-tools". I'm struggling to figure out how to get this to work and any help would be appreciated.

merlock commented on 2018-12-12 17:32 (UTC)

Not a show-stopper, but noticed that $CFLAGS or $CXXFLAGS are not honored in building.

buzo commented on 2018-12-12 16:20 (UTC)

Thanks for the hint! I have removed that dependency now.

Mkornby commented on 2018-12-12 12:22 (UTC)

It builds OK if you remove qt-assistant-compat from the makedepends in PKGBUILD

MKody commented on 2018-12-03 17:44 (UTC)

qt-assistant-compat was removed from the packages, we can't build this now.

GaelicGrime commented on 2018-11-09 01:51 (UTC)

same as vlatkob, and haven't figured out a workaround that functions yet

vlatkoB commented on 2018-10-23 20:07 (UTC)

Getting this error:

/bin/sh: ./sip: Is a directory Error: './sip -V' did not generate any output.

'./' prefix to sip could be the cause because "$ sip -V" gives "4.19.13" and sip is in /usr/bin. Tried cleanBuild with yay, the same.

buzo commented on 2018-10-23 08:16 (UTC)

michaldybczak: I built in a clean chroot and it works fine. Have you modified anything locally? Or is the file system full by chance? Which is your command line for building the package?

michaldybczak commented on 2018-10-23 06:54 (UTC)

Cannot build, because of some ultra vague error, any idea what this might be:

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 dbus support module will be installed in /usr/lib/python2.7/site-packages/dbus/mainloop. pyuic4, pyrcc4 and pylupdate4 will be installed in /usr/bin. The interpreter used by pyuic4 is /usr/bin/python2. Generating the C++ source for the QtCore module... Error: Unable to create the C++ code. ==> ERROR: Thre is an error in build(). Aborting... :: Unable to build pyqt4-common - makepkg exited with code: 4

buzo commented on 2018-10-22 15:04 (UTC)

Thanks for adding me as a co-maintainer. I have added sip to the dependencies and this package builds again.

BootyBlaster commented on 2018-10-22 13:52 (UTC)

Please add the sip package as dependency.

evanpurkhiser commented on 2018-10-19 07:33 (UTC)

Please add the sip package as dependency.

Xeno_Idaltu commented on 2018-10-19 06:54 (UTC)

Yep. The sip package is missing..

Xorg commented on 2018-10-18 21:29 (UTC)

Please add the sip package as dependency.

andres53016 commented on 2018-10-12 02:37 (UTC)

Please add the sip package as dependency.

Tahvok commented on 2018-10-09 09:18 (UTC)

Please add the sip package as dependency

Drunk247 commented on 2018-10-08 21:51 (UTC)

Works for me after installation of the "sip" package

maderios commented on 2018-10-08 18:52 (UTC) (edited on 2018-10-08 19:16 (UTC) by maderios)

I get error. All dependencies are installed. Any idea?

makepkg -sicC ==> Starting build()... Querying qmake about your Qt installation... Determining the details of your Qt installation... This is the GPL version of PyQt 4.12.1 (licensed under the GNU General Public License) for Python 3.7.0 on linux. Found the license file pyqt-gpl.sip. Error: Make sure you have a working sip on your PATH or use the --sip argument to explicitly specify a working sip. ==> ERROR: A failure occurred in build(). Aborting...

mbloms commented on 2018-09-27 14:57 (UTC)

I get this:

WARNING: Package contains reference to $srcdir

Is the package supposed to be built in a clean chroot?