Re: [Python.NET] How to use python object from powershell drectly?

2013-05-01 Thread Seungweon Park
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : DotNetMethodException PS C:\Python27> On Tue, Apr 30, 2013 at 3:06 PM, Seungweon Park wrote: > Hi, > > I'd like to call python method, or receive python o

[Python.NET] How to use python object from powershell drectly?

2013-04-30 Thread Seungweon Park
Hi, I'd like to call python method, or receive python object (method) directly from powershell. Is it possible using python.net? Thanks, Spark. _ Python.NET mailing list - [email protected] http://mail.python.org/mailman/listinfo/pythondotnet

Re: [Python.NET] How to create an instance of C# from pythonnet?

2013-04-19 Thread Seungweon Park
3 at 10:45 AM, Seungweon Park wrote: > Thank you for the replies. > > Now, I recompiled Python.Net with .Net 4.0 and get below working with > simple AAA.BBB.Adapter after reading > > > http://stackoverflow.com/questions/14520888/clr-addreferenceexample-file-unable

Re: [Python.NET] How to create an instance of C# from pythonnet?

2013-04-19 Thread Seungweon Park
[Description("SimpleDictionary")] public class SimpleDictionary : ISimpleDictionary { ... } Any thoughts? Wonder if there is a way to list available class after AddReference(). Thanks, Spark. On Thu, Apr 18, 2013 at 9:14 PM, Stephen P. Lepisto wrote

Re: [Python.NET] How to create an instance of C# from pythonnet?

2013-04-18 Thread Seungweon Park
; where the C# code has namespace Render and public class Demo. > > -Manuel > > > On 04/18/2013 02:45 PM, Seungweon Park wrote: > > Hi, > > I have Adapter.dll with namespace 'AAA.BBB.Adapter" written in C# which > gives network adapter information. > I wan

[Python.NET] How to create an instance of C# from pythonnet?

2013-04-18 Thread Seungweon Park
Hi, I have Adapter.dll with namespace 'AAA.BBB.Adapter" written in C# which gives network adapter information. I want to call one of method GetSpeed(). I don't know How to create an instance in python. Would you give me some clue for writing the same python code like below powershell script using

Re: [Python.NET] How to show the Console window

2013-04-05 Thread Seungweon Park
Hi Oleksii & Sharon, If you've done this before, would you share which I can get a console window in embedded Python.Net and get the Python string output from C#? Thank you, Spark. On Tue, Mar 1, 2011 at 1:33 PM, Oleksii Bidiuk wrote: > Hi Sharon, > > I haven't found a way to run a console, bu

Re: [Python.NET] How to turn on console window from Windows System while debugging Embedded PythonNet app?

2013-04-05 Thread Seungweon Park
d \a are executed, resulting in > that weird value you got. > > > On Apr 4, 2013, at 5:45 PM, Seungweon Park wrote: > > I retested with same code as you have and added online to execute a.py. It > looks it running but not the last line > > po = PythonEngine.RunString(

Re: [Python.NET] I can't run test_engine.py with nPython.exe. Would you tell me why?

2013-04-04 Thread Seungweon Park
-- Ran 25 tests in 1.445s FAILED (failures=1) On Thu, Apr 4, 2013 at 8:34 AM, Seungweon Park wrote: > Hi, > > I ran every tests from src\tests. However, I can't run runtests.py and > test_module.py. > > test_module.py has an error message in console window an

[Python.NET] I can't run test_engine.py with nPython.exe. Would you tell me why?

2013-04-04 Thread Seungweon Park
Hi, I ran every tests from src\tests. However, I can't run runtests.py and test_module.py. test_module.py has an error message in console window and pops up "Python Console" with "Python Console has stopped working" message. Would you tell me what I need to check to run this script? It looks to

Re: [Python.NET] Would you share your idea how to call python command from embedded Python.Net?

2013-04-01 Thread Seungweon Park
project may be set to spawn an > external console. Depends on your configuration. I don't know NUnit all > that well. It's possible the NUnit's runtime redirects the output stream > somewhere else as well. > > -brad > > On Apr 1, 2013, at 2:29

[Python.NET] Would you share your idea how to call python command from embedded Python.Net?

2013-04-01 Thread Seungweon Park
Hi, I've been played with Python.Net for a week, but I can't find any sample to use Python.Net in embedded way. I've searched many threads from the previous emailing list, the result are not consistent, and looks like no solution ??. What I'm trying to do is that I want to get result (po) from C#

Re: [Python.NET] How to run a command by Embedded Python?

2013-03-28 Thread Seungweon Park
a task such as switch configuration, once executing a command, and returns, then gets a result later). Would you give me some suggestions how/what would be best idea for Async wrapper using Python.RunTime? Thanks, Spark. On Thu, Mar 28, 2013 at 2:35 PM, Seungweon Park wrote: > Hi, > > I wro

[Python.NET] How to run a command by Embedded Python?

2013-03-28 Thread Seungweon Park
Hi, I wrote a code PythonWrapper and SimplePythonTest which uses PythonWrapper. using SimplePython; namespace SimplePythonTest { /// /// Python Wrapper Tests /// [TestFixture] public class PythonTests { PythonWrapper py; /// /// PythonTests Con

[Python.NET] How to use Python for .NET? Have a problem to use in Windows 2008 R2 SP1

2013-03-22 Thread Seungweon Park
Hello, I just downloaded pythonnet-2.0-Beta0-clr4.0_140_py27.zip from http://sourceforge.net/projects/pythonnet/, and extract to c:\temp and ran nPython.exe, got below error. Current my test machine has Windows 2008 R2 SP1 with Python 2.7.3 (32bit). When looked the error, and googled it. someone

[Python.NET] Could you tell me how to call python from c#?

2007-06-04 Thread SeungWeon Park
Hello, PythonNet! I'm looking for some sample code to call python from C#. Actually, I'd like to execute python program(let say 'Hello.py') from C# with parameters. Actually, I'm a newbie at both of languages. So, could you give sample source code? I was looking for some guide or source for seve