Package Details: archey4 4.14.3.0-1

Git Clone URL: https://aur.archlinux.org/archey4.git (read-only, click to copy)
Package Base: archey4
Description: A simple system information tool written in Python
Upstream URL: https://github.com/HorlogeSkynet/archey4.git
Keywords: archey bsd linux monitoring neofetch python3 screenfetch screenshot system-information
Licenses: GPLv3
Groups: utils
Conflicts: archey-git, archey2, archey3-git, archey4-git, pyarchey
Provides: archey
Submitter: HorlogeSkynet
Maintainer: HorlogeSkynet
Last Packager: HorlogeSkynet
Votes: 17
Popularity: 0.108937
First Submitted: 2017-11-27 20:06 (UTC)
Last Updated: 2024-04-06 08:16 (UTC)

Dependencies (13)

Required by (0)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

HorlogeSkynet commented on 2021-09-04 17:20 (UTC) (edited on 2021-09-04 17:36 (UTC) by HorlogeSkynet)

@vasilejianu : good one. Although I'm confused about catching PermissionError in this case, as all the other sub-process calls across the code base do not, whereas the same problem could occur. What do you think about that ? Do you think this exception should be caught elsewhere ?

vasilejianu commented on 2021-09-04 17:07 (UTC)

→ find . -name "brew*" ./root/.oh-my-bash/completions/brew.completion.sh ./root/.oh-my-bash/plugins/brew ./root/.oh-my-bash/plugins/brew/brew.plugin.sh

seems that this is the culprit

HorlogeSkynet commented on 2021-09-04 16:57 (UTC)

@vasilejianu : could you try to run which brew under your regular user ? You can also use a (broad) find if nothing comes out; I'm pretty sure you got a brew (apparently not executable) somewhere. Almost there !

vasilejianu commented on 2021-09-04 16:51 (UTC)

this is interesting i have run the test manually under user priv it fails , under root privs it passes

[vas@apex-main archey4]$ python3 -m unittest .......................................................E...................................................................................... ====================================================================== ERROR: archey.test.entries.test_archey_packages (unittest.loader._FailedTest)


ImportError: Failed to import test module: archey.test.entries.test_archey_packages Traceback (most recent call last): File "/usr/lib/python3.9/unittest/loader.py", line 436, in _find_test_path module = self._get_module_from_name(name) File "/usr/lib/python3.9/unittest/loader.py", line 377, in _get_module_from_name import(name) File "/home/vas/archey4/archey/test/entries/test_archey_packages.py", line 9, in <module> from archey.entries.packages import Packages File "/home/vas/archey4/archey/entries/packages.py", line 34, in <module> {'cmd': ('ls', '-1', get_homebrew_cellar_path())}, # HomeBrew. File "/home/vas/archey4/archey/entries/packages.py", line 14, in get_homebrew_cellar_path return check_output( File "/usr/lib/python3.9/subprocess.py", line 424, in check_output return run(popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib/python3.9/subprocess.py", line 505, in run with Popen(popenargs, **kwargs) as process: File "/usr/lib/python3.9/subprocess.py", line 951, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) PermissionError: [Errno 13] Permission denied: 'brew'


Ran 142 tests in 1.315s

FAILED (errors=1) [vas@apex-main archey4]$ sudo python3 -m unittest ...........................................................................................................................................................


Ran 155 tests in 1.302s

OK [vas@apex-main archey4]$

HorlogeSkynet commented on 2021-09-04 16:15 (UTC)

@vasilejianu : so I've tried with yay myself against an Arch container, and the check() part is really doing well... I think something is to blamed on your system (noexec(?), yay configuration(?), somehow brew is available under PATH on your vas regular user(?), ...). If you find out, please let me know. If something is definitely wrong upstream, let me know too. Good luck

vasilejianu commented on 2021-09-04 15:40 (UTC)

i don't have brew its weird is doing that its a minimal arch install Linux apex-main 5.13.13-arch1-1 #1 all i have is nginx,mariadb,php,named

which brew which: no brew in (/usr/local/sbin:/usr/local/bin:/usr/bin:/root/.dotnet/tools:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)

HorlogeSkynet commented on 2021-09-04 14:39 (UTC)

Hi @vasilejianu, thanks for your feedback. Have you got brew installed on your system ? Can you run brew --cellar manually ? I don't get why it would raise PermissionError exception, but we can catch it upstream in the future if needed... Bye, waiting for your input.

vasilejianu commented on 2021-09-04 14:12 (UTC)

getting this when trying to upgrade or clean install the latest build , any help ? thanks

==> Starting check()... .......................................................E...................................................................................... ====================================================================== ERROR: archey.test.entries.test_archey_packages (unittest.loader._FailedTest)


ImportError: Failed to import test module: archey.test.entries.test_archey_packages Traceback (most recent call last): File "/usr/lib/python3.9/unittest/loader.py", line 436, in _find_test_path module = self._get_module_from_name(name) File "/usr/lib/python3.9/unittest/loader.py", line 377, in _get_module_from_name import(name) File "/home/vas/.cache/yay/archey4/src/archey4-4.13.1/archey/test/entries/test_archey_packages.py", line 9, in <module> from archey.entries.packages import Packages File "/home/vas/.cache/yay/archey4/src/archey4-4.13.1/archey/entries/packages.py", line 34, in <module> {'cmd': ('ls', '-1', get_homebrew_cellar_path())}, # HomeBrew. File "/home/vas/.cache/yay/archey4/src/archey4-4.13.1/archey/entries/packages.py", line 14, in get_homebrew_cellar_path return check_output( File "/usr/lib/python3.9/subprocess.py", line 424, in check_output return run(popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib/python3.9/subprocess.py", line 505, in run with Popen(popenargs, **kwargs) as process: File "/usr/lib/python3.9/subprocess.py", line 951, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) PermissionError: [Errno 13] Permission denied: 'brew'


Ran 142 tests in 1.304s

FAILED (errors=1) ==> ERROR: A failure occurred in check(). Aborting... error making: archey4

schnedan commented on 2021-02-08 12:38 (UTC)

Thx... you are right.

HorlogeSkynet commented on 2021-02-03 17:25 (UTC)

Hi @schnedan, it looks like you are running an old configuration layout (depreciated in v4.9.0, removed in v4.10.0). Please see https://github.com/HorlogeSkynet/archey4/releases/tag/v4.9.0 or https://github.com/HorlogeSkynet/archey4/wiki/Migration-guides#configuration-file-layout-change. Happy upgrade, BR