Title: Convert Python stack trace to Java stack trace · Issue #10 · GateNLP/gateplugin-Python · GitHub
Open Graph Title: Convert Python stack trace to Java stack trace · Issue #10 · GateNLP/gateplugin-Python
X Title: Convert Python stack trace to Java stack trace · Issue #10 · GateNLP/gateplugin-Python
Description: If the Python code raises an Exception then this GATE plugin handles this by noting that it couldn't read JSON from the Python process and closing the pipeline. In some sense this works, in that processing is halted, but it's not very cl...
Open Graph Description: If the Python code raises an Exception then this GATE plugin handles this by noting that it couldn't read JSON from the Python process and closing the pipeline. In some sense this works, in that pr...
X Description: If the Python code raises an Exception then this GATE plugin handles this by noting that it couldn't read JSON from the Python process and closing the pipeline. In some sense this works, in tha...
Opengraph URL: https://github.com/GateNLP/gateplugin-Python/issues/10
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Convert Python stack trace to Java stack trace ","articleBody":"If the Python code raises an Exception then this GATE plugin handles this by noting that it couldn't read JSON from the Python process and closing the pipeline.\r\n\r\nIn some sense this works, in that processing is halted, but it's not very clean and the plugin couldn't be more intelligent about catching the Exception (on the Python side) and reporting it via a particular JSON message.\r\n\r\nHere's an example from a (accidentally misconfigured) rumourVeracity Python code:\r\n\r\n```\r\nUsing Theano backend.\r\nTraceback (most recent call last):\r\n File \"/home/ac1xdrj/prj/models/rumourVeracity/veracity_gate.py\", line 4, in \u003cmodule>\r\n from innerAttentionModel import InnerAttentionModel\r\n File \"/home/ac1xdrj/prj/models/rumourVeracity/innerAttentionModel.py\", line 5, in \u003cmodule>\r\n from keras import backend as K\r\n File \"/home/ac1xdrj/prj/models/rumourVeracity/venv/local/lib/python2.7/site-packages/keras/__init__.py\", line 3, in \u003cmodule>\r\n from . import utils\r\n File \"/home/ac1xdrj/prj/models/rumourVeracity/venv/local/lib/python2.7/site-packages/keras/utils/__init__.py\", line 6, in \u003cmodule>\r\n from . import conv_utils\r\n File \"/home/ac1xdrj/prj/models/rumourVeracity/venv/local/lib/python2.7/site-packages/keras/utils/conv_utils.py\", line 9, in \u003cmodule>\r\n from .. import backend as K\r\n File \"/home/ac1xdrj/prj/models/rumourVeracity/venv/local/lib/python2.7/site-packages/keras/backend/__init__.py\", line 86, in \u003cmodule>\r\n from .theano_backend import *\r\n File \"/home/ac1xdrj/prj/models/rumourVeracity/venv/local/lib/python2.7/site-packages/keras/backend/theano_backend.py\", line 7, in \u003cmodule>\r\n import theano\r\nImportError: No module named theano\r\nUnable to read JSON from python process, closing pipeline\r\ncom.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input\r\n at [Source: java.io.BufferedReader@69946c29; line: 1, column: 1]\r\n\tat com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:164)\r\n\tat com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3036)\r\n\tat com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2978)\r\n\tat com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2128)\r\n\tat gate.python.PythonPR.execute(PythonPR.java:158)\r\n\tat gate.util.Benchmark.executeWithBenchmarking(Benchmark.java:291)\r\n\tat gate.creole.SerialController.runComponent(SerialController.java:225)\r\n\tat gate.creole.SerialController.executeImpl(SerialController.java:157)\r\n\tat gate.creole.AbstractController.execute(AbstractController.java:78)\r\n\tat gate.util.Benchmark.executeWithBenchmarking(Benchmark.java:291)\r\n\tat gate.gui.SerialControllerEditor$RunAction$1.run(SerialControllerEditor.java:1759)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\ngate.creole.ExecutionException: Unable to read JSON from python process - perhaps process printed to stdout? (use stderr instead)\r\n\tat gate.python.PythonPR.execute(PythonPR.java:165)\r\n\tat gate.util.Benchmark.executeWithBenchmarking(Benchmark.java:291)\r\n\tat gate.creole.SerialController.runComponent(SerialController.java:225)\r\n\tat gate.creole.SerialController.executeImpl(SerialController.java:157)\r\n\tat gate.creole.AbstractController.execute(AbstractController.java:78)\r\n\tat gate.util.Benchmark.executeWithBenchmarking(Benchmark.java:291)\r\n\tat gate.gui.SerialControllerEditor$RunAction$1.run(SerialControllerEditor.java:1759)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\nCaused by: com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input\r\n at [Source: java.io.BufferedReader@69946c29; line: 1, column: 1]\r\n\tat com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:164)\r\n\tat com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3036)\r\n\tat com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2978)\r\n\tat com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2128)\r\n\tat gate.python.PythonPR.execute(PythonPR.java:158)\r\n\t... 7 more\r\nUsing Theano backend.\r\nTraceback (most recent call last):\r\n File \"/home/ac1xdrj/prj/models/rumourVeracity/veracity_gate.py\", line 4, in \u003cmodule>\r\n from innerAttentionModel import InnerAttentionModel\r\n File \"/home/ac1xdrj/prj/models/rumourVeracity/innerAttentionModel.py\", line 5, in \u003cmodule>\r\n from keras import backend as K\r\n File \"/home/ac1xdrj/prj/models/rumourVeracity/venv/local/lib/python2.7/site-packages/keras/__init__.py\", line 3, in \u003cmodule>\r\n from . import utils\r\n File \"/home/ac1xdrj/prj/models/rumourVeracity/venv/local/lib/python2.7/site-packages/keras/utils/__init__.py\", line 6, in \u003cmodule>\r\n from . import conv_utils\r\n File \"/home/ac1xdrj/prj/models/rumourVeracity/venv/local/lib/python2.7/site-packages/keras/utils/conv_utils.py\", line 9, in \u003cmodule>\r\n from .. import backend as K\r\n File \"/home/ac1xdrj/prj/models/rumourVeracity/venv/local/lib/python2.7/site-packages/keras/backend/__init__.py\", line 86, in \u003cmodule>\r\n from .theano_backend import *\r\n File \"/home/ac1xdrj/prj/models/rumourVeracity/venv/local/lib/python2.7/site-packages/keras/backend/theano_backend.py\", line 7, in \u003cmodule>\r\n import theano\r\nImportError: No module named theano\r\n```","author":{"url":"https://github.com/drj11","@type":"Person","name":"drj11"},"datePublished":"2019-05-02T12:55:22Z","url":"https://github.com/GateNLP/gateplugin-Python/issues/10"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a0fe3f80-8c8d-7200-4552-8e27b91df499 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A9C:E9D16:FDCA1F:1414632:6B0149F6 |
| html-safe-nonce | 77ef0be2fae07f3ce2793b78dcacacdcdde6a4f5fb0361d7aa9af44746c36952 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTlDOkU5RDE2OkZEQ0ExRjoxNDE0NjMyOjZCMDE0OUY2IiwidmlzaXRvcl9pZCI6IjE5NTYxNTc5MzYzODg2MjI4MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4de56eb58794c876477bf2b1bacdfca5aeea70d40078fa1b9ad6b78add27ebe4 |
| hovercard-subject-tag | issue:439575974 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/GateNLP/gateplugin-Python/10/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f413c245b24e70fac119b0096d0edc2a6fe8637ceda75a7d6b3e0b1f42734270/GateNLP/gateplugin-Python/issues/10 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f413c245b24e70fac119b0096d0edc2a6fe8637ceda75a7d6b3e0b1f42734270/GateNLP/gateplugin-Python/issues/10 |
| og:image:alt | If the Python code raises an Exception then this GATE plugin handles this by noting that it couldn't read JSON from the Python process and closing the pipeline. In some sense this works, in that pr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | drj11 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/GateNLP/gateplugin-Python git https://github.com/GateNLP/gateplugin-Python.git |
| octolytics-dimension-user_id | 14233746 |
| octolytics-dimension-user_login | GateNLP |
| octolytics-dimension-repository_id | 49946268 |
| octolytics-dimension-repository_nwo | GateNLP/gateplugin-Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49946268 |
| octolytics-dimension-repository_network_root_nwo | GateNLP/gateplugin-Python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width