Re: [Python.NET] import clr causes windows service script to fail

2013-04-07 Thread msutton
Barton, You were right about the not finding the DLLs. I placed the clr.pyd and python.runtime.dll in the pywin32 egg directory and it seems to work now. Thanks! On 04/07/2013 10:56 PM, Barton wrote: That's usually x86 vs. x64 incompatibility - we need more info from you on this. Sometimes

Re: [Python.NET] How to Compile python for .Net in VS 2010 in .Net 4.0

2013-04-07 Thread Barton
That's usually the multi-byte character size symbol being set for Linux/Unix. For Windows you want UCS2 (two-byte characters) Seems some of my Linux settings may have leaked onto the repo. Since discovering that the post build event has not been needed since early .NET V2.0, I'm working on a un

Re: [Python.NET] import clr causes windows service script to fail

2013-04-07 Thread Barton
That's usually x86 vs. x64 incompatibility - we need more info from you on this. Sometimes it's simply a path configuration problem when the caller can't find the DLLs required. On 04/07/2013 10:46 PM, msutton wrote: Import clr causes windows service script to fail. Windows Service script is f

[Python.NET] import clr causes windows service script to fail

2013-04-07 Thread msutton
Import clr causes windows service script to fail. Windows Service script is for Pyramid: https://github.com/Pylons/pyramid_cookbook/blob/master/deployment/windows.rst Without WS script, "import clr" from python works. Without "import clr", WS script works. Together they fail. Setting "import clr"