nicotine-plus-git 3.3.0.dev4.r8629.897858496-1 build fails with "AttributeError: 'PathDistribution' object has no attribute 'key'". Full output here: https://pastebin.com/vwUm7kXd
Search Criteria
Package Details: nicotine-plus-git 3.3.0.dev4.r8629.897858496-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/nicotine-plus-git.git (read-only, click to copy) |
---|---|
Package Base: | nicotine-plus-git |
Description: | A graphical client for the SoulSeek peer-to-peer system |
Upstream URL: | https://nicotine-plus.org |
Licenses: | GPL3 |
Conflicts: | nicotine, nicotine+, nicotine-plus |
Provides: | nicotine, nicotine+, nicotine-plus |
Submitter: | jorge_barroso |
Maintainer: | yochananmarqos |
Last Packager: | yochananmarqos |
Votes: | 58 |
Popularity: | 0.152703 |
First Submitted: | 2013-08-15 17:48 (UTC) |
Last Updated: | 2023-01-07 14:44 (UTC) |
Dependencies (13)
- python-gobject (python-gobject-git)
- git (git-vfs, git-run-command-patch-git, git-git, git-fc) (make)
- python-build (make)
- python-installer (python-installer-git) (make)
- python-setuptools (make)
- python-wheel (make)
- appstream-glib (appstream-glib-git) (check)
- desktop-file-utils (desktop-file-utils-git) (check)
- python-pytest-xvfb (check)
- gspell (optional) – for spell checking in chat (Gtk 3 only)
- gtk3 (gtk3-git, gtk3-typeahead, gtk3-classic-noatk-64, gtk3-ubuntu, gtk3-no_deadkeys_underline, gtk3-patched-filechooser-icon-view, gtk3-classic) (optional) – fallback if gtk4 is not installed
- gtk4 (gtk-rc, gtk4-git, gtk4-paper-plane) (optional) – default Gtk version
- libadwaita (libadwaita-git, libadwaita-testing, libadwaita-without-adwaita-git) (optional) – used with gtk4 if available
Required by (0)
Sources (1)
rwd2 commented on 2023-02-19 10:25 (UTC)
yochananmarqos commented on 2022-11-07 14:36 (UTC)
@duvel71: Fixed.
duvel71 commented on 2022-11-07 07:24 (UTC) (edited on 2022-11-07 14:54 (UTC) by duvel71)
Those two added files break the installation:
==> Retrieving sources...
-> Updating nicotine-plus git repo...
-> Found org.nicotine_plus.Nicotine-gtk4.desktop
-> Found org.nicotine_plus.Nicotine-libadwaita.desktop
==> Validating source files with sha256sums...
nicotine-plus ... Skipped
org.nicotine_plus.Nicotine-gtk4.desktop ... FAILED
org.nicotine_plus.Nicotine-libadwaita.desktop ... FAILED
==> ERROR: One or more files did not pass the validity check!
Edit: This problem is now fixed on a clean build, thanks.
katt commented on 2021-10-18 14:10 (UTC) (edited on 2021-10-18 14:13 (UTC) by katt)
==> Starting pkgver()...
==> ERROR: pkgver is not allowed to contain colons, forward slashes, hyphens or whitespace.
==> ERROR: pkgver() generated an invalid version: po/nb_NO.po:7: warning: header field 'Project-Id-Version' still has the initial default value
po/tr.po:7: warning: header field 'Project-Id-Version' still has the initial default value
3.2.0.dev1.r5888.5f79d641
Maybe just stick to a normal pkgver?
https://wiki.archlinux.org/title/VCS_package_guidelines#The_pkgver()_function
katt@main ~ » git -C /mnt/jupiter/etc/makepkg/sources/nicotine-plus describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
3.1.1.r516.g5f79d641
yochananmarqos commented on 2021-10-04 21:42 (UTC) (edited on 2021-12-15 06:57 (UTC) by yochananmarqos)
Test the GTK4 version:
NICOTINE_GTK_VERSION=4 nicotine
Test the Gtk 4 version with Libadwaita:
NICOTINE_GTK_VERSION=4 NICOTINE_LIBADWAITA=1 nicotine
Desktop files are now included for both.
yochananmarqos commented on 2021-01-27 18:39 (UTC)
@BachoSeven: I can't reproduce that in a clean chroot. Make sure you're doing a clean build.
BachoSeven commented on 2021-01-27 18:36 (UTC)
@yochananmarqos Shares unit test is failing with:
================================================= FAILURES ==================================================
_____________________________________________ test_shares_scan ______________________________________________
def test_shares_scan():
""" Test a full shares scan """
config = Config("temp_config", DB_DIR)
config.sections["transfers"]["shared"] = [("Shares", SHARES_DIR)]
shares = Shares(None, config, queue.Queue(0))
shares.rescan_shares()
# Verify that modification time was saved for shares folder
> assert SHARES_DIR in list(config.sections["transfers"]["sharedmtimes"])
E AssertionError: assert '/home/fra/.cache/paru/clone/nicotine-plus-git/src/nicotine-plus/test/unit/shares/sharedfiles' in []
E + where [] = list(<shelve.Shelf object at 0x7f953f355ee0>)
test/unit/shares/test_shares.py:49: AssertionError
------------------------------------------- Captured stdout call --------------------------------------------
[2021-01-27 19:35:53] Can't create directory '', reported error: [Errno 2] No such file or directory: ''
_______________________________________ test_hidden_file_folder_scan ________________________________________
def test_hidden_file_folder_scan():
""" Test that hidden files and folders are excluded """
config = Config("temp_config", DB_DIR)
config.sections["transfers"]["shared"] = [("Shares", SHARES_DIR)]
shares = Shares(None, config, queue.Queue(0))
> shares.rescan_shares()
test/unit/shares/test_shares.py:88:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pynicotine/shares.py:283: in rescan_shares
self._rescan_shares("normal", rebuild)
pynicotine/shares.py:322: in _rescan_shares
self.rescan_dirs(
pynicotine/shares.py:401: in rescan_dirs
self.get_files_index(sharestype, newsharedfiles)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pynicotine.shares.Shares object at 0x7f953f37c640>, sharestype = 'normal', sharedfiles = {}
def get_files_index(self, sharestype, sharedfiles):
""" Update Search index with new files """
""" We dump data directly into the file index shelf to save memory """
if sharestype == "normal":
section = target = "fileindex"
else:
section = "bfileindex"
target = "buddyfileindex"
> self.config.sections["transfers"][section].close()
E AttributeError: 'dict' object has no attribute 'close'
pynicotine/shares.py:720: AttributeError
yochananmarqos commented on 2021-01-03 16:50 (UTC)
@rwd2: I've disabled the test for now.
rwd2 commented on 2021-01-03 12:11 (UTC) (edited on 2021-01-03 12:14 (UTC) by rwd2)
Build fails with:
running build_scripts
creating build/scripts-3.9
copying and adjusting nicotine -> build/scripts-3.9
changing mode of build/scripts-3.9/nicotine from 644 to 755
==> Starting check()...
Traceback (most recent call last):
File "/home/user1/documents/aur/nicotine-plus-git/src/nicotine-plus/./nicotine", line 279, in <module>
run()
File "/home/user1/documents/aur/nicotine-plus-git/src/nicotine-plus/./nicotine", line 240, in run
version()
File "/home/user1/documents/aur/nicotine-plus-git/src/nicotine-plus/./nicotine", line 101, in version
print(_("Nicotine+ version %s") % pynicotine.utils.version)
NameError: name '_' is not defined
==> ERROR: A failure occurred in check().
Aborting...
Pinned Comments
yochananmarqos commented on 2021-10-04 21:42 (UTC) (edited on 2021-12-15 06:57 (UTC) by yochananmarqos)
Test the GTK4 version:
Test the Gtk 4 version with Libadwaita:
Desktop files are now included for both.