sufforest / SolidBin

A genome binning method for contig binning, based on semi-supervised spectral clustering method.
GNU General Public License v2.0
13 stars 3 forks source link

ImportError: cannot import name 'izip' from 'itertools' (unknown location) #5

Closed caity-s closed 5 years ago

caity-s commented 5 years ago

Hello,

I am looking forward to trying SolidBin! However, I'm having problems with the conda installation. I followed the instructions

git clone https://github.com/sufforest/SolidBin
cd SolidBin
conda env create -f environment.yml
conda activate solidbin

Which went smoothly, but I when trying to determine the composition I ran into an import problem:

python scripts/gen_kmer.py 
Traceback (most recent call last):
  File "scripts/gen_kmer.py", line 10, in <module>
    from itertools import tee, izip
ImportError: cannot import name 'izip' from 'itertools' (unknown location)

Do you have suggested solution? Thank you, Caitlin

ziyewang commented 5 years ago

We have fix the bug, you can download the latest version and have a try.

lowspace commented 4 years ago

We have fix the bug, you can download the latest version and have a try.

Hi, I have met the same issue in another package, but the author seems to be away from this package. Could u please tell me how to solve this issue?

shrinivas96 commented 3 years ago

Hi @lowspace. I face the same problem. It seems Python 3 does not have/need itertools.izip(). The solution seems to be to replace izip(...) with zip(...).