[SciPy-User] problem with installing on osx 10.6.6

P B pbajk at yahoo.co.uk
Mon May 9 17:06:50 EDT 2011


Hi,this is odd.  IF I put in the command >>> import numpy>>> import scipy>>> scipy.test(verbose=2)
I get the output
Running unit tests for scipyNumPy version 1.5.1NumPy is installed in /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpySciPy version 0.9.0SciPy is installed in /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipyPython version 2.6.6 (r266:84374, Aug 31 2010, 11:00:51) [GCC 4.0.1 (Apple Inc. build 5493)]nose version 1.0.0
*******  many test results which then finish with:
OK (KNOWNFAIL=12, SKIP=42)<nose.result.TextTestResult run=4733 errors=0 failures=0>
Could it be there is a problem with the "scipy.test('1','10')" command?
I tried to send the whole printout, but it may have been too big for my email system.
Thanks,Peter
--- On Mon, 9/5/11, Ralf Gommers <ralf.gommers at googlemail.com> wrote:

From: Ralf Gommers <ralf.gommers at googlemail.com>
Subject: Re: [SciPy-User] problem with installing on osx 10.6.6
To: "SciPy Users List" <scipy-user at scipy.org>
Date: Monday, 9 May, 2011, 21:15



On Mon, May 9, 2011 at 9:09 PM, P B <pbajk at yahoo.co.uk> wrote:

Hi,
I', having trouble with scipy.  
I have followed the instructions at scipy website and have installed the following on my mac osx 10.6.6 (taken from the sourceforge binarys)


NumPy version 1.5.1
NumPy is installed in /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy
SciPy version 0.8.0
SciPy is installed in /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy

Python version 2.6.6 (r266:84374, Aug 31 2010, 11:00:51) [GCC 4.0.1 (Apple Inc. build 5493)]
nose version 1.0.0

When I run the test scipy.test('1','10')

some items seem to pass:

test_streams.test_make_stream(True,) ... ok


Some tests seem to be skipped:

nose.selector: INFO:
 /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/io/matlab/mio5_utils.so is executable; skipped

some seem to fail:
/Users/user/.python26_compiled/m7/module_multi_function.cpp:13:19: error: complex: No such file or directory


and

======================================================================
ERROR: test_string_and_int (test_ext_tools.TestExtModule)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/weave/tests/test_ext_tools.py", line 72, in test_string_and_int
    mod.compile(location = build_dir)

  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/weave/ext_tools.py", line 367, in compile
    verbose = verbose, **kw)
  File
 "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/weave/build_tools.py", line 273, in build_extension
    setup(name = module_name, ext_modules = [ext],verbose=verb)
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/distutils/core.py", line 186, in setup

    return old_setup(**new_attr)
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 169, in setup
    raise SystemExit, "error: " + str(msg)
CompileError: error: Command "c++ -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/weave -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/weave/scxx
 -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/weave/scxx/weave_imp.cpp -o /var/folders/4b/4bhByeH9HSuDIezfnSZ6G++++TI/-Tmp-/user/python26_intermediate/compiler_7ca1591dfd3261e140e707030a00840e/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scipy/weave/scxx/weave_imp.o" failed with exit status 1


with the final result being:

FAILED (KNOWNFAIL=15, SKIP=40, errors=242, failures=2)
<nose.result.TextTestResult run=5282 errors=242 failures=2>

I'm assuming I have the wrong version of something, so I upgraded to scipy 0.9.  


Sadly that led to essentially the same results.  Can anyone advise me what to do next?

Hmm, this is a little unusual, if you used the binary installers from SF for numpy 1.5.1 and scipy 0.8 / 0.9, and the Python binary from python.org, that should just work. Can you provide the complete output of "scipy.test(verbose=2)" (if it's too large put it on a pastebin site)?  


Ralf




-----Inline Attachment Follows-----

_______________________________________________
SciPy-User mailing list
SciPy-User at scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20110509/ca70ab61/attachment.html>


More information about the SciPy-User mailing list