[Ironpython-users] need assistance with IronClad project

William Johnston williamj at tenbase2.com
Fri Feb 15 17:12:05 CET 2013



From: William Johnston 
Sent: Friday, February 15, 2013 10:57 AM
To: Slide 
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 
Sent: Wednesday, February 13, 2013 7:00 PM
To: William Johnston 
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> 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 
  Sent: Wednesday, February 13, 2013 3:47 PM
  To: William Johnston 
  Cc: 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> 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
    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/b4ae0e86/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not_working_output.txt
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20130215/b4ae0e86/attachment.txt>


More information about the Ironpython-users mailing list