Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make fails to cythonize pymoses #91

Open
StrangeTcy opened this issue Jul 9, 2019 · 1 comment
Open

make fails to cythonize pymoses #91

StrangeTcy opened this issue Jul 9, 2019 · 1 comment

Comments

@StrangeTcy
Copy link
Contributor

StrangeTcy commented Jul 9, 2019

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
Copy link
Contributor

vsbogd commented Jul 10, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants