<div>Hi,</div>
<div>&nbsp;</div>
<div>I have executed tried to call the ch12 example dynamic server &quot;DynamicPolicy.py&quot; from python client via:</div>
<div>&nbsp;</div>
<div>m = win32com.client.Dispatch(&#39;PythonDemos.StringModule&#39;)</div>
<div>m.split(&#39;hello there&#39;)<br>&nbsp;</div>
<div>which gives the following error:</div>
<div>pythoncom error: Python error invoking COM method.</div>
<div>&lt;type &#39;exceptions.TypeError&#39;&gt;: Objects of type &#39;function&#39; can not be converted to a COM VARIANT<br>Traceback (most recent call last):<br>&nbsp; File &quot;&lt;interactive input&gt;&quot;, line 1, in &lt;module&gt;
<br>&nbsp; File &quot;C:\Python25\lib\site-packages\win32com\client\dynamic.py&quot;, line 491, in __getattr__<br>&nbsp;&nbsp;&nbsp; raise pythoncom.com_error, details<br>com_error: (-2147352567, &#39;Exception occurred.&#39;, (0, &#39;Python COM Server Internal Error&#39;, &quot;Unexpected Python Error: &lt;type &#39;
exceptions.TypeError&#39;&gt;: Objects of type &#39;function&#39; can not be converted to a COM VARIANT&quot;, None, 0, -2147467259), None)</div>
<div>&nbsp;</div>
<div>Could anyone enlighted me on what I have done wrong?</div>
<div>&nbsp;</div>
<div>Thanks</div>
<div>&nbsp;</div>
<div>Nicholas</div>