{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaPy/PyCall.jl/issues/608","repository_url":"https://api.github.com/repos/JuliaPy/PyCall.jl","labels_url":"https://api.github.com/repos/JuliaPy/PyCall.jl/issues/608/labels{/name}","comments_url":"https://api.github.com/repos/JuliaPy/PyCall.jl/issues/608/comments","events_url":"https://api.github.com/repos/JuliaPy/PyCall.jl/issues/608/events","html_url":"https://github.com/JuliaPy/PyCall.jl/pull/608","id":376160539,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3NDQyMTI5","number":608,"title":"Make Julia exceptions wrapped in Python Exceptions more informative","user":{"login":"galenlynch","id":6831311,"node_id":"MDQ6VXNlcjY4MzEzMTE=","avatar_url":"https://avatars3.githubusercontent.com/u/6831311?v=4","gravatar_id":"","url":"https://api.github.com/users/galenlynch","html_url":"https://github.com/galenlynch","followers_url":"https://api.github.com/users/galenlynch/followers","following_url":"https://api.github.com/users/galenlynch/following{/other_user}","gists_url":"https://api.github.com/users/galenlynch/gists{/gist_id}","starred_url":"https://api.github.com/users/galenlynch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galenlynch/subscriptions","organizations_url":"https://api.github.com/users/galenlynch/orgs","repos_url":"https://api.github.com/users/galenlynch/repos","events_url":"https://api.github.com/users/galenlynch/events{/privacy}","received_events_url":"https://api.github.com/users/galenlynch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-31T21:06:48Z","updated_at":"2018-11-01T04:39:18Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/JuliaPy/PyCall.jl/pulls/608","html_url":"https://github.com/JuliaPy/PyCall.jl/pull/608","diff_url":"https://github.com/JuliaPy/PyCall.jl/pull/608.diff","patch_url":"https://github.com/JuliaPy/PyCall.jl/pull/608.patch"},"body":"I have added a back-trace to the description of exceptions coming from Julia\r\nthat are subsequently wrapped in Python exceptions.\r\n\r\nThis makes it much easier to find the source of errors in Julia code being\r\ncalled from Python functions.\r\n\r\nCloses #607"},"comment":{"url":"https://api.github.com/repos/JuliaPy/PyCall.jl/issues/comments/434928467","html_url":"https://github.com/JuliaPy/PyCall.jl/pull/608#issuecomment-434928467","issue_url":"https://api.github.com/repos/JuliaPy/PyCall.jl/issues/608","id":434928467,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDkyODQ2Nw==","user":{"login":"galenlynch","id":6831311,"node_id":"MDQ6VXNlcjY4MzEzMTE=","avatar_url":"https://avatars3.githubusercontent.com/u/6831311?v=4","gravatar_id":"","url":"https://api.github.com/users/galenlynch","html_url":"https://github.com/galenlynch","followers_url":"https://api.github.com/users/galenlynch/followers","following_url":"https://api.github.com/users/galenlynch/following{/other_user}","gists_url":"https://api.github.com/users/galenlynch/gists{/gist_id}","starred_url":"https://api.github.com/users/galenlynch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galenlynch/subscriptions","organizations_url":"https://api.github.com/users/galenlynch/orgs","repos_url":"https://api.github.com/users/galenlynch/repos","events_url":"https://api.github.com/users/galenlynch/events{/privacy}","received_events_url":"https://api.github.com/users/galenlynch/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T04:39:18Z","updated_at":"2018-11-01T04:39:18Z","author_association":"NONE","body":"Thanks for thinking through this in so much detail!\r\n\r\nIf I understand you correctly, your solution requires making a whole bunch of new exception classes in python and putting the Julia stacktrace in the `__str__` attribute. While this may be the right way of solving the problem, I think it's beyond the scope of what I need and I won't implement it in this PR.\r\n\r\nSince your suggestion of adding `@debug \"Throwing error in Python\" exception=(e, bt)` in `pyraise(e)` would satisfy my need of determining where exceptions in Julia are coming from when I am developing some code, then I would be happy to implement it and see how it works as part of this PR. If not I'm happy to close the PR."}}
{"actor":{"display_login":"galenlynch"}}