thasso / pyjip

JIP Pipeline System
http://pyjip.readthedocs.org
Other
19 stars 8 forks source link

Release 0.5 breaks with some python recursivity problem #41

Open lfrias81 opened 10 years ago

lfrias81 commented 10 years ago

Whenever trying to run a tool or pipeline I get the following error: Exception RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in <type 'exceptions.AttributeError'> ignored

The same tool/pipelines runs ok in release 0.4

lfrias81 commented 10 years ago

That though makes it not break (is a "warning"). What makes it break is not providing an optional parameter which is checked for whether is set or not, and the following error is got:

Traceback (most recent call last): File "/apps/DEVEL/jip/2.7/0.5/bin/jip", line 9, in load_entry_point('pyjip==0.5', 'console_scripts', 'jip')() File "/apps/DEVEL/jip/2.7/0.5/lib/python/jip/cli/jip_main.py", line 80, in main _main() File "/apps/DEVEL/jip/2.7/0.5/lib/python/jip/cli/jip_main.py", line 137, in _main runpy.run_module("jip.cli.jip_interpreter", run_name="main") File "/apps/DEVEL/python/2.7.5/lib/python2.7/runpy.py", line 180, in run_module fname, loader, pkg_name) File "/apps/DEVEL/python/2.7.5/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/apps/DEVEL/jip/2.7/0.5/lib/python/jip/cli/jip_interpreter.py", line 63, in main() File "/apps/DEVEL/jip/2.7/0.5/lib/python/jip/cli/jip_interpreter.py", line 59, in main jip_run(jip_args + [script_file] + script_args) File "/apps/DEVEL/jip/2.7/0.5/lib/python/jip/cli/jip_run.py", line 51, in main dry(script, script_args, dry=args['--dry'], show=args['--show']) File "/apps/DEVEL/jip/2.7/0.5/lib/python/jip/cli/init.py", line 575, in dry jobs = jip.jobs.create_jobs(script, args=script_args) File "/apps/DEVEL/jip/2.7/0.5/lib/python/jip/jobs.py", line 1043, in create_jobs pipeline.expand(validate=validate) File "/apps/DEVEL/jip/2.7/0.5/lib/python/jip/pipelines.py", line 809, in expand self._expand_sub_pipelines(validate=validate) File "/apps/DEVEL/jip/2.7/0.5/lib/python/jip/pipelines.py", line 999, in _expand_sub_pipelines _check_fanout=check_fanout) File "/apps/DEVEL/jip/2.7/0.5/lib/python/jip/pipelines.py", line 809, in expand self._expand_sub_pipelines(validate=validate) File "/apps/DEVEL/jip/2.7/0.5/lib/python/jip/pipelines.py", line 977, in _expand_sub_pipelines _render_nodes(self, [node]) File "/apps/DEVEL/jip/2.7/0.5/lib/python/jip/pipelines.py", line 2165, in _render_nodes _render_option(o, _create) File "/apps/DEVEL/jip/2.7/0.5/lib/python/jip/pipelines.py", line 2201, in _render_option rendered = option.value File "/apps/DEVEL/jip/2.7/0.5/lib/python/jip/options.py", line 402, in value v = render_template(value, ctx) File "/apps/DEVEL/jip/2.7/0.5/lib/python/jip/templates.py", line 356, in render_template return tmpl.render(ctx) File "/apps/DEVEL/jip/2.7/0.5/lib/python/jinja2/environment.py", line 969, in render return self.environment.handle_exception(exc_info, True) File "/apps/DEVEL/jip/2.7/0.5/lib/python/jinja2/environment.py", line 742, in handle_exception reraise(exc_type, exc_value, tb) File "