Does selectivesearch support python3?
dylansun opened this issue · 5 comments
dylansun commented
ATT
sdadia commented
No, the PYPI page of selective does NOT state python 3 support. So I don't think it is supported in python 3.
ZZ-yamashita-mg commented
plz support python3...(´・ω・`)
elitezhe commented
oh...That explains why I come with such error:
File "D:\miniconda3\envs\tensor\lib\site-packages\selectivesearch_init_.py", line 1, in
from selectivesearch import selective_search # NOQA
ImportError: cannot import name 'selective_search'
elitezhe commented
elitezhe commented
maybe should replace line 287
i, j = sorted(list(S.items()), cmp=lambda a, b: cmp(a[1], b[1]))[-1][0]
with
i, j = sorted(list(S.items()), key = lambda a: a[1])[-1][0]