You are not logged in.
I recently installed arch with xfce through the wiki and opening mugshot through the applications menu wont work. and when i open it through a terminal it just throws some python errors
heres what happens when i execute 'mugshot' through the terminal:
Traceback (most recent call last):
File "/usr/bin/mugshot", line 36, in <module>
mugshot.main()
~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/mugshot/__init__.py", line 47, in main
window = MugshotWindow.MugshotWindow()
File "/usr/lib/python3.13/site-packages/mugshot_lib/Window.py", line 53, in __new__
new_object.finish_initializing(builder)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/usr/lib/python3.13/site-packages/mugshot/MugshotWindow.py", line 184, in finish_initializing
if get_has_camera_support():
~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/mugshot/MugshotWindow.py", line 119, in get_has_camera_support
if not which('gst-inspect-1.0'):
~~~~~^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/mugshot/MugshotWindow.py", line 51, in which
command = subprocess.Popen(['which', command],
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
stdout=subprocess.PIPE).stdout.read().strip()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/subprocess.py", line 1038, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pass_fds, cwd, env,
^^^^^^^^^^^^^^^^^^^
...<5 lines>...
gid, gids, uid, umask,
^^^^^^^^^^^^^^^^^^^^^^
start_new_session, process_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/subprocess.py", line 1974, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'which'this does not happen when i install arch through an archinstall script and i dont know why.
any help?
Last edited by mseDgE2990 (2025-04-15 05:48:24)
I hate Microsoft.
Offline
Its bitching that it cant find which. Is this installed on your system?
Offline
Its bitching that it cant find which. Is this installed on your system?
Yes.
I hate Microsoft.
Offline
Oh wait my mistake, i thought youre takling about mugshot
I hate Microsoft.
Offline
anyways i installed which and now it works
I hate Microsoft.
Offline
yay!
Offline
Its bitching that it cant find which.
i installed which and now it works
The which utility was deprecated years ago, but is still around on Arch I guess.
@mseDgE2990: You could file an issue with the mugshot upstream project to utilize POSIX-compliant command -v as a replacement
Offline
I filed a packaging bug: https://gitlab.archlinux.org/archlinux/ … -/issues/1
Offline
I recently installed arch with xfce through the wiki and opening mugshot through the applications menu wont work. and when i open it through a terminal it just throws some python errors
heres what happens when i execute 'mugshot' through the terminal:
Traceback (most recent call last): File "/usr/bin/mugshot", line 36, in <module> mugshot.main() ~~~~~~~~~~~~^^ File "/usr/lib/python3.13/site-packages/mugshot/__init__.py", line 47, in main window = MugshotWindow.MugshotWindow() File "/usr/lib/python3.13/site-packages/mugshot_lib/Window.py", line 53, in __new__ new_object.finish_initializing(builder) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib/python3.13/site-packages/mugshot/MugshotWindow.py", line 184, in finish_initializing if get_has_camera_support(): ~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/lib/python3.13/site-packages/mugshot/MugshotWindow.py", line 119, in get_has_camera_support if not which('gst-inspect-1.0'): ~~~~~^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/site-packages/mugshot/MugshotWindow.py", line 51, in which command = subprocess.Popen(['which', command], ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ stdout=subprocess.PIPE).stdout.read().strip() ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/subprocess.py", line 1038, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pass_fds, cwd, env, ^^^^^^^^^^^^^^^^^^^ ...<5 lines>... gid, gids, uid, umask, ^^^^^^^^^^^^^^^^^^^^^^ start_new_session, process_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.13/subprocess.py", line 1974, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'which'this does not happen when i install arch through an archinstall script and i dont know why.
any help?
Please read the errors and try to discern what it's trying to tell you before making a post. This is a DIY distro, you should be able to know how to do research and how to troubleshoot these issues with some logical thinking.
Offline