From: William Johnston 
Sent: Friday, February 15, 2013 1:00 PM
To: Keith Rome 
Subject: RE: [Ironpython-users] need assistance with IronClad project


Mr. Rome:

Here is my C# code to include search paths from the attached file.  (Which 
shows the paths for the command-line execution.)

ICollection<string> searchPaths = new List<string>();
searchPaths.Add(@"E:\Users\William Johnston\Documents\Visual Studio 
2010\Projects\Visual Studio Projects\test2\test\test4");
searchPaths.Add(@".");
searchPaths.Add(@"E:\Program Files (x86)\IronPython 2.6 for .NET 4.0");
searchPaths.Add(@"E:\Python26\lib");
searchPaths.Add(@"E:\Python26\lib\site-packages");
searchPaths.Add(@"E:\Python26\dlls");
searchPaths.Add(@"E:\ironclad-v2.6net40-EXPERIMENTAL-bin");
searchPaths.Add(@"E:\Users\William Johnston\Documents\Visual Studio 
2010\Projects\Visual Studio Projects\test2\test\test4");
searchPaths.Add(@"E:\Program Files (x86)\IronPython 2.6 for .NET 4.0\Lib");
searchPaths.Add(@"E:\Program Files (x86)\IronPython 2.6 for .NET 4.0\DLLs");
searchPaths.Add(@"E:\Program Files (x86)\IronPython 2.6 for .NET 
4.0\lib\site-packages");
searchPaths.Add(@"E:\Program Files (x86)\IronPython 2.6 for .NET 
4.0\lib\site-packages\subprocess");

engine.SetSearchPaths(searchPaths);

All paths are included from the attached file.

The complete project can be downloaded at:

http://tenbase2.com/dlr%20project.zip

Thank you.

Sincerely,
William Johnston



From: Keith Rome 
Sent: Friday, February 15, 2013 12:08 PM
To: William Johnston ; [email protected] 
Subject: ****SPAM**** RE: [Ironpython-users] need assistance with IronClad 
project

“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 | mailto:[email protected]

www.wintellect.com

 

From: Ironpython-users 
[mailto:[email protected]] On Behalf Of 
William Johnston
Sent: Friday, February 15, 2013 11:12 AM
To: [email protected]
Subject: [Ironpython-users] need assistance with IronClad project

 

 

 

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 <[email protected]> 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: [email protected] 

  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 <[email protected]> 
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
    [email protected]
    http://mail.python.org/mailman/listinfo/ironpython-users





   

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





 

-- 
Website: http://earl-of-code.com 
OK
[10 20 30 40]

'E:\\Users\\William Johnston\\Documents\\Visual Studio 2010\\Projects\\Visual 
Studio Projects\\test2\\test\\test4'
'.'
'E:\\Users\\William Johnston\\Documents\\Visual Studio 2010\\Projects\\Visual 
Studio Projects\\test2\\test\\test4'
'E:\\Program Files (x86)\\IronPython 2.6 for .NET 4.0'
'E:\\Python26\\lib'
'E:\\Python26\\lib\\site-packages'
'E:\\Python26\\dlls'
'E:\\ironclad-v2.6net40-EXPERIMENTAL-bin'
'E:\\Users\\William Johnston\\Documents\\Visual Studio 2010\\Projects\\Visual 
Studio Projects\\test2\\test\\test4'
'E:\\Program Files (x86)\\IronPython 2.6 for .NET 4.0\\Lib'
'E:\\Program Files (x86)\\IronPython 2.6 for .NET 4.0\\DLLs'
'E:\\Program Files (x86)\\IronPython 2.6 for .NET 4.0\\lib\\site-packages'
'E:\\Python26\\lib'
'E:\\Python26\\dlls'
'E:\\Python26\\lib\\site-packages'
'E:\\ironclad-v2.6net40-EXPERIMENTAL-bin']
_______________________________________________
Ironpython-users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/ironpython-users

Reply via email to