ukoethe / vigra

a generic C++ library for image analysis
http://ukoethe.github.io/vigra/
Other
409 stars 191 forks source link

brew install vigra --with-python doesn't install python module #400

Open colemanbroad opened 7 years ago

colemanbroad commented 7 years ago

I'm on mac os x 10.11.6. With brew 1.1.7. I can't import vigra with either my system or brew python. Where do the python modules live?

myname@mycomputer /u/local> brew info vigra --verbose
homebrew/science/vigra: stable 1.11.0 (bottled), HEAD
Image processing and analysis library
https://ukoethe.github.io/vigra/
/usr/local/Cellar/vigra/1.10.0_1 (1,451 files, 49.2M)
  Built from source on 2016-03-30 at 21:36:58
/usr/local/Cellar/vigra/1.11.0 (3,171 files, 109.8M) *
  Built from source on 2017-01-18 at 17:04:58
From: https://github.com/Homebrew/homebrew-science/blob/master/vigra.rb
==> Dependencies
Build: cmake ✔
Required: jpeg ✔, libpng ✔, libtiff ✔
Recommended: hdf5 ✔, fftw ✔
Optional: openexr ✔
==> Requirements
Optional: python ✔
==> Options
--c++11
    Build using C++11 mode
--with-openexr
    Build with openexr support
--with-python
    Build with python support
--without-fftw
    Build without fftw support
--without-hdf5
    Build without hdf5 support
--without-test
    skip tests
--HEAD
    Install HEAD version
colemanbroad commented 7 years ago

After checking INSTALL_RECEIPT.json I realized that somehow fish shell was eating my --with-python flag. I tried reinstalling with bash and ran into an Error 2 during testing. Finally built successfully (with python bindings) using bash and:

brew install --without-check vigra --with-python

ukoethe commented 7 years ago

What testing error did you see?

colemanbroad commented 7 years ago

Here is my brew output. I got an Error 2 after (successfully finishing?) the ChunkedMultiArrayTestSuite.

==> Installing homebrew/science/vigra --with-python
==> Downloading https://github.com/ukoethe/vigra/releases/download/Version-1-11-0/vigra-1.11.0-src.ta
Already downloaded: /Users/colemanbroaddus/Library/Caches/Homebrew/vigra-1.11.0.tar.gz
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREF
==> make
==> make check
Last 15 lines from /Users/colemanbroaddus/Library/Logs/Homebrew/vigra/03.make:
chunked multi array test for type N5vigra16ChunkedArrayLazyILj3EdNSt3__19allocatorIdEEEE: 
    indexing:  64.0688 msec (cache: 0)
chunked multi array test for type N5vigra22ChunkedArrayCompressedILj3EdNSt3__19allocatorIdEEEE: 
    indexing:  62.002 msec (cache: 64)
chunked multi array test for type N5vigra19ChunkedArrayTmpFileILj3EdEE: 
    indexing:  82.7979 msec (cache: 64)
chunked multi array test for type N5vigra16ChunkedArrayHDF5ILj3EdNSt3__19allocatorIdEEEE: 
    indexing:  64.208 msec (cache: 64)
Entering test suite ChunkedMultiArrayTestSuite
All (135) tests passed in test suite ChunkedMultiArrayTestSuite
Leaving test suite ChunkedMultiArrayTestSuite

[100%] Built target test_multiarray_chunked
make[1]: *** [CMakeFiles/check.dir/rule] Error 2
make: *** [check] Error 2

READ THIS: http://docs.brew.sh/Troubleshooting.html

These open issues may also help:
vigra-1.10.0 did not build https://github.com/Homebrew/homebrew-science/issues/2428
ukoethe commented 7 years ago

I don't understand this either -- the test indeed succeeded, but then reported failure back to make.