podman-compose
podman-compose copied to clipboard
Unspecific error message when podman is not installed
If I just install podman-compose without installing podman I get the following error message.
Traceback (most recent call last):
File "/home/jonas/.local/bin/podman-compose", line 8, in <module>
sys.exit(main())
File "/home/jonas/.local/lib/python3.8/site-packages/podman_compose.py", line 1381, in main
podman_compose.run()
File "/home/jonas/.local/lib/python3.8/site-packages/podman_compose.py", line 815, in run
self.podman_version = self.podman.output(["--version"]).decode('utf-8').strip()
File "/home/jonas/.local/lib/python3.8/site-packages/podman_compose.py", line 689, in output
return subprocess.check_output(cmd)
File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'podman'
If find that a bit misleading, because in line 816 is already catched another error (subprocess.CalledProcessError) with a better error message