{"action":"created","issue":{"url":"https://api.github.com/repos/chaquo/chaquopy/issues/44","repository_url":"https://api.github.com/repos/chaquo/chaquopy","labels_url":"https://api.github.com/repos/chaquo/chaquopy/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/chaquo/chaquopy/issues/44/comments","events_url":"https://api.github.com/repos/chaquo/chaquopy/issues/44/events","html_url":"https://github.com/chaquo/chaquopy/issues/44","id":342584811,"node_id":"MDU6SXNzdWUzNDI1ODQ4MTE=","number":44,"title":"Error in including external file","user":{"login":"MuneebAhmadMashwani","id":25923553,"node_id":"MDQ6VXNlcjI1OTIzNTUz","avatar_url":"https://avatars2.githubusercontent.com/u/25923553?v=4","gravatar_id":"","url":"https://api.github.com/users/MuneebAhmadMashwani","html_url":"https://github.com/MuneebAhmadMashwani","followers_url":"https://api.github.com/users/MuneebAhmadMashwani/followers","following_url":"https://api.github.com/users/MuneebAhmadMashwani/following{/other_user}","gists_url":"https://api.github.com/users/MuneebAhmadMashwani/gists{/gist_id}","starred_url":"https://api.github.com/users/MuneebAhmadMashwani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MuneebAhmadMashwani/subscriptions","organizations_url":"https://api.github.com/users/MuneebAhmadMashwani/orgs","repos_url":"https://api.github.com/users/MuneebAhmadMashwani/repos","events_url":"https://api.github.com/users/MuneebAhmadMashwani/events{/privacy}","received_events_url":"https://api.github.com/users/MuneebAhmadMashwani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-19T05:35:07Z","updated_at":"2018-07-23T06:46:46Z","closed_at":null,"author_association":"NONE","body":"I want to read the text file having the dictionary like:\r\n  \r\n distancefun = levenshtein_distance\r\n ssc = sympound(distancefun=distancefun, maxDictionaryEditDistance=3)\r\n ssc.load_dictionary(\"example-dict.txt\", term_index=0, count_index=1)\r\n\r\nwhere should I place the text file \"example-dict.txt\" to import and use properly?\r\nor is there an error on importing the library\r\n"},"comment":{"url":"https://api.github.com/repos/chaquo/chaquopy/issues/comments/406956662","html_url":"https://github.com/chaquo/chaquopy/issues/44#issuecomment-406956662","issue_url":"https://api.github.com/repos/chaquo/chaquopy/issues/44","id":406956662,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjk1NjY2Mg==","user":{"login":"MuneebAhmadMashwani","id":25923553,"node_id":"MDQ6VXNlcjI1OTIzNTUz","avatar_url":"https://avatars2.githubusercontent.com/u/25923553?v=4","gravatar_id":"","url":"https://api.github.com/users/MuneebAhmadMashwani","html_url":"https://github.com/MuneebAhmadMashwani","followers_url":"https://api.github.com/users/MuneebAhmadMashwani/followers","following_url":"https://api.github.com/users/MuneebAhmadMashwani/following{/other_user}","gists_url":"https://api.github.com/users/MuneebAhmadMashwani/gists{/gist_id}","starred_url":"https://api.github.com/users/MuneebAhmadMashwani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MuneebAhmadMashwani/subscriptions","organizations_url":"https://api.github.com/users/MuneebAhmadMashwani/orgs","repos_url":"https://api.github.com/users/MuneebAhmadMashwani/repos","events_url":"https://api.github.com/users/MuneebAhmadMashwani/events{/privacy}","received_events_url":"https://api.github.com/users/MuneebAhmadMashwani/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T06:46:46Z","updated_at":"2018-07-23T06:46:46Z","author_association":"NONE","body":"get_data is being used by the libarary \"sympound\" and the python code is working fine when i run in simple python envoirnment.\r\n\r\nHere is the error i get in console:\r\n\r\nException in thread Thread-1:\r\nTraceback (most recent call last):\r\n  File \"stdlib/threading.py\", line 916, in bootstrap_inner\r\n  File \"stdlib/threading.py\", line 864, in run\r\n  File \"/android_asset/chaquopy/app.zip/chaquopy/utils/console.py\", line 14, in <lambda>\r\n    threading.Thread(target=lambda: runnable.run()).start()\r\n  File \"class.pxi\", line 696, in java.chaquopy.JavaMethod._get_.lambda2\r\n  File \"class.pxi\", line 716, in java.chaquopy.JavaMethod._call__\r\n  File \"class.pxi\", line 806, in java.chaquopy.JavaMethod.call_nonvirtual_method\r\n  File \"env.pxi\", line 242, in java.chaquopy.CQPEnv.CallNonvirtualVoidMethodA\r\n  File \"env.pxi\", line 484, in java.chaquopy.CQPEnv.check_exception\r\ncom.chaquo.python.PyException: AttributeError: 'sympound' object has no attribute 'get_data'\r\n\tat <python>.test(/android_asset/chaquopy/app.zip/main.py:21)\r\n\tat <python>.chaquopy_java.call(chaquopy_java.pyx:274)\r\n\tat <python>.chaquopy_java.Java_com_chaquo_python_PyObject_callAttrThrows(chaquopy_java.pyx:246)\r\n\tat com.chaquo.python.PyObject.callAttrThrows(Native Method)\r\n\tat com.chaquo.python.PyObject.callAttr(PyObject.java:140)\r\n\tat com.chaquo.python.console.MainActivity$Task.run(MainActivity.java:21)\r\n\tat com.chaquo.python.utils.ConsoleActivity$Task$1.run(ConsoleActivity.java:333)"}}
{"actor":{"display_login":"MuneebAhmadMashwani"}}