import clr causes windows service script to fail
Import clr causes windows service script to fail. Windows Service script is for Pyramid: https://github.com/Pylons/pyramid_cookbook/blob/master/deployment/windows.rs... Without WS script, "import clr" from python works. Without "import clr", WS script works. Together they fail. Setting "import clr" in script, the Windows Service will install but won't start. Setting "import clr" in any of the Pyramid views and the Pyramid application fails when the view is called.
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 for Pyramid: https://github.com/Pylons/pyramid_cookbook/blob/master/deployment/windows.rs...
Without WS script, "import clr" from python works. Without "import clr", WS script works. Together they fail. Setting "import clr" in script, the Windows Service will install but won't start. Setting "import clr" in any of the Pyramid views and the Pyramid application fails when the view is called. _________________________________________________ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org/mailman/listinfo/pythondotnet
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 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 for Pyramid: https://github.com/Pylons/pyramid_cookbook/blob/master/deployment/windows.rs...
Without WS script, "import clr" from python works. Without "import clr", WS script works. Together they fail. Setting "import clr" in script, the Windows Service will install but won't start. Setting "import clr" in any of the Pyramid views and the Pyramid application fails when the view is called. _________________________________________________ Python.NET mailing list - PythonDotNet@python.org http://mail.python.org/mailman/listinfo/pythondotnet
participants (2)
-
Barton -
msutton