Package Details: python-pyqt4 4.12.3-4

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: http://www.riverbankcomputing.com/software/pyqt/intro
Licenses: GPL
Conflicts: pyqt
Provides: pyqt=4.12.3
Replaces: pyqt
Submitter: arojas
Maintainer: buzo
Last Packager: buzo
Votes: 17
Popularity: 0.000190
First Submitted: 2018-08-24 08:49
Last Updated: 2019-11-25 20:54

Dependencies (13)

Required by (55)

Sources (1)

Latest Comments

1 2 3 4 5 6 ... Next › Last »

marmistrz commented on 2020-10-12 12:27

@Tmpod for now you can use the pkgbuild under https://github.com/archlinux/svntogit-packages/blob/a08d7b0a901fb814ac2094fe609468c49ff0d6db/trunk/PKGBUILD 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: https://github.com/archlinux/svntogit-packages/commit/83dbec474df3f12bd84b07c8415ce530281c756e#diff-8d0411b338c83cd8cd8ad9d9db127101

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 https://www.riverbankcomputing.com/static/Downloads/sip/4.19.22/sip-4.19.22.tar.gz
    Aborting...
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 configure-ng.py with invocations of configure.py. (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 "configure.py", line 27, in <module>
    import sipconfig
ImportError: No module named sipconfig

This traceback turned out to be from an invocation of configure.py 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 configure.py 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
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -23,7 +23,7 @@ prepare() {

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

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

   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?

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?