FileNotFoundError: [Errno 2] No such file or directory: 'cabal'
As package manager does not yet check the REQUIREMENTS of the Requirement classes, it doesnt know if the executable (such as cabal
) exists, but tries to run it anyway, and then doesnt catch the exception.
/usr/lib/python3.6/site-packages/dependency_management/requirements/AnyOneOfRequirements.py:39: in is_installed
if requirement.is_installed():
/usr/lib/python3.6/site-packages/dependency_management/requirements/CabalRequirement.py:62: in is_installed
stderr=Capture()).returncode
/usr/lib/python3.6/site-packages/sarge/__init__.py:1411: in run
p.run(input=input, async=async)
/usr/lib/python3.6/site-packages/sarge/__init__.py:1040: in run
self.run_node(node, input=input, async=async)
/usr/lib/python3.6/site-packages/sarge/__init__.py:1136: in run_node
result = getattr(self, method)(node, input, async)
/usr/lib/python3.6/site-packages/sarge/__init__.py:1282: in run_command_node
node.cmd.run(input=input, async=async)
/usr/lib/python3.6/site-packages/sarge/__init__.py:632: in run
self.process = p = Popen(self.args, **self.kwargs)
/usr/lib64/python3.6/subprocess.py:707: in __init__
restore_signals, start_new_session)
/usr/lib64/python3.6/subprocess.py:1326: in _execute_child
raise child_exception_type(errno_num, err_msg)
E FileNotFoundError: [Errno 2] No such file or directory: 'cabal'