I use ubuntu16.04, cython==0.20, when building the cython modules,I get:
python setup.py build_ext --inplace
running build_ext
cythoning utils/bbox.pyx to utils/bbox.c
Error compiling Cython file:
...
Copyright (c) 2015 Microsoft
Licensed under The MIT License [see LICENSE for details]
utils/bbox.pyx:8:8: Compiler crash in AnalyseDeclarationsTransform
File 'ModuleNode.py', line 122, in analyse_declarations: ModuleNode(bbox.pyx:1:0,
full_module_name = 'utils.cython_bbox')
File 'Nodes.py', line 417, in analyse_declarations: StatListNode(bbox.pyx:8:0)
File 'Nodes.py', line 417, in analyse_declarations: StatListNode(bbox.pyx:8:8)
File 'Nodes.py', line 7481, in analyse_declarations: CImportStatNode(bbox.pyx:8:8,
module_name = u'cython')
Compiler crash traceback from this point on:
File "/usr/local/lib/python2.7/dist-packages/Cython/Compiler/Nodes.py", line 7481, in analyse_declarations
self.module_name, self.pos, relative_level=0 if self.is_absolute else -1)
File "/usr/local/lib/python2.7/dist-packages/Cython/Compiler/Symtab.py", line 1222, in find_module
module_name, relative_to=relative_to, pos=pos, absolute_fallback=absolute_fallback)
File "/usr/local/lib/python2.7/dist-packages/Cython/Compiler/Main.py", line 178, in find_module
pxd_pathname = self.find_pxd_file(qualified_name, pos)
File "/usr/local/lib/python2.7/dist-packages/Cython/Compiler/Main.py", line 239, in find_pxd_file
pxd = self.search_include_directories(qualified_name, ".pxd", pos, sys_path=sys_path)
File "/usr/local/lib/python2.7/dist-packages/Cython/Compiler/Main.py", line 280, in search_include_directories
tuple(self.include_directories), qualified_name, suffix, pos, include, sys_path)
File "/usr/local/lib/python2.7/dist-packages/Cython/Utils.py", line 30, in wrapper
res = cache[args] = f(*args)
File "/usr/local/lib/python2.7/dist-packages/Cython/Utils.py", line 148, in search_include_directories
path = os.path.join(dir, dotted_filename)
File "/usr/lib/python2.7/posixpath.py", line 73, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 12: ordinal not in range(128)
building 'utils.cython_bbox' extension
{'gcc': ['-Wno-cpp', '-Wno-unused-function']}
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c utils/bbox.c -o build/temp.linux-x86_64-2.7/utils/bbox.o -Wno-cpp -Wno-unused-function
utils/bbox.c: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 comp
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 1
I use ubuntu16.04, cython==0.20, when building the cython modules,I get: python setup.py build_ext --inplace running build_ext cythoning utils/bbox.pyx to utils/bbox.c
Error compiling Cython file:
...
Copyright (c) 2015 Microsoft
Licensed under The MIT License [see LICENSE for details]
Written by Sergey Karayev
--------------------------------------------------------
cimport cython ^
utils/bbox.pyx:8:8: Compiler crash in AnalyseDeclarationsTransform
File 'ModuleNode.py', line 122, in analyse_declarations: ModuleNode(bbox.pyx:1:0, full_module_name = 'utils.cython_bbox') File 'Nodes.py', line 417, in analyse_declarations: StatListNode(bbox.pyx:8:0) File 'Nodes.py', line 417, in analyse_declarations: StatListNode(bbox.pyx:8:8) File 'Nodes.py', line 7481, in analyse_declarations: CImportStatNode(bbox.pyx:8:8, module_name = u'cython')
Compiler crash traceback from this point on: File "/usr/local/lib/python2.7/dist-packages/Cython/Compiler/Nodes.py", line 7481, in analyse_declarations self.module_name, self.pos, relative_level=0 if self.is_absolute else -1) File "/usr/local/lib/python2.7/dist-packages/Cython/Compiler/Symtab.py", line 1222, in find_module module_name, relative_to=relative_to, pos=pos, absolute_fallback=absolute_fallback) File "/usr/local/lib/python2.7/dist-packages/Cython/Compiler/Main.py", line 178, in find_module pxd_pathname = self.find_pxd_file(qualified_name, pos) File "/usr/local/lib/python2.7/dist-packages/Cython/Compiler/Main.py", line 239, in find_pxd_file pxd = self.search_include_directories(qualified_name, ".pxd", pos, sys_path=sys_path) File "/usr/local/lib/python2.7/dist-packages/Cython/Compiler/Main.py", line 280, in search_include_directories tuple(self.include_directories), qualified_name, suffix, pos, include, sys_path) File "/usr/local/lib/python2.7/dist-packages/Cython/Utils.py", line 30, in wrapper res = cache[args] = f(*args) File "/usr/local/lib/python2.7/dist-packages/Cython/Utils.py", line 148, in search_include_directories path = os.path.join(dir, dotted_filename) File "/usr/lib/python2.7/posixpath.py", line 73, in join path += '/' + b UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 12: ordinal not in range(128) building 'utils.cython_bbox' extension {'gcc': ['-Wno-cpp', '-Wno-unused-function']} x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c utils/bbox.c -o build/temp.linux-x86_64-2.7/utils/bbox.o -Wno-cpp -Wno-unused-function utils/bbox.c: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 comp
^ error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Makefile:2: recipe for target 'all' failed make: *** [all] Error 1