{"action":"created","issue":{"url":"https://api.github.com/repos/Tset-Noitamotua/Sikuli-and-Robot-Framework-Integration/issues/10","labels_url":"https://api.github.com/repos/Tset-Noitamotua/Sikuli-and-Robot-Framework-Integration/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/Tset-Noitamotua/Sikuli-and-Robot-Framework-Integration/issues/10/comments","events_url":"https://api.github.com/repos/Tset-Noitamotua/Sikuli-and-Robot-Framework-Integration/issues/10/events","html_url":"https://github.com/Tset-Noitamotua/Sikuli-and-Robot-Framework-Integration/issues/10","id":58614709,"number":10,"title":"[error] ObserverCallBack: jython init: we have problems","user":{"login":"Tset-Noitamotua","id":5635462,"avatar_url":"https://avatars.githubusercontent.com/u/5635462?v=3","gravatar_id":"","url":"https://api.github.com/users/Tset-Noitamotua","html_url":"https://github.com/Tset-Noitamotua","followers_url":"https://api.github.com/users/Tset-Noitamotua/followers","following_url":"https://api.github.com/users/Tset-Noitamotua/following{/other_user}","gists_url":"https://api.github.com/users/Tset-Noitamotua/gists{/gist_id}","starred_url":"https://api.github.com/users/Tset-Noitamotua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tset-Noitamotua/subscriptions","organizations_url":"https://api.github.com/users/Tset-Noitamotua/orgs","repos_url":"https://api.github.com/users/Tset-Noitamotua/repos","events_url":"https://api.github.com/users/Tset-Noitamotua/events{/privacy}","received_events_url":"https://api.github.com/users/Tset-Noitamotua/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Tset-Noitamotua/Sikuli-and-Robot-Framework-Integration/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-23T16:58:57Z","updated_at":"2015-02-24T10:46:06Z","closed_at":null,"body":"I´m trying to implement an observer keyword which will enable to look for unexpected popups or dialogs during test execution and handle them appropriately.\r\n\r\nThe following script (observer.py in folder observer.sikuli) works fine from Sikuli IDE and from cmd.\r\nFrom cmd I call it with ```runsikulix.bat -r observer.sikuli```.\r\n\r\n```python\r\nfrom sikuli import *\r\n\r\nregion = Region.create(Screen(0).x, Screen(0).y, Screen(0).w, Screen(0).h)\r\nregion = Region(region)\r\nregion.highlight(2)\r\n\r\ndef event_handler(event):\r\n\tprint 'Entered event_handler.'\r\n    # handle popup / dialog ... close, submit, etc. \r\n\tregion.stopObserver()\r\n\tprint 'Observer stopped!'\r\n    return\r\n\r\ndef event_observer():\r\n\tprint 'Register Event Observer.'\r\n\tregion.onAppear(r'C:\\path_to_image\\image_of_dialog.png', event_handler)\r\n\tprint 'Registered Event Observer.'\r\n\t\r\n\tregion.observe(background=True)\r\n    print 'Started Observer.'\r\n\tprint \"wait 10 s\"\r\n\twait(10)\r\n\treturn\r\n\r\nevent_observer()\r\n```\r\n\r\nWhen I call it with ```jython observer.sikuli/observer.py``` I get the 'ObserverCallBack error':\r\n\r\n![image](https://cloud.githubusercontent.com/assets/5635462/6332051/5538e63e-bb83-11e4-90cd-c5afc0377d59.png)\r\n\r\n\r\nThe same error appears also when calling the 'event_observer()' function from Robot Framework:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/5635462/6332390/44257608-bb85-11e4-870f-3cd7c4475316.png)\r\n\r\nAm I doing something wrong here? How can I solve that?\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Tset-Noitamotua/Sikuli-and-Robot-Framework-Integration/issues/comments/75734928","html_url":"https://github.com/Tset-Noitamotua/Sikuli-and-Robot-Framework-Integration/issues/10#issuecomment-75734928","issue_url":"https://api.github.com/repos/Tset-Noitamotua/Sikuli-and-Robot-Framework-Integration/issues/10","id":75734928,"user":{"login":"Tset-Noitamotua","id":5635462,"avatar_url":"https://avatars.githubusercontent.com/u/5635462?v=3","gravatar_id":"","url":"https://api.github.com/users/Tset-Noitamotua","html_url":"https://github.com/Tset-Noitamotua","followers_url":"https://api.github.com/users/Tset-Noitamotua/followers","following_url":"https://api.github.com/users/Tset-Noitamotua/following{/other_user}","gists_url":"https://api.github.com/users/Tset-Noitamotua/gists{/gist_id}","starred_url":"https://api.github.com/users/Tset-Noitamotua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tset-Noitamotua/subscriptions","organizations_url":"https://api.github.com/users/Tset-Noitamotua/orgs","repos_url":"https://api.github.com/users/Tset-Noitamotua/repos","events_url":"https://api.github.com/users/Tset-Noitamotua/events{/privacy}","received_events_url":"https://api.github.com/users/Tset-Noitamotua/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T10:46:06Z","updated_at":"2015-02-24T10:46:06Z","body":"I also have a JYTHONPATH environment variable:\r\n```cmd\r\nC:\\SikuliX_POC\\ecliso\\step_3>echo %jythonpath%\r\nC:\\SikuliX_110\\sikulixapi.jar\\Lib\r\n```\r\n\r\nAnd my SikuliX install folder is on path:\r\n![image](https://cloud.githubusercontent.com/assets/5635462/6347750/aa3aff04-bc1a-11e4-9682-9f8da0b0f197.png)\r\n"}}