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.
cnvkit
What is your
Pythonversion?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.
I'm having similar issues on
POP!_OS(built off Ubuntu 19). I've made a conda environment that uses python3 but get the same error:Check versions of
condaandpythonMake a conda environment that uses
Python3(and verify it!)Configure
conda, installCNVkitand its dependenciesTesting the installation
when you run a command with
sudoit will run in a completely different environment that corresponds to the default environment for the superuserbut why are you running
sudoin the first place?there should be no need to do that
Why is this post added as an answer to the principal question? Does it answer it? If not, it should be a comment or a new question.