moses icon indicating copy to clipboard operation
moses copied to clipboard

make fails to cythonize pymoses

Open StrangeTcy opened this issue 5 years ago • 1 comments

makeing moses fails at this particular spot:

[ 92%] Built target eval-diversity [ 94%] Built target moses-exec [ 94%] Built target moses-man [ 96%] Built target eval-features [ 98%] Built target fs-main [ 98%] Built target feature-man [ 98%] Cythonizing pymoses.pyx

Error compiling Cython file:

... raise MosesException('Error: eval method
requires a list of input ' 'values.')

    namespace = {}
    exec self.program in namespace
        ^

/home/me/opencog/moses/moses/cython/opencog/pymoses.pyx:34:13: Syntax error in simple statement list moses/cython/opencog/CMakeFiles/moses_cython.dir/build.make:62: recipe for target 'moses/cython/opencog/pymoses.cpp' failed

My guess is that cython somehow gets confused by namespace being an empty dictionary, but I know next to no cython myself and so am probably wrong.

StrangeTcy avatar Jul 09 '19 17:07 StrangeTcy

@StrangeTcy , just random thought it can be difference between python2, python3 syntax.

vsbogd avatar Jul 10 '19 14:07 vsbogd