Package Details: python3-xcpf 2021.12-14

Git Clone URL: https://aur.archlinux.org/python3-xcpf.git (read-only, click to copy)
Package Base: python3-xcpf
Description: Xyne's common Pacman functions, for internal use.
Upstream URL: https://xyne.dev/projects/python3-xcpf
Keywords: pacman
Licenses: GPL
Submitter: Xyne
Maintainer: Xyne
Last Packager: Xyne
Votes: 116
Popularity: 0.145098
First Submitted: 2015-10-07 00:13 (UTC)
Last Updated: 2024-05-17 23:45 (UTC)

Latest Comments

1 2 3 Next › Last »

Basxto commented on 2023-08-18 10:05 (UTC)

This broke with how it gets used by bauerbill:

 bauerbill -Si pacman
Traceback (most recent call last):
  File "/usr/bin/bauerbill", line 4, in <module>
    sys.exit(run_main())
             ^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/Bauerbill.py", line 1084, in run_main
    return main(args)
           ^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/Bauerbill.py", line 1056, in main
    return bb.display_sync_info()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/Bauerbill.py", line 823, in display_sync_info
    print(XCPF.format_pkginfo(p))
          ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/XCPF/common.py", line 845, in format_pkginfo
    Licenses        : {format_pkginfo_string(pkg.licenses)}
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/XCPF/common.py", line 829, in format_pkginfo_string
    lines = textwrap.wrap(desc, width=WRAP_WIDTH-margin, break_long_words=False)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/textwrap.py", line 384, in wrap
    return w.wrap(text)
           ^^^^^^^^^^^^
  File "/usr/lib/python3.11/textwrap.py", line 356, in wrap
    chunks = self._split_chunks(text)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/textwrap.py", line 342, in _split_chunks
    text = self._munge_whitespace(text)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/textwrap.py", line 151, in _munge_whitespace
    text = text.expandtabs(self.tabsize)
           ^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'expandtabs'

Fix: (string conversion from probably unicode)

lines = textwrap.wrap(str(desc), width=WRAP_WIDTH-margin, break_long_words=False)

Xyne commented on 2021-12-14 16:14 (UTC)

The host changed some settings. The errors should resolve soon.

dotted commented on 2021-12-14 06:07 (UTC)

Unable to update, using wget I get this:

➜  ~ wget https://xyne.dev/projects/python3-xcpf/src/python3-xcpf-2021.11.tar.xz
--2021-12-14 07:06:39--  https://xyne.dev/projects/python3-xcpf/src/python3-xcpf-2021.11.tar.xz
SSL_INIT
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving xyne.dev (xyne.dev)... 104.21.67.125, 172.67.174.199, 2606:4700:3037::6815:437d, ...
Connecting to xyne.dev (xyne.dev)|104.21.67.125|:443... connected.
HTTP request sent, awaiting response... 503 Service Temporarily Unavailable
2021-12-14 07:06:39 ERROR 503: Service Temporarily Unavailable.

icedream commented on 2021-11-14 17:48 (UTC)

xyne.archlinux.ca no longer seems to resolve as of right now (2021-11-14 18:48 CEST), source file downloads fail immediately.

thotypous commented on 2021-01-03 21:12 (UTC)

Please change depends from python-xdg to python-pyxdg. Although extra/python-pyxdg provides python-xdg and that is shown by AUR web interface, people using repoctl may accidentally download and build python-xdg from AUR, which is an old version:

Traceback (most recent call last):
  File "/usr/bin/powerpill", line 3, in <module>
    import Powerpill
  File "/usr/lib/python3.9/site-packages/Powerpill.py", line 43, in <module>
    import pm2ml
  File "/usr/lib/python3.9/site-packages/pm2ml.py", line 36, in <module>
    import XCPF
  File "/usr/lib/python3.9/site-packages/XCPF/__init__.py", line 4, in <module>
    from .common import *
  File "/usr/lib/python3.9/site-packages/XCPF/common.py", line 37, in <module>
    import xdg.BaseDirectory
ModuleNotFoundError: No module named 'xdg.BaseDirectory'

Xyne commented on 2019-04-10 21:07 (UTC)

@Pastafarianist It's been integrated since the end January.

Pastafarianist commented on 2019-03-30 14:19 (UTC)

Any progress on integrating the patch?