etal / cnvkit

Copy number variant detection from targeted DNA sequencing
http://cnvkit.readthedocs.org
Other
502 stars 163 forks source link

AttributeError: 'Namespace' object has no attribute 'func' #778

Open jlchen5 opened 1 year ago

jlchen5 commented 1 year ago

Hi, when I run cnvkit in conda environment (python=3.6), it reported an error: AttributeError: 'Namespace' object has no attribute 'func'.

(cnvkit) chenjiale $ cnvkit.py 
Traceback (most recent call last):
  File "/home/chenjiale/miniconda3/envs/cnvkit/bin/cnvkit.py", line 9, in <module>
    args.func(args)
AttributeError: 'Namespace' object has no attribute 'func'

What should I do to deal with it?

Thx! Jiale

tetedange13 commented 1 year ago

Hi @jlchen5,

It is better to install CNVkit inside its own fresh conda environment => Try : conda install -n cnvkit -c conda-forge -c bioconda cnvkit

Your error is probably due to Python version inside your env being too old (for CNVkit v0.9.9, conda usually installs Python=3.9)

Hope this helps ! Have a nice day, Felix.