Core-metrics-phylogenetic: Plugin error from Diversity returned non-zero exit status 126

I am currently running 2024.3 and am getting a non-zero exit status I don't understand.

Running external command line application. This may print messages to stdout and/or stderr.
The command being run is below. This command cannot be manually re-run as it will depend on temporary files that no longer exist.

Command:

faithpd -i /tmp/qiime2/jerry/data/07a5c5b0-7bc6-4a57-831b-6af2d87930ee/data/feature-table.biom -t /tmp/qiime2/jerry/data/950a038c-1b05-42aa-965b-9c6d88be81dc/data/tree.nwk -o /tmp/q2-AlphaDiversityFormat-vy79xu7m

/home/jerry/miniconda3/envs/qiime2-amplicon/bin/faithpd: line 43: /home/jerry/miniconda3/envs/qiime2-amplicon/bin/faithpd_nv_avx2: cannot execute binary file: Exec format error
/home/jerry/miniconda3/envs/qiime2-amplicon/bin/faithpd: line 43: /home/jerry/miniconda3/envs/qiime2-amplicon/bin/faithpd_nv_avx2: Success
Traceback (most recent call last):
File "/home/jerry/miniconda3/envs/qiime2-amplicon/lib/python3.8/site-packages/q2cli/commands.py", line 520, in call
results = self._execute_action(
File "/home/jerry/miniconda3/envs/qiime2-amplicon/lib/python3.8/site-packages/q2cli/commands.py", line 586, in _execute_action
results = action(**arguments)
File "", line 2, in core_metrics_phylogenetic
File "/home/jerry/miniconda3/envs/qiime2-amplicon/lib/python3.8/site-packages/qiime2/sdk/action.py", line 342, in bound_callable
outputs = self.callable_executor(
File "/home/jerry/miniconda3/envs/qiime2-amplicon/lib/python3.8/site-packages/qiime2/sdk/action.py", line 647, in callable_executor
outputs = self._callable(scope.ctx, **view_args)
File "/home/jerry/miniconda3/envs/qiime2-amplicon/lib/python3.8/site-packages/q2_diversity/_core_metrics.py", line 65, in core_metrics_phylogenetic
faith_pd_vector, = faith_pd(table=cr.rarefied_table,
File "", line 2, in faith_pd
File "/home/jerry/miniconda3/envs/qiime2-amplicon/lib/python3.8/site-packages/qiime2/sdk/context.py", line 143, in deferred_action
return action_obj._bind(
File "", line 2, in faith_pd
File "/home/jerry/miniconda3/envs/qiime2-amplicon/lib/python3.8/site-packages/qiime2/sdk/action.py", line 342, in bound_callable
outputs = self.callable_executor(
File "/home/jerry/miniconda3/envs/qiime2-amplicon/lib/python3.8/site-packages/qiime2/sdk/action.py", line 566, in callable_executor
output_views = self._callable(**view_args)
File "", line 2, in faith_pd
File "/home/jerry/miniconda3/envs/qiime2-amplicon/lib/python3.8/site-packages/q2_diversity_lib/_util.py", line 75, in _validate_tables
return wrapped_function(*args, **kwargs)
File "", line 2, in faith_pd
File "/home/jerry/miniconda3/envs/qiime2-amplicon/lib/python3.8/site-packages/q2_diversity_lib/_util.py", line 118, in _validate_requested_cpus
return wrapped_function(*bound_arguments.args, **bound_arguments.kwargs)
File "/home/jerry/miniconda3/envs/qiime2-amplicon/lib/python3.8/site-packages/q2_diversity_lib/alpha.py", line 54, in faith_pd
_omp_cmd_wrapper(threads, cmd)
File "/home/jerry/miniconda3/envs/qiime2-amplicon/lib/python3.8/site-packages/q2_diversity_lib/_util.py", line 134, in _omp_cmd_wrapper
return _run_external_cmd(cmd, verbose=verbose, env=env)
File "/home/jerry/miniconda3/envs/qiime2-amplicon/lib/python3.8/site-packages/q2_diversity_lib/_util.py", line 128, in _run_external_cmd
return subprocess.run(cmd, check=True, env=env)
File "/home/jerry/miniconda3/envs/qiime2-amplicon/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['faithpd', '-i', '/tmp/qiime2/jerry/data/07a5c5b0-7bc6-4a57-831b-6af2d87930ee/data/feature-table.biom', '-t', '/tmp/qiime2/jerry/data/950a038c-1b05-42aa-965b-9c6d88be81dc/data/tree.nwk', '-o', '/tmp/q2-AlphaDiversityFormat-vy79xu7m']' returned non-zero exit status 126.

Hi @Jerry,

Welcome to the :qiime2: forum!
Can you tell me which operating system are you using? and you mentioned you are running a 2024.3 qiime environment, do you mean qiime2-amplicon-2024.2?
One thing that could be worth trying is deleting your qiime environment and creating a new one, making extra sure you are downloading the correct version for your OS and use case (amplicon vs. shotgun etc.)
When I searched the forum for this issue I found that it has been solved before. This post in particular seems to be similar to your issue. Please check it out and if you are still having trouble I am happy to help.

--Hannah

2 Likes

Thank you, @jphagen. I have solved the problem. My operating system is Ubuntu 22.04.1 LTS (GNU/Linux 4.4.0-19041-Microsoft x86_64). And my qiime environment is qiime2-amplicon-2024.2.

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.