Unvanquished / unvanquished-tray-browser

A minimalistic Unvanquished server browser that runs in the system tray.
GNU General Public License v3.0
2 stars 0 forks source link

AUR install fails #13

Open DolceTriade opened 1 year ago

DolceTriade commented 1 year ago
❯ yay -S unvtray
:: Checking for conflicts...
:: Checking for inner conflicts...
[Repo:1]  python-xlib-0.33-1
[Repo Make:4]  python-pyproject-hooks-1.0.0-1  python-build-0.10.0-1  python-installer-0.7.0-1  python-setuptools-scm-7.1.0-1
[Aur:2]  python-pystray-0.19.4-1  unvtray-0.2.1-1

==> Remove make dependencies after install? [y/N] y
:: Downloaded PKGBUILD (1/2): unvtray
:: Downloaded PKGBUILD (2/2): python-pystray
  2 python-pystray                           (Build Files Exist)
  1 unvtray                                  (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> N
:: (1/2) Parsing SRCINFO: python-pystray
:: (2/2) Parsing SRCINFO: unvtray
[sudo] password for modi: 
resolving dependencies...
looking for conflicting packages...

Packages (5) python-build-0.10.0-1  python-installer-0.7.0-1  python-pyproject-hooks-1.0.0-1  python-setuptools-scm-7.1.0-1  python-xlib-0.33-1

Total Download Size:   0.65 MiB
Total Installed Size:  3.67 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 python-xlib-0.33-1-any                                                                                                      238.0 KiB   280 KiB/s 00:01 [##############################################################################################] 100%
 python-build-0.10.0-1-any                                                                                                   229.2 KiB   277 KiB/s 00:01 [##############################################################################################] 100%
 python-installer-0.7.0-1-any                                                                                                114.7 KiB   199 KiB/s 00:01 [##############################################################################################] 100%
 python-setuptools-scm-7.1.0-1-any                                                                                            67.2 KiB   148 KiB/s 00:00 [##############################################################################################] 100%
 python-pyproject-hooks-1.0.0-1-any                                                                                           17.1 KiB  73.6 KiB/s 00:00 [##############################################################################################] 100%
 Total (5/5)                                                                                                                 666.3 KiB   171 KiB/s 00:04 [##############################################################################################] 100%
(5/5) checking keys in keyring                                                                                                                           [##############################################################################################] 100%
(5/5) checking package integrity                                                                                                                         [##############################################################################################] 100%
(5/5) loading package files                                                                                                                              [##############################################################################################] 100%
(5/5) checking for file conflicts                                                                                                                        [##############################################################################################] 100%
(5/5) checking available disk space                                                                                                                      [##############################################################################################] 100%
:: Processing package changes...
(1/5) installing python-xlib                                                                                                                             [##############################################################################################] 100%
(2/5) installing python-pyproject-hooks                                                                                                                  [##############################################################################################] 100%
(3/5) installing python-build                                                                                                                            [##############################################################################################] 100%
Optional dependencies for python-build
    python-virtualenv: Use virtualenv for build isolation
(4/5) installing python-installer                                                                                                                        [##############################################################################################] 100%
(5/5) installing python-setuptools-scm                                                                                                                   [##############################################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Making package: python-pystray 0.19.4-1 (Mon 17 Apr 2023 11:07:48 AM PDT)
==> Retrieving sources...
  -> Downloading python-pystray-0.19.4.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 47875    0 47875    0     0  37539      0 --:--:--  0:00:01 --:--:-- 50447
==> Validating source files with b2sums...
    python-pystray-0.19.4.tar.gz ... Passed
==> Making package: unvtray 0.2.1-1 (Mon 17 Apr 2023 11:07:50 AM PDT)
==> Retrieving sources...
  -> Downloading v0.2.1.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  608k    0  608k    0     0   958k      0 --:--:-- --:--:-- --:--:-- 7385k
==> Validating source files with sha256sums...
    v0.2.1.tar.gz ... Passed
 -> python-xlib>=0.17 not satisfied, flushing install queue
==> Making package: python-pystray 0.19.4-1 (Mon 17 Apr 2023 11:07:51 AM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found python-pystray-0.19.4.tar.gz
==> Validating source files with b2sums...
    python-pystray-0.19.4.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting python-pystray-0.19.4.tar.gz with bsdtar
==> Sources are ready.
==> Making package: python-pystray 0.19.4-1 (Mon 17 Apr 2023 11:07:52 AM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
/usr/lib/python3.10/site-packages/setuptools/__init__.py:85: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`.
  dist.fetch_build_eggs(dist.setup_requires)
running build
running build_py
creating build
creating build/lib
creating build/lib/pystray
copying lib/pystray/_base.py -> build/lib/pystray
copying lib/pystray/_gtk.py -> build/lib/pystray
copying lib/pystray/_appindicator.py -> build/lib/pystray
copying lib/pystray/_info.py -> build/lib/pystray
copying lib/pystray/_win32.py -> build/lib/pystray
copying lib/pystray/_dummy.py -> build/lib/pystray
copying lib/pystray/_xorg.py -> build/lib/pystray
copying lib/pystray/_darwin.py -> build/lib/pystray
copying lib/pystray/__init__.py -> build/lib/pystray
creating build/lib/pystray/_util
copying lib/pystray/_util/win32.py -> build/lib/pystray/_util
copying lib/pystray/_util/gtk.py -> build/lib/pystray/_util
copying lib/pystray/_util/notify_dbus.py -> build/lib/pystray/_util
copying lib/pystray/_util/__init__.py -> build/lib/pystray/_util
==> Entering fakeroot environment...
==> Starting package_python-pystray()...
/usr/lib/python3.10/site-packages/setuptools/__init__.py:85: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`.
  dist.fetch_build_eggs(dist.setup_requires)
running install
/usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running install_lib
creating /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr
creating /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib
creating /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10
creating /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages
creating /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray
copying build/lib/pystray/_base.py -> /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray
copying build/lib/pystray/_gtk.py -> /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray
copying build/lib/pystray/_appindicator.py -> /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray
copying build/lib/pystray/_info.py -> /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray
copying build/lib/pystray/_win32.py -> /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray
copying build/lib/pystray/_dummy.py -> /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray
creating /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/_util
copying build/lib/pystray/_util/win32.py -> /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/_util
copying build/lib/pystray/_util/gtk.py -> /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/_util
copying build/lib/pystray/_util/notify_dbus.py -> /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/_util
copying build/lib/pystray/_util/__init__.py -> /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/_util
copying build/lib/pystray/_xorg.py -> /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray
copying build/lib/pystray/_darwin.py -> /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray
copying build/lib/pystray/__init__.py -> /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray
byte-compiling /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/_base.py to _base.cpython-310.pyc
byte-compiling /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/_gtk.py to _gtk.cpython-310.pyc
byte-compiling /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/_appindicator.py to _appindicator.cpython-310.pyc
byte-compiling /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/_info.py to _info.cpython-310.pyc
byte-compiling /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/_win32.py to _win32.cpython-310.pyc
byte-compiling /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/_dummy.py to _dummy.cpython-310.pyc
byte-compiling /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/_util/win32.py to win32.cpython-310.pyc
byte-compiling /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/_util/gtk.py to gtk.cpython-310.pyc
byte-compiling /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/_util/notify_dbus.py to notify_dbus.cpython-310.pyc
byte-compiling /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/_util/__init__.py to __init__.cpython-310.pyc
byte-compiling /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/_xorg.py to _xorg.cpython-310.pyc
byte-compiling /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/_darwin.py to _darwin.cpython-310.pyc
byte-compiling /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray/__init__.py to __init__.cpython-310.pyc
writing byte-compilation script '/tmp/tmpq302uwdk.py'
/usr/bin/python /tmp/tmpq302uwdk.py
removing /tmp/tmpq302uwdk.py
running install_egg_info
running egg_info
creating lib/pystray.egg-info
writing lib/pystray.egg-info/PKG-INFO
writing dependency_links to lib/pystray.egg-info/dependency_links.txt
writing requirements to lib/pystray.egg-info/requires.txt
writing top-level names to lib/pystray.egg-info/top_level.txt
writing manifest file 'lib/pystray.egg-info/SOURCES.txt'
reading manifest file 'lib/pystray.egg-info/SOURCES.txt'
adding license file 'COPYING'
adding license file 'COPYING.LGPL'
writing manifest file 'lib/pystray.egg-info/SOURCES.txt'
Copying lib/pystray.egg-info to /home/modi/.cache/yay/python-pystray/pkg/python-pystray/usr/lib/python3.10/site-packages/pystray-0.19.4-py3.10.egg-info
running install_scripts
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "python-pystray"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding changelog file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: python-pystray 0.19.4-1 (Mon 17 Apr 2023 11:08:02 AM PDT)
==> Cleaning up...
 -> python-pystray not satisfied, flushing install queue
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) python-pystray-0.19.4-1

Total Installed Size:  0.24 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                                                           [##############################################################################################] 100%
(1/1) checking package integrity                                                                                                                         [##############################################################################################] 100%
(1/1) loading package files                                                                                                                              [##############################################################################################] 100%
(1/1) checking for file conflicts                                                                                                                        [##############################################################################################] 100%
(1/1) checking available disk space                                                                                                                      [##############################################################################################] 100%
:: Processing package changes...
(1/1) installing python-pystray                                                                                                                          [##############################################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Making package: unvtray 0.2.1-1 (Mon 17 Apr 2023 11:08:03 AM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found v0.2.1.tar.gz
==> Validating source files with sha256sums...
    v0.2.1.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting v0.2.1.tar.gz with bsdtar
==> Sources are ready.
==> Making package: unvtray 0.2.1-1 (Mon 17 Apr 2023 11:08:04 AM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
* Getting build dependencies for wheel...
/usr/lib/python3.10/site-packages/setuptools/config/pyprojecttoml.py:114: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
  warnings.warn(msg, _BetaConfiguration)
validate_pyproject.api.load_builtin_plugin defines `tool.distutils` schema
validate_pyproject.api.load_builtin_plugin defines `tool.setuptools` schema
running egg_info
creating unvtray.egg-info
writing unvtray.egg-info/PKG-INFO
writing dependency_links to unvtray.egg-info/dependency_links.txt
writing entry points to unvtray.egg-info/entry_points.txt
writing requirements to unvtray.egg-info/requires.txt
writing top-level names to unvtray.egg-info/top_level.txt
writing manifest file 'unvtray.egg-info/SOURCES.txt'
reading manifest file 'unvtray.egg-info/SOURCES.txt'
adding license file 'LICENSE.txt'
writing manifest file 'unvtray.egg-info/SOURCES.txt'

ERROR Missing dependencies:
    setuptools-scm
    setuptools -> validate-pyproject -> fastjsonschema<=3,>=2.16.2
    setuptools
    validate-pyproject -> fastjsonschema<=3,>=2.16.2
==> ERROR: A failure occurred in build().
    Aborting...
checking dependencies...

Packages (4) python-build-0.10.0-1  python-installer-0.7.0-1  python-pyproject-hooks-1.0.0-1  python-setuptools-scm-7.1.0-1

Total Removed Size:  2.19 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
(1/4) removing python-setuptools-scm                                                                                                                     [##############################################################################################] 100%
(2/4) removing python-installer                                                                                                                          [##############################################################################################] 100%
(3/4) removing python-build                                                                                                                              [##############################################################################################] 100%
(4/4) removing python-pyproject-hooks                                                                                                                    [##############################################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
Viech commented 1 year ago

Maybe this is an issue with yay (possibly https://github.com/Jguer/yay/issues/944): I put as a buildtime dependency python-setuptools-scm, which has as a dependency python-setuptools, which requires python-validate-pyproject, which finally needs python-fastjsonschema. So all of them should be installed but it looks like only the "root" dependency of python-setuptools-scm is installed for you. Could you check whether installing the mentioned build dependencies manually makes it work?

DolceTriade commented 1 year ago

Hmm, I'm not sure that's correct. Yay relies on pacman to handle transitive dependencies. In my case, I think I have the deps installed...

❯ sudo pacman -Ss python-fastjsonschema
community/python-fastjsonschema 2.16.3-1 [installed]
    Fast JSON schema validator for Python

❯ sudo pacman -Ss validate-pyproject
extra/python-validate-pyproject 0.12.2-1 [installed]
    Validation library and CLI tool for checking on 'pyproject.toml' files using JSON Schema

❯ sudo pacman -Ss python-setuptools
extra/python-setuptools 1:67.6.1-1 [installed]
    Easily download, build, install, upgrade, and uninstall Python packages
Viech commented 1 year ago

I'm note yet sure what is wrong, then. If you clone the repo, does python -m build work? Does the PKGBUILD work when you remove --no-isolation? Can you make a full update just in case?

I think I've seen the same kind of error with a different AUR package in the past (forgot which one) but I cannot reproduce it for unvtray (using trizen instead of yay).