Package Details: python2-pyqt4 4.12.3-7

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

Dependencies (10)

Required by (4)

Sources (1)

Latest Comments

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

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
     SIP_NULLPTR,
 ^
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
     SIP_NULLPTR,
 ^
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().
    Aborting...
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:
      python2-pyqt4

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?