I think it's a simply because the file has been moved @@ -255,7 +255,7 @@ ..... -#include "PhraseDictionaryTree.h" +#include "TranslationModel/PhraseDictionaryTree.h"
however, I know jack about python, it still gives me errors too arcane to mention If you fix it, please commit On 9 April 2013 13:43, Nicholas Ruiz <[email protected]> wrote: > Hi everyone, > > I'm trying to compile the python interface to Moses in the latest commit > of Moses. Following the readme, I compiled Moses with link=shared > ./bjam -q -j4 --with-boost=/path/to/boost link=shared > > And then I tried > python setup.py build_ext -i > > But I get the following error: > > mosesdir=/hardmnt/malet0/home/nicruiz/software/moses/moses-20130409-5dce1463e7 > includes=['/hardmnt/malet0/home/nicruiz/software/moses/moses-20130409-5dce1463e7', > '/hardmnt/malet0/home/nicruiz/software/moses/moses-20130409-5dce1463e7/moses', > '/hardmnt/malet0/home/nicruiz/software/moses/moses-20130409-5dce1463e7/OnDiskPt'] > > libdir=/hardmnt/malet0/home/nicruiz/software/moses/moses-20130409-5dce1463e7/lib > cmph=False > running build_ext > building 'moses.dictree' extension > gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall > -Wstrict-prototypes -fPIC -I. > -I/hardmnt/malet0/home/nicruiz/software/moses/moses-20130409-5dce1463e7 > -I/hardmnt/malet0/home/nicruiz/software/moses/moses-20130409-5dce1463e7/moses > -I/hardmnt/malet0/home/nicruiz/software/moses/moses-20130409-5dce1463e7/OnDiskPt > -I/home/nicruiz/.pythonbrew/pythons/Python-2.7.3/include/python2.7 -c > moses/dictree.cpp -o build/temp.linux-x86_64-2.7/moses/dictree.o -O3 > -DMAX_NUM_FACTORS=1 > cc1plus: warning: command line option "-Wstrict-prototypes" is valid for > Ada/C/ObjC but not for C++ > moses/dictree.cpp:258:34: error: PhraseDictionaryTree.h: No such file or > directory > moses/dictree.cpp:632: error: ISO C++ forbids declaration of > ‘PhraseDictionaryTree’ with no type > ... > > I also tried setting the --moses-lib param explicitly, but it didn't work. > Any ideas? > > Thanks, > Nick > _______________________________________________ > Moses-support mailing list > [email protected] > http://mailman.mit.edu/mailman/listinfo/moses-support > -- Hieu Hoang Research Associate University of Edinburgh http://www.hoang.co.uk/hieu
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
