Discussion:
[Python.NET] import clr causes windows service script to fail
msutton
2013-04-08 06:38:38 UTC
Permalink
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!
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.
Import clr causes windows service script to fail.
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" 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.
_________________________________________________
http://mail.python.org/mailman/listinfo/pythondotnet
_________________________________________________
Python.NET mailing list - PythonDotNet-+ZN9ApsXKcEdnm+***@public.gmane.org
http://mail.python.org/mailman/listinfo/pythondotnet
msutton
2013-04-08 05:46:37 UTC
Permalink
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" 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-+ZN9ApsXKcEdnm+***@public.gmane.org
http://mail.python.org/mailman/listinfo/pythondotnet
Barton
2013-04-08 05:56:12 UTC
Permalink
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.
Import clr causes windows service script to fail.
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" 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.
_________________________________________________
http://mail.python.org/mailman/listinfo/pythondotnet
_________________________________________________
Python.NET mailing list - PythonDotNet-+ZN9ApsXKcEdnm+***@public.gmane.org
http://mail.python.org/mailman/listinfo/pythondotnet

Loading...