Command exited with code 256

I come across this error while trying to install games, I’m new to linux and don’t understand what’s wrong. It’s a fresh system, help would be appreciated.

Started initial process 31321 from /home/eray/Games/roblox/install.py
Start monitoring process.
running install_locally
INFO:Install Grapejuice locally:Running task sequence
INFO:Install Grapejuice locally:Task status: ???????
INFO:Install Grapejuice locally:-- Running task -> Build package of supplemental files --
INFO:Build Linux Package:Running task sequence
INFO:Build Linux Package:Task status: ?????
INFO:Build Linux Package:-- Running task -> Compile mo files --
INFO:Build Linux Package:Using locale directory: build/supplemental_package/.local/share/locale
INFO:grapejuice_common.util.mo_util:Compiling mo files into build/supplemental_package/.local/share/locale
INFO:grapejuice_common.util.mo_util:Using LINGUAS /home/eray/Games/roblox/src/grapejuice_common/assets/po/LINGUAS
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/eray/Games/roblox/src/grapejuice_packaging/__main__.py", line 88, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/eray/Games/roblox/src/grapejuice_packaging/__main__.py", line 79, in main
    return f(args) or 0
           ^^^^^^^
  File "/home/eray/Games/roblox/src/grapejuice_packaging/__main__.py", line 40, in func_supplemental_package
    builder.build()
  File "/home/eray/Games/roblox/src/grapejuice_packaging/builders/linux_package_builder.py", line 147, in build
    _build_package(self._configuration)
  File "/home/eray/Games/roblox/src/grapejuice_packaging/builders/linux_package_builder.py", line 132, in _build_package
    build.run()
  File "/home/eray/Games/roblox/src/grapejuice_packaging/util/task_sequence.py", line 56, in run
    task_func(self._log)
  File "/home/eray/Games/roblox/src/grapejuice_packaging/builders/linux_package_builder.py", line 69, in compile_mo_files
    mo_util.compile_mo_files(locale_directory)
  File "/home/eray/Games/roblox/src/grapejuice_common/util/mo_util.py", line 23, in compile_mo_files
    subprocess.check_call(["msgfmt", str(po_file), "-o", str(mo_file)])
  File "/usr/lib64/python3.11/subprocess.py", line 408, in check_call
    retcode = call(*popenargs, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/subprocess.py", line 389, in call
    with Popen(*popenargs, **kwargs) as p:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'msgfmt'
Traceback (most recent call last):
  File "/home/eray/Games/roblox/setup.py", line 76, in <module>
    main()
  File "/home/eray/Games/roblox/setup.py", line 33, in main
    setup(
  File "/usr/lib/python3.11/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 177, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 193, in run_commands
    dist.run_commands()
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 1229, in run_command
    super().run_command(command)
  File "/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
    cmd_obj.run()
  File "/home/eray/Games/roblox/src/grapejuice_packaging/local_install.py", line 126, in run
    _do_install(self.user_options)
  File "/home/eray/Games/roblox/src/grapejuice_packaging/local_install.py", line 112, in _do_install
    install.run()
  File "/home/eray/Games/roblox/src/grapejuice_packaging/util/task_sequence.py", line 56, in run
    task_func(self._log)
  File "/home/eray/Games/roblox/src/grapejuice_packaging/local_install.py", line 47, in build_supplemental
    subprocess.check_call([
  File "/usr/lib64/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'grapejuice_packaging', 'supplemental_package']' returned non-zero exit status 1.
Traceback (most recent call last):
  File "/home/eray/Games/roblox/install.py", line 115, in <module>
    perform_install()
  File "/home/eray/Games/roblox/install.py", line 30, in perform_install
    subprocess.check_call([sys.executable, "setup.py", "install_locally"])
  File "/usr/lib64/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', 'setup.py', 'install_locally']' returned non-zero exit status 1.
Monitored process exited.
Initial process has exited (return code: 256)
All processes have quit
Exit with return code 256

You are missing the “msgfmt” program, which basically compiles translations into binary format. This is part of the gettext package, or may be gettext-tools in your distribution.

P.S. I mean specifically, to use your distribution’s package manager to install “gettext” and/or “gettext-tools” packages :slight_smile: