launchservicesd: secTaskLoadEntitlements failed error=22 while loading java
<p>I am trying to run a python program ( sikuli ) that imports a jar using <a href="https://github.com/kivy/pyjnius" rel="nofollow noreferrer">jnius</a>. This is the gist of the code in sikuli package that loads the jar file in python</p>

<pre><code>import os
jarpath = "/Users/*/sikuli-api-1.0.3-standalone.jar"
os.environ['CLASSPATH'] = jarpath
from jnius import autoclass
DesktopMouse = autoclass('org.sikuli.api.robot.desktop.DesktopMouse')
aa = DesktopMouse()
gg = aa.getLocation()
</code></pre>

<p>This code runs without any problem when I run in windows. But when I run this in mac, the program hangs with a java icon in the dock. <a href="https://i.stack.imgur.com/a8d1M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a8d1M.png" alt="java icon"></a>. and I get this error/message in the logs when I run the python script.</p>

<pre><code>launchservicesd: SecTaskLoadEntitlements failed error=22
appleeventsd: SecTaskLoadEntitlements failed error=22
</code></pre>

<p>Can anyone say what this error means ( or the reason for the hang/java icon in the dock )? I would like to debug the reason for this hang but any help in debugging this error would be welcome.</p>