{"action":"created","issue":{"url":"https://api.github.com/repos/ganga-devs/ganga/issues/1300","repository_url":"https://api.github.com/repos/ganga-devs/ganga","labels_url":"https://api.github.com/repos/ganga-devs/ganga/issues/1300/labels{/name}","comments_url":"https://api.github.com/repos/ganga-devs/ganga/issues/1300/comments","events_url":"https://api.github.com/repos/ganga-devs/ganga/issues/1300/events","html_url":"https://github.com/ganga-devs/ganga/issues/1300","id":339720457,"node_id":"MDU6SXNzdWUzMzk3MjA0NTc=","number":1300,"title":"Unable to submit Job in Python3","user":{"login":"apsknight","id":19551774,"node_id":"MDQ6VXNlcjE5NTUxNzc0","avatar_url":"https://avatars1.githubusercontent.com/u/19551774?v=4","gravatar_id":"","url":"https://api.github.com/users/apsknight","html_url":"https://github.com/apsknight","followers_url":"https://api.github.com/users/apsknight/followers","following_url":"https://api.github.com/users/apsknight/following{/other_user}","gists_url":"https://api.github.com/users/apsknight/gists{/gist_id}","starred_url":"https://api.github.com/users/apsknight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apsknight/subscriptions","organizations_url":"https://api.github.com/users/apsknight/orgs","repos_url":"https://api.github.com/users/apsknight/repos","events_url":"https://api.github.com/users/apsknight/events{/privacy}","received_events_url":"https://api.github.com/users/apsknight/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"alexanderrichards","id":4686942,"node_id":"MDQ6VXNlcjQ2ODY5NDI=","avatar_url":"https://avatars0.githubusercontent.com/u/4686942?v=4","gravatar_id":"","url":"https://api.github.com/users/alexanderrichards","html_url":"https://github.com/alexanderrichards","followers_url":"https://api.github.com/users/alexanderrichards/followers","following_url":"https://api.github.com/users/alexanderrichards/following{/other_user}","gists_url":"https://api.github.com/users/alexanderrichards/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderrichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderrichards/subscriptions","organizations_url":"https://api.github.com/users/alexanderrichards/orgs","repos_url":"https://api.github.com/users/alexanderrichards/repos","events_url":"https://api.github.com/users/alexanderrichards/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderrichards/received_events","type":"User","site_admin":false},"assignees":[{"login":"alexanderrichards","id":4686942,"node_id":"MDQ6VXNlcjQ2ODY5NDI=","avatar_url":"https://avatars0.githubusercontent.com/u/4686942?v=4","gravatar_id":"","url":"https://api.github.com/users/alexanderrichards","html_url":"https://github.com/alexanderrichards","followers_url":"https://api.github.com/users/alexanderrichards/followers","following_url":"https://api.github.com/users/alexanderrichards/following{/other_user}","gists_url":"https://api.github.com/users/alexanderrichards/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderrichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderrichards/subscriptions","organizations_url":"https://api.github.com/users/alexanderrichards/orgs","repos_url":"https://api.github.com/users/alexanderrichards/repos","events_url":"https://api.github.com/users/alexanderrichards/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderrichards/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2018-07-10T07:13:43Z","updated_at":"2018-07-13T08:50:25Z","closed_at":null,"author_association":"MEMBER","body":"When I submit a Job in Python3 using the installation of [this branch](https://github.com/ganga-devs/ganga/tree/ganga_python3) of ganga, I am getting following error.\r\n\r\n```\r\nINFO     submitting job 2\r\nINFO     job 2 status changed to \"submitting\"\r\nINFO     Preparing Executable application.\r\nINFO     Created shared directory: conf-290b4452-e979-421c-8d68-0ec2fc82bd6c\r\nINFO     Removed: /root/gangadir/shared/root/conf-290b4452-e979-421c-8d68-0ec2fc82bd6c\r\nINFO     Removed: conf-290b4452-e979-421c-8d68-0ec2fc82bd6c\r\nWARNING  ---------- error in user/extension code ----------\r\nWARNING  Traceback (most recent call last):\r\nWARNING    File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Lib/Job/Job.py\", line 1468, in submit\r\nWARNING      self._selfAppPrepare(prepare)\r\nWARNING    File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Lib/Job/Job.py\", line 1303, in _selfAppPrepare\r\nWARNING      self.prepare(force=True)\r\nWARNING    File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Lib/Job/Job.py\", line 1119, in prepare\r\nWARNING      add_to_inputsandbox = addProxy(self.application).prepare()\r\nWARNING    File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Base/Proxy.py\", line 708, in proxy_wrapped\r\nWARNING      r = f(*s_args, **s_kwargs)\r\nWARNING    File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/Lib/Executable/Executable.py\", line 120, in prepare\r\nWARNING      self.post_prepare()\r\nWARNING    File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Adapters/IPrepareApp.py\", line 61, in post_prepare\r\nWARNING      self.calc_hash()\r\nWARNING    File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Adapters/IPrepareApp.py\", line 182, in calc_hash\r\nWARNING      digest.update(str(sio.getvalue()))\r\nWARNING  TypeError: Unicode-objects must be encoded before hashing\r\nWARNING  --------------------------------------------------\r\nERROR    Unicode-objects must be encoded before hashing ... reverting job 2 to the new status\r\nINFO     job 2 status changed to \"new\"\r\nTraceback (most recent call last):\r\n  File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Lib/Job/Job.py\", line 1468, in submit\r\n    self._selfAppPrepare(prepare)\r\n  File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Lib/Job/Job.py\", line 1303, in _selfAppPrepare\r\n    self.prepare(force=True)\r\n  File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Lib/Job/Job.py\", line 1119, in prepare\r\n    add_to_inputsandbox = addProxy(self.application).prepare()\r\n  File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Base/Proxy.py\", line 708, in proxy_wrapped\r\n    r = f(*s_args, **s_kwargs)\r\n  File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/Lib/Executable/Executable.py\", line 120, in prepare\r\n    self.post_prepare()\r\n  File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Adapters/IPrepareApp.py\", line 61, in post_prepare\r\n    self.calc_hash()\r\n  File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Adapters/IPrepareApp.py\", line 182, in calc_hash\r\n    digest.update(str(sio.getvalue()))\r\nTypeError: Unicode-objects must be encoded before hashing\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Base/Proxy.py\", line 708, in proxy_wrapped\r\n    r = f(*s_args, **s_kwargs)\r\n  File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Lib/Job/Job.py\", line 1573, in submit\r\n    raise JobError(\"Error: %s\" % err).with_traceback(sys.exc_info()[2])\r\n  File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Lib/Job/Job.py\", line 1468, in submit\r\n    self._selfAppPrepare(prepare)\r\n  File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Lib/Job/Job.py\", line 1303, in _selfAppPrepare\r\n    self.prepare(force=True)\r\n  File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Lib/Job/Job.py\", line 1119, in prepare\r\n    add_to_inputsandbox = addProxy(self.application).prepare()\r\n  File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Base/Proxy.py\", line 708, in proxy_wrapped\r\n    r = f(*s_args, **s_kwargs)\r\n  File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/Lib/Executable/Executable.py\", line 120, in prepare\r\n    self.post_prepare()\r\n  File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Adapters/IPrepareApp.py\", line 61, in post_prepare\r\n    self.calc_hash()\r\n  File \"/root/miniconda3/lib/python3.6/site-packages/Ganga/GPIDev/Adapters/IPrepareApp.py\", line 182, in calc_hash\r\n    digest.update(str(sio.getvalue()))\r\nGanga.GPIDev.Lib.Job.Job.JobError: JobError: Error: Unicode-objects must be encoded before hashing\r\n```"},"comment":{"url":"https://api.github.com/repos/ganga-devs/ganga/issues/comments/404770021","html_url":"https://github.com/ganga-devs/ganga/issues/1300#issuecomment-404770021","issue_url":"https://api.github.com/repos/ganga-devs/ganga/issues/1300","id":404770021,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDc3MDAyMQ==","user":{"login":"apsknight","id":19551774,"node_id":"MDQ6VXNlcjE5NTUxNzc0","avatar_url":"https://avatars1.githubusercontent.com/u/19551774?v=4","gravatar_id":"","url":"https://api.github.com/users/apsknight","html_url":"https://github.com/apsknight","followers_url":"https://api.github.com/users/apsknight/followers","following_url":"https://api.github.com/users/apsknight/following{/other_user}","gists_url":"https://api.github.com/users/apsknight/gists{/gist_id}","starred_url":"https://api.github.com/users/apsknight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apsknight/subscriptions","organizations_url":"https://api.github.com/users/apsknight/orgs","repos_url":"https://api.github.com/users/apsknight/repos","events_url":"https://api.github.com/users/apsknight/events{/privacy}","received_events_url":"https://api.github.com/users/apsknight/received_events","type":"User","site_admin":false},"created_at":"2018-07-13T08:50:25Z","updated_at":"2018-07-13T08:50:25Z","author_association":"MEMBER","body":"Yes, I can submit Jobs now but there is an error in Jobscript\r\n```bash\r\nImportError: No module named configparser\r\n```"}}
{"actor":{"display_login":"apsknight"}}