[Ironpython-users] need assistance with IronClad project

Keith Rome rome at Wintellect.com
Fri Feb 15 18:08:32 CET 2013


"I added the correct search paths from the working command-line output"

Can you elaborate on this? The error message seems to point toward a bad search path or a faulty importer as it tries to import a module.


Keith Rome
Senior Consultant and Architect
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS
Wintellect | 770.617.4016 | krome at wintellect.com<mailto:rome at wintellect.com>
www.wintellect.com<http://www.wintellect.com/>

From: Ironpython-users [mailto:ironpython-users-bounces+rome=wintellect.com at python.org] On Behalf Of William Johnston
Sent: Friday, February 15, 2013 11:12 AM
To: ironpython-users at python.org
Subject: [Ironpython-users] need assistance with IronClad project



From: William Johnston<mailto:williamj at tenbase2.com>
Sent: Friday, February 15, 2013 10:57 AM
To: Slide<mailto:slide.o.mix at gmail.com>
Subject: Re: [Ironpython-users] need assistance with IronClad project


Alex:

I have made some progress.

My python scripts runs fine when run from the IronPython command-line using the following:

ipy.exe -X:Frames mytest.py

But the attached error occurs when run from C#.

I added the correct search paths from the working command-line output. (By printing sys.path.) But I still get the error with the C# app.

Here is the sample code to call the Python source file (from Resolver):

var lang = Python.CreateLanguageSetup(null);
lang.Options["Frames"] = ScriptingRuntimeHelpers.True;
var setup = new ScriptRuntimeSetup();
setup.LanguageSetups.Add(lang);
var runtime = new ScriptRuntime(setup);
var engine = runtime.GetEngine("py");
engine.SetSearchPaths(searchPaths);
engine.ExecuteFile(@"E:\Users\William Johnston\Documents\Visual Studio 2010\Projects\Visual Studio Projects\test2\test\test4\mytest.py");

Any suggestions?

Regards,
William Johnston


From: Slide<mailto:slide.o.mix at gmail.com>
Sent: Wednesday, February 13, 2013 7:00 PM
To: William Johnston<mailto:williamj at tenbase2.com>
Subject: Re: [Ironpython-users] need assistance with IronClad project

William,

Can't you just explain what the issue is? I for one can't download anything while at work, but can answer questions if they are direct and informed.

Thanks,

Alex

On Wed, Feb 13, 2013 at 4:58 PM, William Johnston <williamj at tenbase2.com<mailto:williamj at tenbase2.com>> wrote:

Slide:

The project has to be x86 Release.  Which is not what I zipped.  But still doesn't run.

Regards,
William Johnston




From: Slide<mailto:slide.o.mix at gmail.com>
Sent: Wednesday, February 13, 2013 3:47 PM
To: William Johnston<mailto:williamj at tenbase2.com>
Cc: ironpython-users at python.org<mailto:ironpython-users at python.org>
Subject: Re: [Ironpython-users] need assistance with IronClad project

Can you be more descriptive as to issues you are seeing, what is going wrong, what results you are getting vs. what you are expecting? Just throwing a project out there and expecting people to look at it will probably not get you a great amount of help.

slide

On Wed, Feb 13, 2013 at 1:43 PM, William Johnston <williamj at tenbase2.com<mailto:williamj at tenbase2.com>> wrote:

Hello,

I created a project that is  exactly the same as the IronClad (from Resolver) demo project.

Yet, I am getting different results.

Can anyone assist me on this?

The project files are at:

http://tenbase2.com/ironclad%20projects.zip

This is my only forum for support.

Thank you.



_______________________________________________
Ironpython-users mailing list
Ironpython-users at python.org<mailto:Ironpython-users at python.org>
http://mail.python.org/mailman/listinfo/ironpython-users



--
Website: http://earl-of-code.com



--
Website: http://earl-of-code.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20130215/803b9d07/attachment.html>


More information about the Ironpython-users mailing list