Package Base Details: pyqt4

Git Clone URL: (read-only, click to copy)
Submitter: arojas
Maintainer: LaughingMan
Last Packager: LaughingMan
Votes: 19
Popularity: 0.041418
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 ... Next › Last »

tuxayo commented on 2021-01-07 18:54

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

IIUC now it should depend on sip4 rather than sip.

marmistrz commented on 2020-10-12 12:27

@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

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

marmistrz commented on 2020-10-12 11:34

python2-opengl was removed in this commit:

vS0uz4 commented on 2020-10-07 02:38

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

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

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

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

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?