Comment #9 on issue 3008 by asmeu...@gmail.com: Cython (apparently) version causing problems
http://code.google.com/p/sympy/issues/detail?id=3008

For me, Cython 0.15.1 causes an error, but 0.16 doesn't. I commented the quiet flag in the code, and the error is

Traceback (most recent call last):
  File "setup.py", line 8, in <module>
ext_modules = [Extension('wrapper_module_5', ['wrapper_module_5.pyx', 'wrapped_code_5.c'])]
  File "/sw/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/sw/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/sw/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
File "/Users/aaronmeurer/Documents/cython/Cython/Distutils/build_ext.py", line 135, in run
    _build_ext.build_ext.run(self)
  File "/sw/lib/python2.7/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
File "/Users/aaronmeurer/Documents/cython/Cython/Distutils/build_ext.py", line 142, in build_extensions
    ext.sources = self.cython_sources(ext.sources, ext)
File "/Users/aaronmeurer/Documents/cython/Cython/Distutils/build_ext.py", line 285, in cython_sources
    full_module_name=module_name)
File "/Users/aaronmeurer/Documents/cython/Cython/Compiler/Main.py", line 635, in compile
    return compile_single(source, options, full_module_name)
File "/Users/aaronmeurer/Documents/cython/Cython/Compiler/Main.py", line 581, in compile_single
    return run_pipeline(source, options, full_module_name)
File "/Users/aaronmeurer/Documents/cython/Cython/Compiler/Main.py", line 439, in run_pipeline
    context = options.create_context()
File "/Users/aaronmeurer/Documents/cython/Cython/Compiler/Main.py", line 528, in create_context
    self.cplus, self.language_level, options=self)
File "/Users/aaronmeurer/Documents/cython/Cython/Compiler/Main.py", line 75, in __init__
    self, create_testscope=create_testscope)
File "/Users/aaronmeurer/Documents/cython/Cython/Compiler/CythonScope.py", line 93, in create_cython_scope
    scope.test_cythonscope()
File "/Users/aaronmeurer/Documents/cython/Cython/Compiler/CythonScope.py", line 72, in test_cythonscope
    cython_testscope_utility_code.declare_in_scope(self)
File "/Users/aaronmeurer/Documents/cython/Cython/Compiler/UtilityCode.py", line 105, in declare_in_scope
    self.tree = self.get_tree()
File "/Users/aaronmeurer/Documents/cython/Cython/Compiler/UtilityCode.py", line 84, in get_tree pipeline = Pipeline.create_pipeline(context, 'pyx', exclude_classes=excludes) File "/Users/aaronmeurer/Documents/cython/Cython/Compiler/Pipeline.py", line 107, in create_pipeline
    from FlowControl import CreateControlFlowGraph
ImportError: cannot import name CreateControlFlowGraph

For another one Python version on my system that has 0.11.2, the errors are things like

/private/var/folders/wc/dppcpmxs1tlb36nqcw853wkm0000gq/T/tmpvCSit2_sympy_compile/wrapper_module_4.pyx:3:23: Cannot convert Python object argument to type 'double *'

Error converting Pyrex file to C:
------------------------------------------------------------
...
cdef extern from "wrapped_code_4.h":
   void autofunc(int m_18, double *x_17, double b, double c, double *y_16)
def autofunc_c(int _m, double *_x, double b, double c):
                      ^
------------------------------------------------------------

and

cythoning wrapper_module_5.pyx to wrapper_module_5.c
building 'wrapper_module_5' extension
creating build
creating build/temp.macosx-10.3-fat-2.6
gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c wrapper_module_5.c -o build/temp.macosx-10.3-fat-2.6/wrapper_module_5.o
unable to execute gcc-4.0: No such file or directory
error: command 'gcc-4.0' failed with exit status 1

I think the first error (the CreateControlFlowGraph ImportError) is somehow related to a bad configuration on my part, but I can't be sure.

At any rate, I can't figure out exactly what version we should be testing for. Perhaps we should just XFAIL the test.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to