Closed tayral closed 11 years ago
I had a similar problem, because my cython was in /usr/local/bin and not in /usr/bin/. I changed the cmake variable CYTHON_EXECUTABLE to the correct path before compiling, and then it worked. Maybe this also solves your problem.
Hi Markus, This seems to have worked as far as cython detection is concerned, but now I am getting:
[ 86%] Generating wrap_GF3_by_cython.cpp
Error compiling Cython file:
------------------------------------------------------------
...
from tools import py_deserialize
cdef class TailGf:
cdef tail _c
^
------------------------------------------------------------
/home/tayral/Work/TRIQS-github/src/pytriqs/base/gf/local/tail.pyx:4:14: C++ classes not allowed as members of an extension type, use a pointer or reference instead
I checked that I have the latest version of cython installed. Do you know where this comes from?
Thanks, Thomas
I had the same here. I had the ubuntu LTS repository version installed, which is 0.15.1. In fact, you need at least 0.17. I installed the 0.18 version with easy_install from cython.org, then it worked.
That did the trick. Thanks a lot
Thomas
Hi, When trying to compile branch 1.0, I get the following error:
[ 86%] Generating wrap_GF3_by_cython.cpp /bin/sh: 1: /$HOME/Install/mypython/bin/cython: not found make[2]: * [pytriqs/base/gf/local/wrap_GF3_by_cython.cpp] Error 127 make[1]: * [pytriqs/base/gf/local/CMakeFiles/cython_GF3.dir/all] Error 2 make: *\ [all] Error 2
I do have cython installed in /usr/bin/cython, while /$HOME/Install/mypython/ is where virtualenv installs python dependencies. Attempting to symbolically link /usr/bin/cython to the other directory does not solve the problem.
Do you have any idea to solve this issue?
Thanks, Thomas