You are not logged in.

#1 2025-04-15 05:04:08

mseDgE2990
Member
Registered: 2025-02-14
Posts: 16

[SOLVED] mugshot wont open after a fresh arch installation

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

#2 2025-04-15 05:38:09

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,668

Re: [SOLVED] mugshot wont open after a fresh arch installation

Its bitching that it cant find which. Is this installed on your system?

Offline

#3 2025-04-15 05:46:03

mseDgE2990
Member
Registered: 2025-02-14
Posts: 16

Re: [SOLVED] mugshot wont open after a fresh arch installation

skunktrader wrote:

Its bitching that it cant find which. Is this installed on your system?

Yes.


I hate Microsoft.

Offline

#4 2025-04-15 05:47:08

mseDgE2990
Member
Registered: 2025-02-14
Posts: 16

Re: [SOLVED] mugshot wont open after a fresh arch installation

Oh wait my mistake, i thought youre takling about mugshot


I hate Microsoft.

Offline

#5 2025-04-15 05:48:07

mseDgE2990
Member
Registered: 2025-02-14
Posts: 16

Re: [SOLVED] mugshot wont open after a fresh arch installation

anyways i installed which and now it works


I hate Microsoft.

Offline

#6 2025-04-15 05:48:38

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,668

Re: [SOLVED] mugshot wont open after a fresh arch installation

yay!

Offline

#7 2025-04-15 12:53:02

tekstryder
Member
Registered: 2013-02-14
Posts: 505

Re: [SOLVED] mugshot wont open after a fresh arch installation

skunktrader wrote:

Its bitching that it cant find which.

mseDgE2990 wrote:

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

#8 2025-04-15 15:21:32

correctmost
Member
Registered: 2024-01-20
Posts: 27

Re: [SOLVED] mugshot wont open after a fresh arch installation

Offline

#9 2025-04-15 15:48:36

mackin_cheese
Member
Registered: 2025-01-07
Posts: 475

Re: [SOLVED] mugshot wont open after a fresh arch installation

mseDgE2990 wrote:

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

Board footer

Powered by FluxBB