From: m k. <m_k...@nc...> - 2002-03-06 16:00:47
|
What am I missing? I just upgraded to jython 2.1 from 2.0. Several files that used to compile under v2.0 all give the same error message: AttributeError: 'None' object has no attribute 'locals_index' The files should be clean -- the $py.class files should not be available from the directories used. Full screen output is below. Thanks, Marjorie Klenin *********************************************************** G:\forteDev\Work\expt\jythonBean>jythonc MathParser.py processing MathParser Parsing line: 43 Parsing line: 41 Parsing line: 23 class MathParser(lang.Object): Traceback (innermost last): File "g:\Python21\jython-2.1\Tools\jythonc\jythonc.py", line 5, in ? File "g:\Python21\jython-2.1\Tools\jythonc\main.py", line 300, in main File "g:\Python21\jython-2.1\Tools\jythonc\main.py", line 219, in doCompile File "g:\Python21\jython-2.1\Tools\jythonc\compile.py", line 195, in compilefi le File "g:\Python21\jython-2.1\Tools\jythonc\compile.py", line 209, in compile File "g:\Python21\jython-2.1\Tools\jythonc\BaseEvaluator.py", line 318, in exe cstring File "g:\Python21\jython-2.1\Tools\jythonc\SimpleCompiler.py", line 286, in pa rse File "g:\Python21\jython-2.1\Tools\jythonc\BaseEvaluator.py", line 24, in pars e File "g:\Python21\jython-2.1\Tools\jythonc\BaseEvaluator.py", line 33, in visi t File "g:\Python21\jython-2.1\Tools\jythonc\PythonVisitor.py", line 71, in suit e File "g:\Python21\jython-2.1\Tools\jythonc\BaseEvaluator.py", line 54, in suit e File "g:\Python21\jython-2.1\Tools\jythonc\BaseEvaluator.py", line 33, in visi t File "g:\Python21\jython-2.1\Tools\jythonc\PythonVisitor.py", line 516, in cla ssdef File "g:\Python21\jython-2.1\Tools\jythonc\SimpleCompiler.py", line 738, in cl assdef File "g:\Python21\jython-2.1\Tools\jythonc\ObjectFactory.py", line 46, in make Class File "g:\Python21\jython-2.1\Tools\jythonc\ObjectFactory.py", line 43, in __in it__ File "g:\Python21\jython-2.1\Tools\jythonc\ObjectFactory.py", line 271, in mak eCode File "g:\Python21\jython-2.1\Tools\jythonc\SimpleCompiler.py", line 286, in pa rse File "g:\Python21\jython-2.1\Tools\jythonc\BaseEvaluator.py", line 24, in pars e File "g:\Python21\jython-2.1\Tools\jythonc\BaseEvaluator.py", line 33, in visi t File "g:\Python21\jython-2.1\Tools\jythonc\PythonVisitor.py", line 71, in suit e File "g:\Python21\jython-2.1\Tools\jythonc\BaseEvaluator.py", line 54, in suit e File "g:\Python21\jython-2.1\Tools\jythonc\BaseEvaluator.py", line 33, in visi t File "g:\Python21\jython-2.1\Tools\jythonc\PythonVisitor.py", line 495, in fun cdef File "g:\Python21\jython-2.1\Tools\jythonc\SimpleCompiler.py", line 728, in fu ncdef File "g:\Python21\jython-2.1\Tools\jythonc\ObjectFactory.py", line 35, in make Function File "g:\Python21\jython-2.1\Tools\jythonc\ObjectFactory.py", line 142, in get New File "g:\Python21\jython-2.1\Tools\jythonc\ObjectFactory.py", line 162, in mak eCode File "g:\Python21\jython-2.1\Tools\jythonc\SimpleCompiler.py", line 286, in pa rse File "g:\Python21\jython-2.1\Tools\jythonc\BaseEvaluator.py", line 24, in pars e File "g:\Python21\jython-2.1\Tools\jythonc\BaseEvaluator.py", line 33, in visi t File "g:\Python21\jython-2.1\Tools\jythonc\PythonVisitor.py", line 71, in suit e File "g:\Python21\jython-2.1\Tools\jythonc\BaseEvaluator.py", line 54, in suit e File "g:\Python21\jython-2.1\Tools\jythonc\BaseEvaluator.py", line 33, in visi t File "g:\Python21\jython-2.1\Tools\jythonc\PythonVisitor.py", line 144, in Imp ortFrom File "g:\Python21\jython-2.1\Tools\jythonc\BaseEvaluator.py", line 273, in imp ortfrom_stmt File "g:\Python21\jython-2.1\Tools\jythonc\SimpleCompiler.py", line 420, in im portall_stmt File "g:\Python21\jython-2.1\Tools\jythonc\SimpleCompiler.py", line 440, in _l oadNames File "g:\Python21\jython-2.1\Tools\jythonc\SimpleCompiler.py", line 394, in se t_name File "g:\Python21\jython-2.1\Tools\jythonc\SimpleCompiler.py", line 201, in se tname AttributeError: 'None' object has no attribute 'locals_index' G:\forteDev\Work\expt\jythonBean> -- Marjorie Klenin physics, box 8202 North Carolina State University Raleigh NC 27695-8202 USA email:m_k...@nc... phone: 919.515.7457 |