I installed cython using sudo apt-get install cython. Any suggestions?
$ uname -a
Linux ip-172-31-25-90 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
$ cython --version
Cython version 0.20.1post0
$ sudo python setup.py install
...
...
cythoning caesure/txfaa.pyx to caesure/txfaa.cpp
Error compiling Cython file:
------------------------------------------------------------
...
for n, d in walk_depth (self.root, 0):
fout.write ('%s%4d %r:%r\n' % (' ' * d, n.level, n.key.encode('hex'), n.amt, n.script))
def new_entry (self, bytes txname, object vals):
for index, amt, script in vals:
self.root = tree_insert (self.root, make_key (txname, index), amt, script)
^
------------------------------------------------------------
caesure/txfaa.pyx:308:57: Obtaining 'char *' from temporary Python value
Error compiling Cython file:
------------------------------------------------------------
...
cdef extern from *:
ctypedef uint64_t X 'uint64_t'
^
------------------------------------------------------------
pair.from_py:152:13: 'uint64_t' is not a type identifier
building 'caesure.txfaa' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c caesure/txfaa.cpp -o build/temp.linux-x86_64-2.7/caesure/txfaa.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
caesure/txfaa.cpp:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
#error Do not use this file, it is the result of a failed Cython compilation.
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
I installed cython using
sudo apt-get install cython. Any suggestions?$ uname -a Linux ip-172-31-25-90 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux $ cython --version Cython version 0.20.1post0 $ sudo python setup.py install ... ... cythoning caesure/txfaa.pyx to caesure/txfaa.cpp Error compiling Cython file: ------------------------------------------------------------ ... for n, d in walk_depth (self.root, 0): fout.write ('%s%4d %r:%r\n' % (' ' * d, n.level, n.key.encode('hex'), n.amt, n.script)) def new_entry (self, bytes txname, object vals): for index, amt, script in vals: self.root = tree_insert (self.root, make_key (txname, index), amt, script) ^ ------------------------------------------------------------ caesure/txfaa.pyx:308:57: Obtaining 'char *' from temporary Python value Error compiling Cython file: ------------------------------------------------------------ ... cdef extern from *: ctypedef uint64_t X 'uint64_t' ^ ------------------------------------------------------------ pair.from_py:152:13: 'uint64_t' is not a type identifier building 'caesure.txfaa' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c caesure/txfaa.cpp -o build/temp.linux-x86_64-2.7/caesure/txfaa.o cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] caesure/txfaa.cpp:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation. #error Do not use this file, it is the result of a failed Cython compilation. ^ error: command 'x86_64-linux-gnu-gcc' failed with exit status 1