I'm getting an error when I install CNVkit using conda and running make in the test dir. The steps I follow:
$conda config --add channels defaults
$conda config --add channels bioconda
$conda config --add channels conda-forge
$conda create -n cnvkit cnvkit
$conda activate cnvkit
$cd cnvkit/test/
$make
python ../cnvkit.py import-picard picard/p2-5_5.targetcoverage.csv picard/p2-5_5.antitargetcoverage.csv picard/p2-9_5.targetcoverage.csv picard/p2-9_5.antitargetcoverage.csv picard/p2-20_5.targetcoverage.csv picard/p2-20_5.antitargetcoverage.csv -d build/
Traceback (most recent call last):
File "../cnvkit.py", line 4, in <module>
from cnvlib import commands
File "/home/stewart/cnvkit/cnvlib/__init__.py", line 1, in <module>
from skgenome.tabio import write
File "/home/stewart/cnvkit/skgenome/__init__.py", line 1, in <module>
from . import tabio
File "/home/stewart/cnvkit/skgenome/tabio/__init__.py", line 14, in <module>
from . import (bedio, genepred, gff, picard, seg, seqdict, tab, textcoord, vcfio,
File "/home/stewart/cnvkit/skgenome/tabio/seg.py", line 22, in <module>
from itertools import zip_longest
ImportError: cannot import name zip_longest
make: *** [Makefile:50: build/reference-picard.cnn] Error 1
Any suggestions on what to fix/update? Working on 16.04.1 Ubuntu server. Thanks in advance.
What is your
Python
version?I think this answer in StackOverflow may help
So you can edit the line
Instead of
Thanks for your reply. You're correct, but I'm not sure of the fix. See my response to jared.andrews07 below.