Monday 15 February 2010

python - Mavericks: brew install scipy -- okay, brew test scipy -- failure -



python - Mavericks: brew install scipy -- okay, brew test scipy -- failure -

i followed suggestion here installing scipy on mavericks , ran:

brew install python3 pip3 install virtualenv nose brew install numpy --with-python3 brew install scipy --with-python3 brew test numpy brew test scipy

and didn't run problem until lastly command, produced:

testing scipy ==> python -c import scipy; assert not scipy.test().failures python version 2.7.5 (default, mar 9 2014, 22:15:05) [gcc 4.2.1 compatible apple llvm 5.0 (clang-500.0.68)] nose version 1.3.4 traceback (most recent phone call last): file "<string>", line 1, in <module> assertionerror error: scipy: failed failed executing: python -c import\ scipy;\ assert\ not\ scipy.test().failures /usr/local/library/homebrew/formula.rb:585:in `system' /usr/local/library/taps/homebrew/homebrew-python/scipy.rb:78:in `block (2 levels) in <class:scipy>' /usr/local/library/homebrew/language/python.rb:25:in `call' /usr/local/library/homebrew/language/python.rb:25:in `block in each_python' /usr/local/library/homebrew/language/python.rb:17:in `each' /usr/local/library/homebrew/language/python.rb:17:in `each_python' /usr/local/library/taps/homebrew/homebrew-python/scipy.rb:77:in `block in <class:scipy>' /usr/local/library/homebrew/formula.rb:509:in `block in run_test' /usr/local/library/homebrew/extend/fileutils.rb:21:in `mktemp' /usr/local/library/homebrew/formula.rb:507:in `run_test' /usr/local/library/homebrew/cmd/test.rb:59:in `block (2 levels) in test' /system/library/frameworks/ruby.framework/versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:66:in `timeout' /usr/local/library/homebrew/cmd/test.rb:58:in `block in test' /usr/local/library/homebrew/cmd/test.rb:37:in `each' /usr/local/library/homebrew/cmd/test.rb:37:in `test' /usr/local/library/brew.rb:136:in `<main>'

and when open python3 , type import scipy; scipy.test() hundreds of errors , dozens of failed tests:

failed (knownfail=276, skip=920, errors=326, failures=42) <nose.result.texttestresult run=16412 errors=326 failures=42>

what did wrong? had installed bunch of software (like python), uninstalled , started over, didn't cleanly. can salvage without reinstalling mavericks?

meanwhile, homebrew installed gcc 4.9 dependency of numpy, output suggests i'm still using whatever had installed xcode. separate issue, gcc -v gives me:

configured with: --prefix=/library/developer/commandlinetools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 apple llvm version 6.0 (clang-600.0.54) (based on llvm 3.5svn) target: x86_64-apple-darwin13.4.0 thread model: posix

the reason mention i'd know if caused bigger problem system.

these errors spurious , may ignored. fixed in upcoming release of scipy. scipy issue explaining problem here: https://github.com/scipy/scipy/issues/3853

the homebrew-python scipy formula applies same prepare scipy apply in next release; after brew update && brew reinstall scipy, brew test scipy pass.

python installation scipy osx-mavericks homebrew

No comments:

Post a Comment