[galaxyproject/galaxy] 8255e7: Do not pollute param_dict with a non JSONifiable d...
Branch: refs/heads/release_16.04 Home: https://github.com/galaxyproject/galaxy Commit: 8255e722cd21bb1cee594db3212657c6a22aa730 https://github.com/galaxyproject/galaxy/commit/8255e722cd21bb1cee594db321265... Author: Nicola Soranzo <nicola.soranzo@tgac.ac.uk> Date: 2016-05-11 (Wed, 11 May 2016) Changed paths: M lib/galaxy/tools/evaluation.py Log Message: ----------- Do not pollute param_dict with a non JSONifiable dict When running a data manager with a dataset parameter, the job fails with the following backtrace: Traceback (most recent call last): File "/opt/galaxy/lib/galaxy/jobs/runners/__init__.py", line 166, in prepare_job job_wrapper.prepare() File "/opt/galaxy/lib/galaxy/jobs/__init__.py", line 885, in prepare tool_evaluator.set_compute_environment( compute_environment, get_special=get_special ) File "/opt/galaxy/lib/galaxy/tools/evaluation.py", line 107, in set_compute_environment self.tool.exec_before_job( self.app, inp_data, out_data, param_dict ) File "/opt/galaxy/lib/galaxy/tools/__init__.py", line 1956, in exec_before_job out.write( json.dumps( (json_params) ).encode('utf8') ) File "/usr/lib/python2.7/json/__init__.py", line 243, in dumps return _default_encoder.encode(obj) File "/usr/lib/python2.7/json/encoder.py", line 207, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib/python2.7/json/encoder.py", line 270, in iterencode return _iterencode(o, 0) TypeError: keys must be a string The bug was introduced in PR #2029. Commit: e28d305f3cda4377325190363057431f1f4f4d46 https://github.com/galaxyproject/galaxy/commit/e28d305f3cda43773251903630574... Author: Daniel Blankenberg <dan.blankenberg@gmail.com> Date: 2016-05-12 (Thu, 12 May 2016) Changed paths: M lib/galaxy/tools/evaluation.py Log Message: ----------- Merge pull request #2345 from nsoranzo/release_16.04_fix_for_2029 [16.04] Do not pollute param_dict with a non JSONifiable dict Compare: https://github.com/galaxyproject/galaxy/compare/013813691ac1...e28d305f3cda
participants (1)
-
GitHub