[SciPy-User] numpy and scipy on mac osx 10.6.4

Matthew Brett matthew.brett@gmail....
Wed Oct 13 14:30:09 CDT 2010


> the command :
> "git checkout farchs-from-c  "
> needs to be run inside the numpy directory ?

Right - thanks for the correction:

> there is the full log (chackout, build, test) :
> http://http.geofemengineering.it/epilog/numpy_log_test

I think you meant http://www.geofemengineering.it/epilog/numpy_log_test ?

You're getting errors like these:

ERROR: test_return_character.TestF90ReturnCharacter.test_all
Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/nose-0.11.4-py2.6.egg/nose/case.py",
line 367, in setUp
    try_run(self.inst, ('setup', 'setUp'))
  File "/Library/Python/2.6/site-packages/nose-0.11.4-py2.6.egg/nose/util.py",
line 491, in try_run
    return func()
  File "/Library/Python/2.6/site-packages/numpy/f2py/tests/util.py",
line 341, in setUp
  File "/Library/Python/2.6/site-packages/numpy/f2py/tests/util.py",
line 73, in wrapper
    memo[key] = func(*a, **kw)
  File "/Library/Python/2.6/site-packages/numpy/f2py/tests/util.py",
line 156, in build_code
  File "/Library/Python/2.6/site-packages/numpy/f2py/tests/util.py",
line 73, in wrapper
    memo[key] = func(*a, **kw)
  File "/Library/Python/2.6/site-packages/numpy/f2py/tests/util.py",
line 137, in build_module
ImportError: dlopen(/var/folders/1H/1HF3mbiVFOOWnbfLVKDmc++++TI/-Tmp-/tmp87fgzl/_test_ext_module_5403.so,
2): no suitable image found.  Did find:
mach-o, but wrong architecture

> seems fortran is broken again, i'm using the fortran that comes form the R research site (as suggested on the scipy site)

I hope that someone who knows what they are doing can help you.

If no-one offers, then see if you can extract the compilation flags
from the f2py build process somehow?

Lacking experience of f2py, I ended up hacking the _installed_ version
of numpy/f2py/tests/utils.py around line 125 to add

print 'build stdout: ', out

to see what flags it was using.



More information about the SciPy-User mailing list