On Sat, Oct 24, 2009 at 12:28 PM, Mark Lodato <[email protected]> wrote:
> I just updated to the latest cython-devel and now `make' fails with:
>
> python setup.py build_ext --inplace
> Compiling module Cython.Compiler.Parsing ...
> ERROR: 'ModuleNode' object has no attribute 'directive_comments'
> Extension module compilation failed, using plain Python implementation
> running build_ext
>
>
> It appears that this was caused by:
>
> http://hg.cython.org/cython-devel/rev/014a3ca7e197e9314f6ee60dcf9dc42aefac0b11
> naming references changed from 'option' to 'directive'
> Thu Oct 15 03:47:42 2009 -0400 (9 days ago)


On further investigation, this is a problem not just when compiling
with Cython, but also using plain Python implementation:

Traceback (most recent call last):
  File "../../bin/cython", line 8, in <module>
    main(command_line = 1)
  File "/home/mark/cython/cython/Cython/Compiler/Main.py", line 760, in main
    result = compile(sources, options)
  File "/home/mark/cython/cython/Cython/Compiler/Main.py", line 737, in compile
    return compile_multiple(source, options)
  File "/home/mark/cython/cython/Cython/Compiler/Main.py", line 707,
in compile_multiple
    result = run_pipeline(source, options)
  File "/home/mark/cython/cython/Cython/Compiler/Main.py", line 568,
in run_pipeline
    err, enddata = context.run_pipeline(pipeline, source)
  File "/home/mark/cython/cython/Cython/Compiler/Main.py", line 219,
in run_pipeline
    data = phase(data)
  File "Visitor.py", line 265, in
Cython.Compiler.Visitor.CythonTransform.__call__
(/home/mark/cython/cython/Cython/Compiler/Visitor.c:4520)
  File "Visitor.py", line 248, in
Cython.Compiler.Visitor.VisitorTransform.__call__
(/home/mark/cython/cython/Cython/Compiler/Visitor.c:4280)
  File "Visitor.py", line 46, in
Cython.Compiler.Visitor.BasicVisitor.visit
(/home/mark/cython/cython/Cython/Compiler/Visitor.c:1383)
  File "/home/mark/cython/cython/Cython/Compiler/ParseTreeTransforms.py",
line 352, in visit_ModuleNode
    for key, value in node.directive_comments.iteritems():
AttributeError: 'ModuleNode' object has no attribute 'directive_comments'
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to