dstndstn / tractor

The Tractor: measuring astronomical sources via probabilistic inference
Other
86 stars 24 forks source link

clang: error: no such file or directory: 'tractor/mix_wrap.c' #68

Closed moustakas closed 9 years ago

moustakas commented 9 years ago

Installing using the recently merged setup.py file fails with the error below.

% python setup.py install
running install
running build
running build_py
running build_ext
building 'tractor._mix' extension
C compiler: clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes

compile options: '-UNDEBUG -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'
clang: tractor/mix_wrap.c
clang: error: no such file or directory: 'tractor/mix_wrap.c'
clang: error: no input files
clang: error: no such file or directory: 'tractor/mix_wrap.c'
clang: error: no input files
error: Command "clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -UNDEBUG -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c tractor/mix_wrap.c -o build/temp.macosx-10.10-x86_64-2.7/tractor/mix_wrap.o" failed with exit status 1
dstndstn commented 9 years ago

Hmmm, try now? It should try to run 'swig' on the mix.i file to produce mix_wrap.c

moustakas commented 9 years ago

That fixed it!

dstndstn commented 9 years ago

bigger mystery is why (or whether) it worked without that :) Thanks for the report.

On Mon, Jul 27, 2015 at 4:26 PM, John Moustakas notifications@github.com wrote:

That fixed it!

— Reply to this email directly or view it on GitHub https://github.com/dstndstn/tractor/issues/68#issuecomment-125333022.