Error running rescript with QIIME2 2021.4.0

Dear QIIME2 Team,

I followed rescript installation guide using Option 1 (Minimal RESCRIPt environment) outlined here.

Both qiime2 and rescript were installed successfully, however when I tried running qiime rescript I got the following error:

Traceback (most recent call last):
File "/home/ubuntu/miniconda3/envs/rescript/bin/qiime", line 11, in
File "/home/ubuntu/miniconda3/envs/rescript/lib/python3.8/site-packages/click/", line 1137, in call
return self.main(*args, **kwargs)
File "/home/ubuntu/miniconda3/envs/rescript/lib/python3.8/site-packages/click/", line 1061, in main
with self.make_context(prog_name, args, **extra) as ctx:
File "/home/ubuntu/miniconda3/envs/rescript/lib/python3.8/site-packages/click/", line 923, in make_context
self.parse_args(ctx, args)
File "/home/ubuntu/miniconda3/envs/rescript/lib/python3.8/site-packages/q2cli/click/", line 43, in parse_args
return super().parse_args(ctx, args)
File "/home/ubuntu/miniconda3/envs/rescript/lib/python3.8/site-packages/click/", line 1624, in parse_args
rest = super().parse_args(ctx, args)
File "/home/ubuntu/miniconda3/envs/rescript/lib/python3.8/site-packages/click/", line 1375, in parse_args
parser = self.make_parser(ctx)
File "/home/ubuntu/miniconda3/envs/rescript/lib/python3.8/site-packages/q2cli/click/", line 33, in make_parser
param.add_to_parser(parser, ctx)
File "/home/ubuntu/miniconda3/envs/rescript/lib/python3.8/site-packages/click/", line 2658, in add_to_parser
File "/home/ubuntu/miniconda3/envs/rescript/lib/python3.8/site-packages/q2cli/click/", line 126, in add_option
option = Q2Option(opts, dest, action=action, nargs=nargs,
TypeError: init() got multiple values for argument 'obj'

Could you kindly help please?
Thank you very much!

Hi! I am not sure what is a reason of the error, but the workaround will be installing rescript with option 2 inside your qiime2 environment and then run qiime dev refresh-cache


Thank you so much, I did the option 2 and it worked :slight_smile:

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