Package Details: pythonqt 3.5.2-1

Git Clone URL: https://aur.archlinux.org/pythonqt.git (read-only, click to copy)
Package Base: pythonqt
Description: A dynamic Python binding for Qt applications
Upstream URL: https://github.com/MeVisLab/pythonqt
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: 14
Popularity: 0.000055
First Submitted: 2015-08-09 19:29 (UTC)
Last Updated: 2024-04-30 14:12 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

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: https://sourceforge.net/projects/bluestarlinux/files/repo/x86_64/pythonqt-3.4.0-1-x86_64.pkg.tar.zst


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 https://github.com/MeVisLab/pythonqt 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]: https://aur.archlinux.org/cgit/aur.git/tree/create_pkgconfig_file.patch?h=pythonqt&id=7d6aea2dc8bbab00d55b24de0e772f8e9ddc8d01 [2]: https://aur.archlinux.org/cgit/aur.git/tree/pkgconfig_file.prf?h=pythonqt&id=7d6aea2dc8bbab00d55b24de0e772f8e9ddc8d01 [3]: https://doc.qt.io/qt-5/qmake-project-files.html#configuration-features

rigon commented on 2017-06-13 10:46 (UTC)

The libraby /usr/lib/libPythonQt.so no longer exists. Programs compiled against this library cannot link anymore. Can you fix this with a symlink?

lybin commented on 2017-02-01 12:44 (UTC)

@AlfredoRamos, you're right, sorry, it was some problem on my side. Thx

AlfredoRamos commented on 2017-01-31 21:58 (UTC)

@lybin I just built your package with no problem using makepkg and pacaur. Please copy and paste the full output to a pastebin site [1] and post the link. ___ [1]: https://pastebin.osuosl.org/

lybin commented on 2017-01-31 12:34 (UTC)

/usr/include/PythonQt/PythonQtPythonInclude.h:59:20: fatal error: Python.h: No such file or directory I got error when build aur/screencloud

AlfredoRamos commented on 2017-01-30 16:44 (UTC)

Package updated, now it must build with Qt 5.8