Package Details: pyside2-tools 5.15.16+3.1-1

Git Clone URL: https://aur.archlinux.org/pyside2.git (read-only, click to copy)
Package Base: pyside2
Description: Tools for PySide2
Upstream URL: https://wiki.qt.io/Qt_for_Python
Licenses: LGPL-3.0-or-later
Submitter: arojas
Maintainer: envolution
Last Packager: envolution
Votes: 12
Popularity: 0.86
First Submitted: 2024-04-16 07:05 (UTC)
Last Updated: 2025-03-16 16:14 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

envolution commented on 2025-03-16 16:22 (UTC)

@zo0M please confirm you have [extra] in /etc/pacman.conf

@ccorn thanks for the report and patch

zo0M commented on 2025-03-16 16:01 (UTC) (edited on 2025-03-16 16:02 (UTC) by zo0M)

I have this package hanging in the updates and it constantly crashes when trying to install. Fix it, please:

Installation log
Preparing...
Synchronizing package databases...
Refreshing AUR...
Nothing to do.
Checking python-shiboken2 dependencies...
Resolving dependencies...
Checking inter-conflicts...

Building pyside2...
==> Making package: pyside2 5.15.16+3.1-1 (Sun 16 Mar 2025 07:00:19 PM MSK)
==> Checking runtime dependencies...
==> Missing dependencies:
  -> python-numpy
  -> qt5-quickcontrols2
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

ccorn commented on 2025-03-16 15:09 (UTC)

In chroot builds, _pythonpath does not get set properly, because when the chroot's makepkg reads PKGBUILD, Python has not been installed there yet. Consequently _pythonpath will be empty, the associated -I flags will be useless, numpy/arrayobject.h won't get found, and build() will fail.

Fix: Set _pythonpath not at top level, but at function level.

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -35,7 +35,10 @@ sha256sums=('6d3ed6fd17275ea74829ab56df9c2e7641bfca6b5b201cf244998fa81cf07360'
             '2f39461136a718a9f75bd94c1e71fc358764af25f68c650fd503c777e32ff302')

 _pkgdir="pyside-setup-opensource-src-${_pkgver}"
-_pythonpath=$(python -c "from sysconfig import get_path; print(get_path('platlib'))")
+
+_get_python_libdir() {
+  python -c "from sysconfig import get_path; print(get_path('platlib'))"
+}

 prepare() {
   mapfile -t _patch_series <debian/patches/series
@@ -47,6 +50,7 @@ prepare() {
 }

 build() {
+  local _pythonpath="$(_get_python_libdir)"
   cd $_pkgdir
   CFLAGS="-I${_pythonpath}/numpy/_core/include $CFLAGS"
   CXXFLAGS="-I${_pythonpath}/numpy/_core/include $CXXFLAGS"
@@ -79,6 +83,7 @@ package_shiboken2() {
 package_python-shiboken2() {
   pkgdesc='Python bindings for shiboken2'
   depends=('python' 'pyside2')
+  local _pythonpath="$(_get_python_libdir)"

   cd $_pkgdir
   DESTDIR="${pkgdir}" cmake --install build/sources/shiboken2
@@ -113,6 +118,7 @@ package_pyside2() {
     'qt5-quickcontrols2: QtQuickControls2 bindings'
   )
   provides=('qt5-python-bindings')
+  local _pythonpath="$(_get_python_libdir)"

   cd $_pkgdir
   DESTDIR="${pkgdir}" cmake --install build/sources/pyside2

Score_Under commented on 2025-01-04 13:02 (UTC)

Please can you bump pkgrel for the new deps list change?

leo72 commented on 2025-01-01 09:46 (UTC)

@envolution: I took your note about numpy as a suggestion and reinstalled it. And now I finally managed to compile pyside2: for some reason, some files got corrupted. Thanks.

PS: I'm not French, I'm Italian and the messages you read in my log were in italian ;-)

envolution commented on 2024-12-31 18:09 (UTC)

@leo72 you're missing python-numpy or it's not properly installed mais je ne parle pas français et je n'utilise pas Manjaro donc je ne suis pas sûr. joyeuses fêtes

leo72 commented on 2024-12-31 09:14 (UTC) (edited on 2024-12-31 09:14 (UTC) by leo72)

@envolution: here is the link for the log: https://pastebin.com/rxryr5Fk Thanks for your patience

envolution commented on 2024-12-30 06:57 (UTC)

@Zame are you in a country that is possibly blocking you?

https://download.qt.io/official_releases/QtForPython/shiboken2/PySide2-5.15.16-src/pyside-setup-opensource-src-5.15.16.tar.xz.mirrorlist

you can find links from various countries there. clone this repo and put a copy of pyside-setup-opensource-src-5.15.16.tar.xz inside, then makepkg -si

Zame commented on 2024-12-30 06:19 (UTC) (edited on 2024-12-30 06:20 (UTC) by Zame)

Every time:

Failed to connect to download.qt.io port 443 after 133991 ms: Could not connect to server

VPN or not - no matter ( But can ping download.qt.io

Mustard007 commented on 2024-12-26 18:16 (UTC)

Ok thanks ! :D