[Ironpython-users] IronPython, Daily Digest 12/15/2011
no_reply at codeplex.com
no_reply at codeplex.com
Fri Dec 16 11:03:18 CET 2011
Hi ironpython,
Here's your Daily Digest of new issues for project "IronPython".
In today's digest:ISSUES
1. [New issue] importing numpy within C#
2. [Status update] importing numpy within C#
3. [Status update] IronPython does not support marshaling of python code objects
4. [New comment] IP2.6.2: embeded - sys.builtin_modules not loaded
5. [New comment] ValueError: unmarshallable object
----------------------------------------------
ISSUES
1. [New issue] importing numpy within C#
http://ironpython.codeplex.com/workitem/31953
User svaha1728 has proposed the issue:
"From the interactive python window I can import numpy and use it just fine.
Within C# however, I am having troubles getting it to import correctly.
I'm using:
string programPath = Path.Combine(rootDir, (string)args[0]);
Dictionary<string, object> options = new Dictionary<string, object>();
options["Debug"] = true;
ScriptEngine engine = Python.CreateEngine(options);
List argList = new List();
argList.extend(args);
ScriptScope sys = Python.GetSysModule(engine);
sys.SetVariable("argv", argList);
var sp = engine.GetSearchPaths();
sp.Add(@"c:\Program Files\IronPython2.7.1");
sp.Add(@"c:\Program Files\IronPython 2.7.1\DLLs");
sp.Add(@"c:\Program Files\IronPython 2.7.1\Lib");
sp.Add(@"c:\Program Files\IronPython 2.7.1\Lib\site-packages");
engine.SetSearchPaths(sp);
ScriptSource source = engine.CreateScriptSourceFromFile(programPath);
int result = source.ExecuteProgram();
The python file:
import sys
sys.path.append(r'c:\Program Files\IronPython2.7.1')
sys.path.append(r'c:\Program Files\IronPython 2.7.1\DLLs')
sys.path.append(r'c:\Program Files\IronPython 2.7.1\Lib')
sys.path.append(r'c:\Program Files\IronPython 2.7.1\Lib\site-packages')
print "Running!"
import numpy
My response in the console window is as follows:
Running!
Command line arguments ['program.py']
File "c:\Program Files\IronPython 2.7.1\Lib\os.py", line 754
bs = b""
^
SyntaxError: invalid syntax
I also tried this with Python 2.7 and had the same result. Where am I going wrong?"-----------------
2. [Status update] importing numpy within C#
http://ironpython.codeplex.com/workitem/31953
User slide_o_mix has updated the issue:
Status has changed from Proposed to Closed with the following comment,
"Please use the mailing list for questions. http://mail.python.org/mailman/listinfo/ironpython-users"-----------------
3. [Status update] IronPython does not support marshaling of python code objects
http://ironpython.codeplex.com/workitem/31909
User slide_o_mix has updated the issue:
Status has changed from Proposed to Closed with the following comment,
"Duplicate of 23877"-----------------
4. [New comment] IP2.6.2: embeded - sys.builtin_modules not loaded
http://ironpython.codeplex.com/workitem/30270
User slide_o_mix has commented on the issue:
"Is this issue resolved then?"-----------------
5. [New comment] ValueError: unmarshallable object
http://ironpython.codeplex.com/workitem/26489
User slide_o_mix has commented on the issue:
"Is your specific issue resolved for now? There is another issue for marshaling of code objects already created."
----------------------------------------------
----------------------------------------------
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/20111216/87ec5e17/attachment.html>
More information about the Ironpython-users
mailing list