[Python.NET] how to use an embedded python intepreter?

2014-08-13 Thread Serge WEINSTOCK
I'm trying to use an embedded python interpreter from C# using pythonnet (the python3 compatible version found at https://github.com/renshawbay/pythonnet) My interpreter is located in D:\src\scratch\TestPythonNet\TestPythonNet\PythonRuntime and has the "Lib" and "Libs" folder from the python di

[Python.NET] Running an embedded interpreter

2014-08-19 Thread Serge WEINSTOCK
089\System.dll Traceback (most recent call last): File "", line 1, in UnicodeEncodeError: 'mbcs' codec can't encode characters in position 0--1: invalid character //=== The "print(a.Location);"

Re: [Python.NET] Running an embedded interpreter

2014-08-19 Thread Serge WEINSTOCK
On Tue, Aug 19, 2014 at 2:22 PM, Serge WEINSTOCK mailto:serge.weinst...@uk.bnpparibas.com>> wrote: Hi, I’m trying to use Python3.2 using the Python.Net version found at: https://github.com/renshawbay/pythonnet I’m using the following sim

Re: [Python.NET] Running an embedded interpreter

2014-08-21 Thread Serge WEINSTOCK
eter works with 3.3 but not 3.3 Thanks, Serge From: Serge WEINSTOCK Sent: 19 August 2014 17:45 To: 'pythondotnet@python.org' Subject: RE: [Python.NET] Running an embedded interpreter Hi Tony, I’ve tried your suggestion but it doesn’t work. The issue seems to be more “fundamental”

Re: [Python.NET] Running an embedded interpreter

2014-08-26 Thread Serge WEINSTOCK
without having to build python yourself. Best regards, Tony On Thu, Aug 21, 2014 at 10:36 AM, Serge WEINSTOCK wrote: Hi Tony, I’ve noticed that you are the main contributor for this branch of Python for .Net. Thanks a lot for that contribution. Maybe you can help me a little more with my issu

Re: [Python.NET] Running an embedded interpreter

2014-08-27 Thread Serge WEINSTOCK
@python.org] Sent: 26 August 2014 16:54 To: pythondotnet@python.org Subject: Re: [Python.NET] Running an embedded interpreter Hi Serge, ah great, good spot. Certainly, please send a pull request to the github repo and I'll merge it. thanks, Tony On Tue, Aug 26, 2014 at 1:07 AM, Serge WEIN

Re: [Python.NET] Running an embedded interpreter

2014-09-01 Thread Serge WEINSTOCK
awbay/pythonnet/pulls, and I can't see your fork. Could you send me the url of your fork and I'll take a look if I can pull the changes from there? If you want to have another go at creating the pull request this might help: On Wed, Aug 27, 2014 at 2:02 PM, Serge WEINSTOCK mail

[Python.NET] Python.Net for Python3: bug when converting a PyLong to a System.Int32

2014-09-26 Thread Serge WEINSTOCK
Hi Tony, I've found a bug when trying to use Python integer as .Net int32. For example: //=== using System; using Python.Runtime; namespace TestPythonNet { public class ATest { public long a64; public int

Re: [Python.NET] Python.Net for Python3: bug when converting a PyLong

2014-09-30 Thread Serge WEINSTOCK
Hi, I haven’t. I’m a little busy with work now. But I will do it today or tomorrow. I’ve found another issue when using an embedded Python interpreter. I will explain it in another thread Serge From: pythondotnet-bounces+serge.weinstock=uk.bnpparibas@python.org [mailto:pythondotnet-bounce

[Python.NET] Python.Net for Python3: bug when using an embedded interpreter

2014-09-30 Thread Serge WEINSTOCK
decorators with a simple "from decorators_pythonnet import *". If run from an embedded interpreter, we could add a line for running the same code once the engine has been initialized. What do you think? Serge Weinstock ___ This e-

Re: [Python.NET] Python.Net for Python3: bug when using an embedded interpreter

2014-10-02 Thread Serge WEINSTOCK
x27;ll take a look, but if you get round to it before I do then please feel free to submit a pull request. I'll create an issue in github so it doesn't get forgotten. thanks, Tony On Tue, Sep 30, 2014 at 11:59 AM, Serge WEINSTOCK mailto:serge.weinst...@uk.bnpparibas.com>>