Package Details: pythonqt 3.4.1-1

Git Clone URL: (read-only, click to copy)
Package Base: pythonqt
Description: A dynamic Python binding for Qt applications
Upstream URL:
Keywords: library qt5
Licenses: LGPL2.1
Conflicts: pythonqt-for-screencloud, pythonqt-svn, qt5-python27-git
Replaces: pythonqt-qt5
Submitter: ainola
Maintainer: Nim65s
Last Packager: Nim65s
Votes: 15
Popularity: 0.059143
First Submitted: 2015-08-09 19:29 (UTC)
Last Updated: 2023-05-13 15:21 (UTC)

Latest Comments

1 2 3 Next › Last »

zerophase commented on 2023-04-21 21:09 (UTC)

Could the issue be ccache?

jghodd commented on 2023-02-21 17:18 (UTC) (edited on 2023-02-21 22:51 (UTC) by jghodd)

@RouterGray - no, it seems fine when built in a clean environment. you don't have to do a thing. it builds.

@Nim65s - this should have been a clean non-chroot build for me too as my systems are 100% up-to-date, at least vis-a-vis the official repositories. also, and it's a big also, the dependencies installed by my call to makechrootpkg all came from my package repository - in other words, they were all already installed on my system. anyway, i'm having a little more trouble explaining it away as just an outdated dependency, even if it appears that's what it has to be.

Edit: looks like it also builds on my other 64-bit arch system that i typically only use for nfs service - as a non-chroot build. that system is also up-to-date, but is less likely to have installed on it much other than what came from the arch repos (there's some, but not much). so there is something installed on my main system that's interfering with some of my builds.

RouterGray commented on 2023-02-21 03:36 (UTC)

Thanks guys but as I only have one application as far as I can tell even requiring PythonQT, and it's working fine with the currently installed version, this package can just sit and count sheep in ignore until something makes me need to fix this more than I do right now.

Nim65s commented on 2023-02-20 21:48 (UTC)

For me, this build both in a clean container and on my everyday desktop. I guess some dependency was outdated in your build.

jghodd commented on 2023-02-19 21:43 (UTC) (edited on 2023-02-20 21:15 (UTC) by jghodd)

I'm posting this edit above the fray this time, as it were, because I got it built. You have to do a clean chroot build - the arch wiki details the setup and execution. Anyway, if you have a CHROOT build environment already setup and installed, run the following to update your chroot environment:

$ arch-nspawn $CHROOT/root pacman -Syu

Then run the following, or something similar, depending on your paths and package versions, from the directory containing the PKGBUILD - you have to install the package dependencies:

$ makechrootpkg -c -r $CHROOT -I /var/cache/pacman/pkg/qt5-multimedia-5.15.8+kde+r2-1-x86_64.pkg.tar.zst -I /var/cache/pacman/pkg/qt5-svg-5.15.8+kde+r8-1-x86_64.pkg.tar.zst -I /var/cache/pacman/pkg/python-3.10.9-1-x86_64.pkg.tar.zst -I /var/cache/pacman/pkg/qt5-webkit-5.212.0alpha4-18-x86_64.pkg.tar.zst -I /var/cache/pacman/pkg/qt5-declarative-5.15.8+kde+r24-2-x86_64.pkg.tar.zst -I /var/cache/pacman/pkg/git-2.39.2-1-x86_64.pkg.tar.zst -I /var/cache/pacman/pkg/qt5-tools-5.15.8+kde+r1-3-x86_64.pkg.tar.zst

That should get the package built.

If you'd rather download it, it'll be here:

Am getting the same linker errors as @RouterGray. Pages of them. Unquestionably ltrans.

/bin/ld: /tmp/ccrrAbUD.ltrans88.ltrans.o: in function `bool PythonQtConvertPythonListToListOfKnownClass<QList<QWebSecurityOrigin>, QWebSecurityOrigin>(_object*, void*, int, bool)':
<artificial>:(.text+0xe7b): undefined reference to `PythonQtConv::castWrapperTo(PythonQtInstanceWrapper*, QByteArray const&, bool&)'

Gave you only one line because there are hundreds of lines similar to, or just like the one posted.

Edit: there is no source file called ltrans-dot-anything. Whatever the ltrans is, it appears to be some intermediary file naming thing used by the linker. The actual issue is what the error is - undefined references. These boil down to just a handfull (from what I can see - the rest scrolled off my screen):

  1. PythonQtGILScope::~PythonQtGILScope()
  2. PythonQtConv::ConvertPythonToQt()
  3. PythonQtPrivate::handleMetaCall()
  4. PythonQtPrivate::registerCPPClass()
  5. PythonQtPrivate::registerClass()

Can anybody shed some light on why we might be seeing undefined references to these methods? I have to assume that the classes it proclaims to have undefined references should be part and parcel of this same source code bundle. In other words, PythonQtGILScope is obviously part of the pythonQt package, etc.

RouterGray commented on 2023-02-16 18:37 (UTC) (edited on 2023-02-16 18:38 (UTC) by RouterGray)

I get several pages of this error, for multiple functions, when this tries to link ltrans.o:

/usr/bin/ld: /tmp/cc7hUc1A.ltrans79.ltrans.o: in function `PythonQtShell_QWebView::wheelEvent(QWheelEvent*) [clone .cold]':
<artificial>:(.text.unlikely+0xf3c): undefined reference to `PythonQtGILScope::~PythonQtGILScope()'

Nim65s commented on 2021-10-03 09:59 (UTC)

micwoj92: I "fixed" it. Still waiting for a new upstream release though…

micwoj92 commented on 2021-09-28 22:40 (UTC) (edited on 2021-09-28 22:40 (UTC) by micwoj92)

Build fails for me with

../../generated_cpp_56/com_trolltech_qt_core/com_trolltech_qt_core1.cpp: In member function ‘void PythonQtWrapper_QMessageLogger::critical(QMessageLogger*, const char*) const’:
../../generated_cpp_56/com_trolltech_qt_core/com_trolltech_qt_core1.cpp:4954:31: error: format not a string literal and no format arguments [-Werror=format-security]
 4954 |   ( theWrappedObject->critical(msg));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
../../generated_cpp_56/com_trolltech_qt_core/com_trolltech_qt_core1.cpp: In member function ‘void PythonQtWrapper_QMessageLogger::debug(QMessageLogger*, const char*) const’:
../../generated_cpp_56/com_trolltech_qt_core/com_trolltech_qt_core1.cpp:4959:28: error: format not a string literal and no format arguments [-Werror=format-security]
 4959 |   ( theWrappedObject->debug(msg));
      |     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
../../generated_cpp_56/com_trolltech_qt_core/com_trolltech_qt_core1.cpp: In member function ‘void PythonQtWrapper_QMessageLogger::fatal(QMessageLogger*, const char*) const’:
../../generated_cpp_56/com_trolltech_qt_core/com_trolltech_qt_core1.cpp:4964:28: error: format not a string literal and no format arguments [-Werror=format-security]
 4964 |   ( theWrappedObject->fatal(msg));
      |     ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
../../generated_cpp_56/com_trolltech_qt_core/com_trolltech_qt_core1.cpp: In member function ‘void PythonQtWrapper_QMessageLogger::info(QMessageLogger*, const char*) const’:
../../generated_cpp_56/com_trolltech_qt_core/com_trolltech_qt_core1.cpp:4969:27: error: format not a string literal and no format arguments [-Werror=format-security]
 4969 |   ( theWrappedObject->info(msg));
      |     ~~~~~~~~~~~~~~~~~~~~~~^~~~~
../../generated_cpp_56/com_trolltech_qt_core/com_trolltech_qt_core1.cpp: In member function ‘void PythonQtWrapper_QMessageLogger::noDebug(QMessageLogger*, const char*) const’:
../../generated_cpp_56/com_trolltech_qt_core/com_trolltech_qt_core1.cpp:4974:30: error: format not a string literal and no format arguments [-Werror=format-security]
 4974 |   ( theWrappedObject->noDebug(arg__1));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
../../generated_cpp_56/com_trolltech_qt_core/com_trolltech_qt_core1.cpp: In member function ‘void PythonQtWrapper_QMessageLogger::warning(QMessageLogger*, const char*) const’:
../../generated_cpp_56/com_trolltech_qt_core/com_trolltech_qt_core1.cpp:4979:30: error: format not a string literal and no format arguments [-Werror=format-security]
 4979 |   ( theWrappedObject->warning(msg));
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~

There is active repo hosted on GitHub, but releases are not available error is maybe fixed on the upstream git but I haven't checked yet.

AlfredoRamos commented on 2017-06-13 18:21 (UTC)

Adding a symlink doesn't seems to be a good idea to me, as I will need to hardcode the source file [0] of the symbolic link. Instead, I added a patch [1] that generates a pkg-config file [2], so you can use this tool to get the library [3]. pkg-config --libs PythonQt # -lPythonQt-Qt5-Python3 [0]: libPythonQt-Qt{4,5}-Python{2,2.7,3,3.6,3.6m} [1]: [2]: [3]: