{"action":"opened","issue":{"url":"https://api.github.com/repos/VisTrails/VisTrails/issues/1029","labels_url":"https://api.github.com/repos/VisTrails/VisTrails/issues/1029/labels{/name}","comments_url":"https://api.github.com/repos/VisTrails/VisTrails/issues/1029/comments","events_url":"https://api.github.com/repos/VisTrails/VisTrails/issues/1029/events","html_url":"https://github.com/VisTrails/VisTrails/issues/1029","id":64330119,"number":1029,"title":"Error value in provenance is wrong","user":{"login":"remram44","id":426784,"avatar_url":"https://avatars.githubusercontent.com/u/426784?v=3","gravatar_id":"","url":"https://api.github.com/users/remram44","html_url":"https://github.com/remram44","followers_url":"https://api.github.com/users/remram44/followers","following_url":"https://api.github.com/users/remram44/following{/other_user}","gists_url":"https://api.github.com/users/remram44/gists{/gist_id}","starred_url":"https://api.github.com/users/remram44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remram44/subscriptions","organizations_url":"https://api.github.com/users/remram44/orgs","repos_url":"https://api.github.com/users/remram44/repos","events_url":"https://api.github.com/users/remram44/events{/privacy}","received_events_url":"https://api.github.com/users/remram44/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-25T17:42:05Z","updated_at":"2015-03-25T17:42:05Z","closed_at":null,"body":"Found while trying to reproduce #917\r\n\r\nTo reproduce: create a PythonSource with:\r\n```python\r\nfrom vistrails.core.modules.vistrails_module import ModuleError\r\nraise ModuleError(self, \"errormsg\")\r\n```\r\nThe module turns red, highlighting it shows \"errormsg\", but the XML log has:\r\n```xml\r\n<workflowExec completed=\"-1\" id=\"-1\" ip=\"128.238.102.121\" name=\"ROOT + 2*\" parentId=\"\" parentType=\"vistrail\" parentVersion=\"2\" session=\"3\" tsEnd=\"2015-03-25 13:35:52\" tsStart=\"2015-03-25 13:35:52\" user=\"Remi\" version=\"1.0.4\" vtVersion=\"2.2\">\r\n  <annotation id=\"1\" key=\"__reason__\" value=\"Pipeline Execution\" />\r\n  <machine architecture=\"32\" id=\"1\" name=\"Remram\" os=\"Windows\" processor=\"Intel64 Family 6 Model 58 Stepping 9, GenuineIntel\" ram=\"8283080\" />\r\n  <moduleExec cached=\"0\" completed=\"-1\" error=\"errormsg\" id=\"1\" machine_id=\"1\" moduleId=\"0\" moduleName=\"PythonSource\" tsEnd=\"2015-03-25 13:35:52\" tsStart=\"2015-03-25 13:35:52\">\r\n    <annotation id=\"2\" key=\"errorTrace\" value=\"Traceback (most recent call last):&#10;  File &quot;vistrails\\run.py&quot;, line 52, in &lt;module&gt;&#10;    userpackages_dir = os.environ['VISTRAILS_USERPACKAGES_DIR']&#10;  File &quot;C:\\Python2.7\\lib\\os.py&quot;, line 425, in __getitem__&#10;    return self.data[key.upper()]&#10;KeyError: 'VISTRAILS_USERPACKAGES_DIR'&#10;\" />\r\n  </moduleExec>\r\n</workflowExec>\r\n```\r\nSame wrong traceback is shown in Provenance tab:\r\n![provenance tab screenshot](https://cloud.githubusercontent.com/assets/426784/6831120/b13d66c0-d2f4-11e4-81c1-38bab6ef295e.png)"}}