Hello all, When I run "cython arboris/core/test.pyx" cython fails with the attached msg.txt.
Apparently, the problem comes the following line (#8 in test.pyx) from misc_c cimport asym, sin, cos If I replace "cimport" by "import" it works fine. However, there might be a bug in cython because msg.txt is sooo unhelpful in the bad case. Regards
Traceback (most recent call last):
File "/usr/bin/cython", line 8, in <module>
main(command_line = 1)
File "/home/seb/.local/lib/python2.6/site-packages/Cython/Compiler/Main.py",
line 733, in main
result = compile(sources, options)
File "/home/seb/.local/lib/python2.6/site-packages/Cython/Compiler/Main.py",
line 710, in compile
return compile_multiple(source, options)
File "/home/seb/.local/lib/python2.6/site-packages/Cython/Compiler/Main.py",
line 680, in compile_multiple
result = run_pipeline(source, options)
File "/home/seb/.local/lib/python2.6/site-packages/Cython/Compiler/Main.py",
line 542, in run_pipeline
err, enddata = context.run_pipeline(pipeline, source)
File "/home/seb/.local/lib/python2.6/site-packages/Cython/Compiler/Main.py",
line 197, in run_pipeline
data = phase(data)
File
"/home/seb/.local/lib/python2.6/site-packages/Cython/Compiler/ParseTreeTransforms.py",
line 638, in __call__
return super(AnalyseDeclarationsTransform, self).__call__(root)
File "Visitor.py", line 264, in
Cython.Compiler.Visitor.CythonTransform.__call__
(/home/seb/Telechargements/Cython-0.11.2/Cython/Compiler/Visitor.c:4528)
File "Visitor.py", line 250, in
Cython.Compiler.Visitor.VisitorTransform.__call__
(/home/seb/Telechargements/Cython-0.11.2/Cython/Compiler/Visitor.c:4289)
File "Visitor.py", line 45, in Cython.Compiler.Visitor.BasicVisitor.visit
(/home/seb/Telechargements/Cython-0.11.2/Cython/Compiler/Visitor.c:1328)
File
"/home/seb/.local/lib/python2.6/site-packages/Cython/Compiler/ParseTreeTransforms.py",
line 646, in visit_ModuleNode
node.analyse_declarations(self.env_stack[-1])
File
"/home/seb/.local/lib/python2.6/site-packages/Cython/Compiler/ModuleNode.py",
line 60, in analyse_declarations
self.body.analyse_declarations(env)
File "/home/seb/.local/lib/python2.6/site-packages/Cython/Compiler/Nodes.py",
line 358, in analyse_declarations
stat.analyse_declarations(env)
File "/home/seb/.local/lib/python2.6/site-packages/Cython/Compiler/Nodes.py",
line 4739, in analyse_declarations
submodule_scope = env.context.find_module(name, relative_to = module_scope,
pos = self.pos)
File "/home/seb/.local/lib/python2.6/site-packages/Cython/Compiler/Main.py",
line 260, in find_module
error(pos, "'%s.pxd' not found" % module_name)
File
"/home/seb/.local/lib/python2.6/site-packages/Cython/Compiler/Errors.py", line
132, in error
report_error(err)
File
"/home/seb/.local/lib/python2.6/site-packages/Cython/Compiler/Errors.py", line
121, in report_error
line = "%s\n" % err
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position
170: ordinal not in range(128)
test.pyx
Description: Binary data
misc_c.pxd
Description: Binary data
test.pxd
Description: Binary data
misc_c.pyx
Description: Binary data
_______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
