ImportError: cannot import name comb

5,022 views
Skip to first unread message

Tom Emmel

unread,
Mar 1, 2016, 5:02:29 PM3/1/16
to dadi-user
Hello,

I downloaded and successfully installed gutenkunstlab-dadi-be60b074fec3.zip for python-2.7.8, but I'm getting the error below.  Numpy, scipy and comb have been updated to their latest versions.  Is there a version conflict here?

# python
Python 2.7.8 (default, May  5 2015, 03:24:24)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dadi
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/dadi/__init__.py", line 11, in <module>
  File "build/bdist.linux-x86_64/egg/dadi/Demographics1D.py", line 6, in <module>
  File "build/bdist.linux-x86_64/egg/dadi/Numerics.py", line 13, in <module>
ImportError: cannot import name comb

Thanks,
Tom


Gutenkunst, Ryan N - (rgutenk)

unread,
Mar 3, 2016, 2:22:36 PM3/3/16
to dadi...@googlegroups.com
Hello Tom,

This may be an error with your scipy installation. At the python command line, try "from scipy.misc import comb" and then "from scipy import comb". If neither of those works, it indicates a problem with your scipy installation.

Best,
Ryan

--
You received this message because you are subscribed to the Google Groups "dadi-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dadi-user+...@googlegroups.com.
To post to this group, send email to dadi...@googlegroups.com.
Visit this group at https://groups.google.com/group/dadi-user.
For more options, visit https://groups.google.com/d/optout.

--
Ryan Gutenkunst
Assistant Professor
Molecular and Cellular Biology
University of Arizona
phone: (520) 626-0569, office LSS 325
Latest paper: "Whole genome sequence analyses of Western Central African Pygmy hunter-gatherers reveal a complex demographic history and identify candidate genes under positive natural selection"

Reply all
Reply to author
Forward
0 new messages