Here's what I'm hitting (ast copy and pasted from the output of the Clojure-Py2 compiler).
Python 3.3.0 (default, Dec 5 2012, 11:46:31)
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.66))] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from python import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'python'
>>> from ast import *
>>> z = Module(body=[Assign(targets=[Name(id='tmp_1304', ctx=Store(), lineno=0, col_offset=0)], value=BinOp(left=Num(n=1, lineno=0, col_offset=0), op=Add(), right=Num(n=2, lineno=0, col_offset=0), lineno=0, col_offset=0), lineno=0, col_offset=0), Expr(value=Call(func=Name(id='print', ctx=Store(), lineno=0, col_offset=0), args=[Name(id='tmp_1304', ctx=Load(), lineno=0, col_offset=0)], keywords=[], starargs=[], kwargs=[], lineno=0, col_offset=0), lineno=0, col_offset=0)])
>>> compile(z, "<string>", "exec")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: required field "lineno" missing from expr
>>> fix_missing_locations(z)
<_ast.Module object at 0x102259f50>
>>> r = fix_missing_locations(z)
>>> compile(r, "<string>", "exec")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: required field "lineno" missing from expr
>>>
Not sure what's happening here.
Timothy