installing dadi

530 views
Skip to first unread message

Luke

unread,
Dec 12, 2011, 1:28:04 PM12/12/11
to dadi-user
Hi,
I'm new to both dadi and python. I've downloaded python 2.7, and as
called from the terminal it seems to be working correctly (mac X
10.6.8). I've tried to install dadi from the source using python
setup.py install, and this is the message I get:

Traceback (most recent call last):
File "setup.py", line 11, in <module>
import numpy.distutils.core as core
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/site-packages/numpy/__init__.py", line 137, in <module>
import add_newdocs
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/site-packages/numpy/add_newdocs.py", line 9, in <module>
from numpy.lib import add_newdoc
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/site-packages/numpy/lib/__init__.py", line 4, in <module>
from type_check import *
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/site-packages/numpy/lib/type_check.py", line 8, in <module>
import numpy.core.numeric as _nx
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/
python2.7/site-packages/numpy/core/__init__.py", line 5, in <module>
import multiarray
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/
lib/python2.7/site-packages/numpy/core/multiarray.so, 2): no suitable
image found. Did find:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-
packages/numpy/core/multiarray.so: no matching architecture in
universal wrapper

I'm sure this is from something I've done or haven't done, but I'm not
sure what to try next. Sorry to bother you with such a basic
question, but is there anything you could suggest I try?
Thanks,
Luke

Gutenkunst, Ryan N - (rgutenk)

unread,
Dec 12, 2011, 6:22:05 PM12/12/11
to dadi...@googlegroups.com
Hello Luke,

Unfortunately, python on Macs can be a little confusing because of 32-bit
versus 64-bit issues. We suggest installing an enthought python
distribution: http://www.enthought.com/products/edudownload.php . The
enthought distribution includes all the libraries you need, and it ensures
that they all work together. (Note that the latest Mac binary for dadi was
built using the 64-bit version of Enthought.)

Also note that to build from source, you'll also need to install the Apple
Developer Tools: http://developer.apple.com/xcode/ .

Best,
Ryan
>--
>You received this message because you are subscribed to the Google Groups
>"dadi-user" group.
>To post to this group, send email to dadi...@googlegroups.com.
>To unsubscribe from this group, send email to
>dadi-user+...@googlegroups.com.
>For more options, visit this group at
>http://groups.google.com/group/dadi-user?hl=en.
>
>
>


--
Ryan Gutenkunst
Assistant Professor
Molecular and Cellular Biology
University of Arizona
phone: (520) 626-0569
http://gutengroup.mcb.arizona.edu




Luke

unread,
Dec 13, 2011, 1:48:55 PM12/13/11
to dadi-user
Thanks so much, Ryan. I installed the enthought distribution, and
have now installed dadi. Working through your examples next. Thanks
so much for your help.
Cheers,
Luke

On Dec 12, 4:22 pm, "Gutenkunst, Ryan N - (rgutenk)"


<rgut...@email.arizona.edu> wrote:
> Hello Luke,
>
> Unfortunately, python on Macs can be a little confusing because of 32-bit
> versus 64-bit issues. We suggest installing an enthought python

> distribution:http://www.enthought.com/products/edudownload.php. The


> enthought distribution includes all the libraries you need, and it ensures
> that they all work together. (Note that the latest Mac binary for dadi was
> built using the 64-bit version of Enthought.)
>
> Also note that to build from source, you'll also need to install the Apple
> Developer Tools:http://developer.apple.com/xcode/.
>
> Best,
> Ryan
>

Gutenkunst, Ryan N - (rgutenk)

unread,
Sep 10, 2012, 11:36:28 AM9/10/12
to dadi...@googlegroups.com
Hi Jim,

This is most likely due to an incompatibility between python versions. What type of machine are you running on? If you're on an old mac, you may need the 32-bit version of the Enthougt distribution. 

Another possibility is that you have multiple versions of python on your machine, and you used one version to build dadi and are using another version to try and run dadi. The simplest solution is to run the installation again. If you save the output of the following commands, I can help more if you have problems.

In the source code directory for dadi, run "rm -rf build" to remove the remains of the previous installation. Then run "which python". (This will show which version of python is being used.) Then run "python setup.py build install". In a different directory then run "which python; python -V" to print the python version. Then start python and run "import dadi" to test loading dadi.

Let me know if this doesn't help.

Best,
Ryan

On 9/5/12 3:12 PM, "Jim M" <mcg...@gmail.com> wrote:

Hi,

I'm also new to dadi and I have run into the same problem as Luke: 

(ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): no suitable image found.  Did find:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/multiarray.so: no matching architecture in universal wrapper

However, for me, loading the enthought version of Python did not resolve the problem. I do xcode/developer tools loaded and have activated the command line tools so that I have a working GCC compiler.

Any advice on resolving this installation problem would be much appreciated!

Jim
To view this discussion on the web visit https://groups.google.com/d/msg/dadi-user/-/Mofgpy-VJnYJ.

To post to this group, send email to dadi...@googlegroups.com.
To unsubscribe from this group, send email to dadi-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dadi-user?hl=en.
Reply all
Reply to author
Forward
0 new messages