opencog / moses

MOSES Machine Learning: Meta-Optimizing Semantic Evolutionary Search. See also AS-MOSES https://github.com/opencog/asmoses but kept to guaranty backward compatibility.
https://wiki.opencog.org/w/Meta-Optimizing_Semantic_Evolutionary_Search
Other
127 stars 83 forks source link

make fails to cythonize pymoses #91

Open StrangeTcy opened 5 years ago

StrangeTcy commented 5 years ago

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.

vsbogd commented 5 years ago

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