[Python.NET] Running an embedded interpreter

2014-08-19 Thread Serge WEINSTOCK
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 simple test program: //=== using System; using System.IO; using Python.Runtime; namespace T

Re: [Python.NET] Running an embedded interpreter

2014-08-19 Thread Tony Roberts
Hi Serge, 'mbcs' is what python uses to mean the current configured encoding. I would guess that the encoding of sys.stdout is different when using visual studio output console than the console. You could try a different encoding method by setting the PYTHONIOENCODING environment variable before

Re: [Python.NET] Running an embedded interpreter

2014-08-19 Thread Serge WEINSTOCK
Hi Tony, I’ve tried your suggestion but it doesn’t work. The issue seems to be more “fundamental” as the import of the .Net System assembly doesn’t work. Serge From: pythondotnet-bounces+serge.weinstock=uk.bnpparibas@python.org [mailto:pythondotnet-bounces+serge.weinstock=uk.bnpparibas...