"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 | [email protected]<mailto:[email protected]> www.wintellect.com<http://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<mailto:[email protected]> Sent: Friday, February 15, 2013 10:57 AM To: Slide<mailto:[email protected]> 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:[email protected]> Sent: Wednesday, February 13, 2013 7:00 PM To: William Johnston<mailto:[email protected]> 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]<mailto:[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<mailto:[email protected]> Sent: Wednesday, February 13, 2013 3:47 PM To: William Johnston<mailto:[email protected]> Cc: [email protected]<mailto:[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]<mailto:[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]<mailto:[email protected]> http://mail.python.org/mailman/listinfo/ironpython-users -- Website: http://earl-of-code.com -- Website: http://earl-of-code.com
_______________________________________________ Ironpython-users mailing list [email protected] http://mail.python.org/mailman/listinfo/ironpython-users
