Search Criteria
Package Details: python2-pyqt4 4.12.3-5
Package Actions
Git Clone URL: | https://aur.archlinux.org/pyqt4.git (read-only, click to copy) |
---|---|
Package Base: | pyqt4 |
Description: | Common PyQt files shared between python-pyqt4 and python2-pyqt4 |
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.000523 |
First Submitted: | 2018-08-24 08:49 (UTC) |
Last Updated: | 2021-01-25 01:26 (UTC) |
Dependencies (13)
- pyqt4-common
- python2-dbus
- python2-sip-pyqt4
- mesa (mesa-minimal+-git, mesa-i915g, mesa-d3d12, mesa-minimal-git, mesa-git, mesa-steamos, mesa-rusticl-git, mesa-amber) (make)
- phonon-qt4 (make)
- python-dbus (dbus-python) (make)
- python-sip-pyqt4 (make)
- python2-dbus (make)
- python2-opengl (make)
- python2-sip-pyqt4 (make)
- sip4 (make)
- phonon-qt4 (optional) – enable audio and video in PyQt applications
- python2-opengl (optional) – enable OpenGL 3D graphics in PyQt applications
Required by (54)
- amphetype-svn
- armory
- armory-bin
- armory-git
- armory-goatpig-git
- avogadro
- avogadro-git (requires python2-pyqt)
- bzr-explorer (requires python2-pyqt)
- demimove
- drobo-utils (requires python2-pyqt)
- eficas (requires python2-pyqt)
- eman2
- encuentro
- fern-wifi-cracker-git
- finfaktura
- food_gui
- git-etc (optional)
- gr-air-modes-git (optional)
- gr-gsm-git
- hoststool
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..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) andsip4
. None of them contain asip5
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: https://gitlab.archlinux.org/archlinux/aurweb/-/issues/11
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 (https://bugs.archlinux.org/task/70033).
dreieck commented on 2021-03-23 13:02 (UTC)
Checksum verification fails:
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.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 fromextra
repository.https://github.com/archlinux/svntogit-packages/commit/6fccd0bc5d051b6e1afdb4ecbd457e317b59cda9
https://bugs.archlinux.org/task/70033
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 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 (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: https://github.com/archlinux/svntogit-packages/commit/83dbec474df3f12bd84b07c8415ce530281c756e#diff-8d0411b338c83cd8cd8ad9d9db127101
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:
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
configure-ng.py
with invocations ofconfigure.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):This traceback turned out to be from an invocation of
configure.py
usingpython2
, so I checked whether I hadpython2-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 havepython-sip
installed so that the invocation ofconfigure.py
usingpython3
would succeed as well.)After that, I experienced another error during the
package_pyqt4-common()
phase:It turned out that the error is caused by the
make install
not being properly invoked for thepyrcc
subdirectory by thepackage_pyqt4-common()
function: the value of theDESTDIR
variable is not assigned, so theinstall
target for thepyrcc
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 ofmake install
forpyrcc
andpylupdate
to haveDESTDIR
set to the fakeroot.Here is a diff containing all of my modifications to the tip of the
master
branch: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:
Restart the compilation.
omgold commented on 2019-11-04 11:43 (UTC)
Got the same problem as JohnRobson:
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:
JohnRobson commented on 2019-10-28 00:43 (UTC)
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: https://archive.archlinux.org/packages/s/sip/ 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 https://archive.archlinux.org/packages/s/sip/sip-4.19.16-1-x86_64.pkg.tar.xz 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
version4.19.19-1
isn't compatible withpython2-pyqt4
version4.12.3-3
! I installedsip
version4.19.16-2
and seems working wellzorki 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.
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:
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:
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?
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 thepython-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
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)
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.
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:
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 https://www.riverbankcomputing.com/static/Downloads/sip/sip-4.19.14.tar.gz . 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: http://python.6.x6.nabble.com/PyQt4-compilation-error-with-sip-4-19-14-convert-std-nullptr-t-to-int-in-initialization-td5248504.html
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
else
/ Earlier versions of C++. /
define SIP_NULLPTR 0
define SIP_OVERRIDE
endif
============= 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):
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 https://forum.manjaro.org/t/how-to-install-pkgbuild-file-downloaded-manually/69365
inemum commented on 2018-12-14 02:15 (UTC)
Here are a couple of PKGBUILDs for the sip module: https://gitlab.com/inemum/inemum_archlinux/raw/master/python-sip-pyqt4/PKGBUILD and https://gitlab.com/inemum/inemum_archlinux/raw/master/python2-sip-pyqt4/PKGBUILD
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 http://pyqt.sourceforge.net/Docs/PyQt4/installation.html#building-pyqt4, "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 configure.py --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?
mbloms commented on 2018-09-27 14:57 (UTC)
I get this:
Is the package supposed to be built in a clean chroot?