biocore / redbiom

Sample search by metadata and features
Other
45 stars 20 forks source link

Resolution of ambiguities on fetch sample-metadata can trigger an AttributeError #92

Closed wasade closed 3 years ago

wasade commented 4 years ago

It appears click.exit is invalid, this likely should be cli.exit

Traceback (most recent call last):
  File "/Users/Tanya/miniconda3/envs/qiime2-2019.7/bin/redbiom", line 10, in <module>
    sys.exit(cli())
  File "/Users/Tanya/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/Users/Tanya/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/Users/Tanya/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/Tanya/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/Tanya/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/Tanya/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/Users/Tanya/miniconda3/envs/qiime2-2019.7/lib/python3.6/site-packages/redbiom/commands/fetch.py", line 80, in fetch_sample_metadata
    click.exit(1)
AttributeError: module 'click' has no attribute 'exit'