Hi everyone,
I am a QIIME2 user that run on AWS using Ubuntu OS. Since I am not located in US region, I should install QIIME2 by our own instead using the QIIME2 service that provided on AWS.
I have faced error using DADA2 in QIIME2-2021 version (2021.4, 2021.8 and 2021.11). When I change it into QIIME2-2020 or 2019, my pipeline work perfectly for DADA2 part. All of errors showing log like this :
Running external command line application(s). This may print messages to stdout and/or stderr.
The command(s) being run are below. These commands cannot be manually re-run as they will depend on temporary files that no longer exist.
Command: run_dada_paired.R /tmp/tmpwctnraxw/forward /tmp/tmpwctnraxw/reverse /tmp/tmpwctnraxw/output.tsv.biom /tmp/tmpwctnraxw/track.tsv /tmp/tmpwctnraxw/filt_f /tmp/tmpwctnraxw/filt_r 230 230 0 0 2.0 2.0 2 12 independent consensus 1.0 1 1000000
Error: package or namespace load failed for âutilsâ:
.onLoad failed in loadNamespace() for 'utils', details:
call: options(op.utils[toset])
error: invalid value for 'editor'
Error: package or namespace load failed for âstatsâ:
.onLoad failed in loadNamespace() for 'utils', details:
call: options(op.utils[toset])
error: invalid value for 'editor'
During startup - Warning messages:
1: package âutilsâ in options("defaultPackages") was not found
2: package âstatsâ in options("defaultPackages") was not found
R version 4.0.5 (2021-03-31)
Loading required package: Rcpp
Error: package or namespace load failed for âRcppâ:
.onLoad failed in loadNamespace() for 'utils', details:
call: options(op.utils[toset])
error: invalid value for 'editor'
Error: package âRcppâ could not be loaded
Execution halted
Traceback (most recent call last):
File "/home/ubuntu/miniconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/q2_dada2/_denoise.py", line 266, in denoise_paired
run_commands([cmd])
File "/home/ubuntu/miniconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/q2_dada2/_denoise.py", line 36, in run_commands
subprocess.run(cmd, check=True)
File "/home/ubuntu/miniconda3/envs/qiime2-2021.11/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['run_dada_paired.R', '/tmp/tmpwctnraxw/forward', '/tmp/tmpwctnraxw/reverse', '/tmp/tmpwctnraxw/output.tsv.biom', '/tmp/tmpwctnraxw/track.tsv', '/tmp/tmpwctnraxw/filt_f', '/tmp/tmpwctnraxw/filt_r', '230', '230', '0', '0', '2.0', '2.0', '2', '12', 'independent', 'consensus', '1.0', '1', '1000000']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ubuntu/miniconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/q2cli/commands.py", line 339, in call
results = action(**arguments)
File "", line 2, in denoise_paired
File "/home/ubuntu/miniconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/qiime2/sdk/action.py", line 245, in bound_callable
outputs = self.callable_executor(scope, callable_args,
File "/home/ubuntu/miniconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/qiime2/sdk/action.py", line 391, in callable_executor
output_views = self._callable(**view_args)
File "/home/ubuntu/miniconda3/envs/qiime2-2021.11/lib/python3.8/site-packages/q2_dada2/_denoise.py", line 279, in denoise_paired
raise Exception("An error was encountered while running DADA2"
Exception: An error was encountered while running DADA2 in R (return code 1), please inspect stdout and stderr to learn more.
Several methods that I used for ensuring the R library reference has no conflict at all by using R -e ".libPaths()" and the message shows the R library has no conflict with other R version like this
.libPaths()
[1] "/home/ubuntu/miniconda3/envs/qiime2-2021.11/lib/R/library"
This error message also comes with the libPaths command above "
Error: package or namespace load failed for âutilsâ:
.onLoad failed in loadNamespace() for 'utils', details:
call: options(op.utils[toset])
error: invalid value for 'editor'
Error: package or namespace load failed for âstatsâ:
.onLoad failed in loadNamespace() for 'utils', details:
call: options(op.utils[toset])
error: invalid value for 'editor'
During startup - Warning messages:
1: package âutilsâ in options("defaultPackages") was not found
2: package âstatsâ in options("defaultPackages") was not found
I have reinstall QIIME2-2021 several times, but this thing happens everytime I use QIIME2-2021 for DADA2 usage. I think the error is in the PATH, but I am not sure since library path also shows the default library that will be used in QIIME2-2021.
Thank you for your help!