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.

Home Page:https://wiki.opencog.org/w/Meta-Optimizing_Semantic_Evolutionary_Search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make fails to cythonize pymoses

StrangeTcy opened this issue · 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 , just random thought it can be difference between python2, python3 syntax.