[CWB] cwb-python

Stefan Evert stefanML at collocations.de
Thu Mar 25 19:10:31 CET 2010


Hi Yannick,

that's very cool, thanks!!

Just wanted to give it a quick test, but the build fails with the  
error message listed below.  I gather the problem is that the file  
"cmph.h" is missing (it's not in the Mercurial repository).  Did you  
forget to check it in, or should it be generated automatically?  In  
that case, setup.py seems to fail to do that entirely on my machine.

I tried Python 2.4, 2.5 and 2.6, so it doesn't appear to be a version  
issue.

Cheers,
Stefan

> $ python setup.py build
> running build
> running build_py
> running build_ext
> building 'cmph' extension
> creating build/temp.macosx-10.5-i386-2.5
> creating build/temp.macosx-10.5-i386-2.5/src
> gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused- 
> madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes - 
> DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc - 
> pipe -I/System/Library/Frameworks/Python.framework/Versions/2.5/ 
> include/python2.5 -c src/cmph.c -o build/temp.macosx-10.5-i386-2.5/ 
> src/cmph.o
> src/cmph.c:136:18: error: cmph.h: No such file or directory
> src/cmph.c: In function ‘__pyx_pf_4cmph_4CMPH___init__’:
> src/cmph.c:412: warning: assignment from incompatible pointer type
> src/cmph.c:430: warning: implicit declaration of function ‘cmph_load’
> src/cmph.c:430: warning: assignment makes pointer from integer  
> without a cast
> src/cmph.c: In function ‘__pyx_pf_4cmph_4CMPH___getitem__’:
> src/cmph.c:526: warning: implicit declaration of function  
> ‘cmph_search’
> src/cmph.c:136:18: error: cmph.h: No such file or directory
> src/cmph.c: In function ‘__pyx_pf_4cmph_4CMPH___destroy__’:
> src/cmph.c:563: warning: implicit declaration of function  
> ‘cmph_destroy’
> src/cmph.c:570: warning: passing argument 1 of ‘fclose’ from  
> incompatible pointer type
> src/cmph.c: In function ‘__pyx_pf_4cmph_4CMPH___init__’:
> src/cmph.c:412: warning: assignment from incompatible pointer type
> src/cmph.c:430: warning: implicit declaration of function ‘cmph_load’
> src/cmph.c:430: warning: assignment makes pointer from integer  
> without a cast
> src/cmph.c: In function ‘__pyx_pf_4cmph_4CMPH___getitem__’:
> src/cmph.c:526: warning: implicit declaration of function  
> ‘cmph_search’
> src/cmph.c: In function ‘__pyx_pf_4cmph_4CMPH___destroy__’:
> src/cmph.c:563: warning: implicit declaration of function  
> ‘cmph_destroy’
> src/cmph.c:570: warning: passing argument 1 of ‘fclose’ from  
> incompatible pointer type
> lipo: can't open input file: /var/folders/cM/cMAsVOxOE50QxwrMhU2elU+ 
> +RPs/-Tmp-//ccVLIapg.out (No such file or directory)
> error: command 'gcc' failed with exit status 1
>



More information about the CWB mailing list