ecopy icon indicating copy to clipboard operation
ecopy copied to clipboard

ImportError: cannot import name 'comb'

Open zhonghua-zheng opened this issue 5 years ago • 2 comments

from scipy.misc import comb
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-383354b6dee0> in <module>
----> 1 from scipy.misc import comb

ImportError: cannot import name 'comb'

scipy.misc.comb(*args, **kwds) comb is deprecated! Importing comb from scipy.misc is deprecated in scipy 1.0.0. Use scipy.special.comb instead.

https://docs.scipy.org/doc/scipy-1.2.1/reference/generated/scipy.misc.comb.html

zhonghua-zheng avatar Sep 03 '19 17:09 zhonghua-zheng

comb is now in scipy.special.comb. I think it was part of the v1.0.0 release. Your best bet is to fork this and make the change. Then ask the author to pull it back in.

DDeFilippis avatar Jul 30 '20 20:07 DDeFilippis

this has been solved by the commit 0aa4cbc07d20fa8d6a2c8f69ce0c19ba6866803f merged in pull request #17 Installing ecopy directly from source thus solve this problem. One way to quickly do it:

git clone https://github.com/Auerilas/ecopy.git ecopy_source
pip install ecopy_source/

simoncarrignon avatar Jan 05 '21 23:01 simoncarrignon