[IronPython] pyc.py error compiling decimal.py

Dino Viehland dinov at microsoft.com
Thu Apr 29 18:40:35 CEST 2010


Lukas wrote:
> Is the following error the same as in
> http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=26593
> 
> C:\Dos\IronPython-2.6.1>ipy.exe Tools\Scripts\pyc.py /target:dll
> Lib\decimal.py
> Input Files:
>         Lib\decimal.py
> Output:
>         decimal
> Target:
>         Dll
> Platform:
>         ILOnly
> Machine:
>         I386
> Compiling...
> Traceback (most recent call last):
>   File "Tools\Scripts\pyc.py", line 159, in <module>
>   File "Tools\Scripts\pyc.py", line 151, in Main
> SystemError: CompileToMethod cannot compile constant
> 'IronPython.Runtime.Types.BuiltinFunction' because it is a non-trivial
> value, such as a live object. Instead, create an expression tree that
> can cnstruct this value.

Yep, the fix is checked into our main branch, we plan on quickly putting
out a 2.6.2 which fixes this regression.  We're just giving a short amount
of time to make sure there are no other regressions which should also be
fixed in 2.6.2 as 2.6.1 was one of our biggest dot releases ever.





More information about the Ironpython-users mailing list