{"action":"opened","issue":{"url":"https://api.github.com/repos/chaquo/chaquopy/issues/75","repository_url":"https://api.github.com/repos/chaquo/chaquopy","labels_url":"https://api.github.com/repos/chaquo/chaquopy/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/chaquo/chaquopy/issues/75/comments","events_url":"https://api.github.com/repos/chaquo/chaquopy/issues/75/events","html_url":"https://github.com/chaquo/chaquopy/issues/75","id":391672933,"node_id":"MDU6SXNzdWUzOTE2NzI5MzM=","number":75,"title":"Constructor with different number of variables Getting Error","user":{"login":"noknok200","id":36888667,"node_id":"MDQ6VXNlcjM2ODg4NjY3","avatar_url":"https://avatars1.githubusercontent.com/u/36888667?v=4","gravatar_id":"","url":"https://api.github.com/users/noknok200","html_url":"https://github.com/noknok200","followers_url":"https://api.github.com/users/noknok200/followers","following_url":"https://api.github.com/users/noknok200/following{/other_user}","gists_url":"https://api.github.com/users/noknok200/gists{/gist_id}","starred_url":"https://api.github.com/users/noknok200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noknok200/subscriptions","organizations_url":"https://api.github.com/users/noknok200/orgs","repos_url":"https://api.github.com/users/noknok200/repos","events_url":"https://api.github.com/users/noknok200/events{/privacy}","received_events_url":"https://api.github.com/users/noknok200/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-17T11:37:54Z","updated_at":"2018-12-17T11:37:54Z","closed_at":null,"author_association":"NONE","body":"I am trying to turn this android(java) code in to python code using chaquopy.\r\n`    public CanvasView(Context c){\r\n        super(c);\r\n    }\r\n\r\n    public CanvasView(Context c, AttributeSet attr){\r\n        super(c, attr);\r\n    }\r\n\r\n    public CanvasView(Context c, AttributeSet attr, int defStyleAttr){\r\n        super(c, attr, defStyleAttr);\r\n    }`\r\n\r\nI've tried this method:\r\n`\r\n    @constructor([Context])\r\n    def __init__(self, c):\r\n        View.View(c)\r\n        Log.v(\"canvasview\", \"canvas created\")\r\n\r\n    @constructor([Context, AttributeSet])\r\n    def __init__(self, c, attr):\r\n        Log.v(\"canvasview\", \"canvas created\")\r\n        View.View(c, attr)\r\n\r\n    @constructor([Context, AttributeSet, jint])\r\n    def __init__(self, c, attr, style):\r\n        Log.v(\"canvasview\", \"canvas created\")\r\n        View.View(c, attr, style)\r\n`\r\nHowever, it's output was ExceptionInInitializer Error. How should I make the equivalent python code?\r\n"}}
{"actor":{"display_login":"noknok200"}}