[Ironpython-users] IronPython, Daily Digest 3/15/2012

no_reply at codeplex.com no_reply at codeplex.com
Fri Mar 16 12:44:24 CET 2012


Hi ironpython,

Here's your Daily Digest of new issues for project "IronPython".

In today's digest:ISSUES

1. [New issue] pyc should generate try/catch around module call
2. [New issue] pyc.py: generates exes which fail on using std python libs
3. [New comment] pyc.py: generates exes which fail on using std python libs

----------------------------------------------

ISSUES

1. [New issue] pyc should generate try/catch around module call
http://ironpython.codeplex.com/workitem/32419
User slide_o_mix has proposed the issue:

"The try/catch would make error messages look nicer if they occur. Some cases to handle specifically would be ImportException and other such Python exceptions."-----------------

2. [New issue] pyc.py: generates exes which fail on using std python libs
http://ironpython.codeplex.com/workitem/32420
User ddewaleffe has proposed the issue:

"I tried to generate a standalone exe for a tool I have (3 modules) but it bombs out at startup with:

Unhandled Exception: IronPython.Runtime.Exceptions.ImportException: No module named os
   at DLRCachedCode.__main__$1(CodeContext $globalContext, FunctionCode $functionCode)
   at IronPython.Compiler.OnDiskScriptCode.Run()
   at IronPython.Runtime.PythonContext.InitializeModule(String fileName, ModuleContext moduleContext, ScriptCode scriptCode, ModuleOptions options)
   at IronPython.Runtime.ModuleLoader.load_module(CodeContext context, String fullName)
   at Microsoft.Scripting.Interpreter.FuncCallInstruction`4.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)

I can reproduce with this simple foo.py module

# foo.py
import os
print "Hello"
print "OS:",os.name
print "Bye"
#end foo.py

which I compile with the following:

    ipy -m pyc /standalone /main:foo.py /target:exe /out:foo
or
    ipy -m pyc /main:foo.py /target:exe /out:foo2

Starting either foo.exe or foo2.exe fails with above error.

If I remove the import os and the line that uses on.name, I get an executable that works..."-----------------

3. [New comment] pyc.py: generates exes which fail on using std python libs
http://ironpython.codeplex.com/workitem/32420
User slide_o_mix has commented on the issue:

"What pyc.py needs to do is try and find all the modules that are needed and automatically compile them as well."
----------------------------------------------



----------------------------------------------
You are receiving this email because you subscribed to notifications on CodePlex.

To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20120316/2df9ca3a/attachment.html>


More information about the Ironpython-users mailing list