upload directory of files error
This used to work. Now when I try to upload a directory of files, it gives this error: URL: https://galaxy.cit.nih.gov/library_common/ldda_info?library_id=a799d38679e985db&show_deleted=False&cntrller=library&folder_id=0a248a1f62a0cc04&use_panels=False&id=dff4190d282fb07a File '/gs1/users/galaxy/pro/eggs/WebError-0.8a-py2.6.egg/weberror/evalexception/middleware.py', line 364 in respond app_iter = self.application(environ, detect_start_response) File '/gs1/users/galaxy/pro/eggs/Paste-1.6-py2.6.egg/paste/debug/prints.py', line 98 in __call__ environ, self.app) File '/gs1/users/galaxy/pro/eggs/Paste-1.6-py2.6.egg/paste/wsgilib.py', line 539 in intercept_output app_iter = application(environ, replacement_start_response) File '/gs1/users/galaxy/pro/eggs/Paste-1.6-py2.6.egg/paste/recursive.py', line 80 in __call__ return self.application(environ, start_response) File '/gs1/users/galaxy/pro/lib/galaxy/web/framework/middleware/remoteuser.py', line 121 in __call__ return self.app( environ, start_response ) File '/gs1/users/galaxy/pro/eggs/Paste-1.6-py2.6.egg/paste/httpexceptions.py', line 632 in __call__ return self.application(environ, start_response) File '/gs1/users/galaxy/pro/lib/galaxy/web/framework/base.py', line 145 in __call__ body = method( trans, **kwargs ) File '/gs1/users/galaxy/pro/lib/galaxy/web/controllers/library_common.py', line 574 in ldda_info status=status ) File '/gs1/users/galaxy/pro/lib/galaxy/web/framework/__init__.py', line 645 in fill_template return self.fill_template_mako( filename, **kwargs ) File '/gs1/users/galaxy/pro/lib/galaxy/web/framework/__init__.py', line 656 in fill_template_mako return template.render( **data ) File '/gs1/users/galaxy/pro/eggs/Mako-0.2.5-py2.6.egg/mako/template.py', line 133 in render return runtime._render(self, self.callable_, args, data) File '/gs1/users/galaxy/pro/eggs/Mako-0.2.5-py2.6.egg/mako/runtime.py', line 364 in _render _render_context(template, callable_, context, *args, **_kwargs_for_callable(callable_, data)) File '/gs1/users/galaxy/pro/eggs/Mako-0.2.5-py2.6.egg/mako/runtime.py', line 381 in _render_context _exec_template(inherit, lclcontext, args=args, kwargs=kwargs) File '/gs1/users/galaxy/pro/eggs/Mako-0.2.5-py2.6.egg/mako/runtime.py', line 414 in _exec_template callable_(context, *args, **kwargs) File '/gs1/users/galaxy/pro/database/compiled_templates/base.mako.py', line 40 in render_body __M_writer(unicode(next.body())) File '/gs1/users/galaxy/pro/eggs/Mako-0.2.5-py2.6.egg/mako/runtime.py', line 255 in <lambda> return lambda *args, **kwargs:callable_(self.context, *args, **kwargs) File '/gs1/users/galaxy/pro/database/compiled_templates/library/common/ldda_info.mako.py', line 224 in render_body if job.stdout.strip() != '': AttributeError: 'NoneType' object has no attribute 'strip' Huh? David Hoover Helix Systems Staff http://helix.nih.gov
David Hoover wrote:
This used to work. Now when I try to upload a directory of files, it gives this error:
URL: https://galaxy.cit.nih.gov/library_common/ldda_info?library_id=a799d38679e985db&show_deleted=False&cntrller=library&folder_id=0a248a1f62a0cc04&use_panels=False&id=dff4190d282fb07a File '/gs1/users/galaxy/pro/eggs/WebError-0.8a-py2.6.egg/weberror/evalexception/middleware.py', line 364 in respond app_iter = self.application(environ, detect_start_response) ... File '/gs1/users/galaxy/pro/database/compiled_templates/library/common/ldda_info.mako.py', line 224 in render_body if job.stdout.strip() != '': AttributeError: 'NoneType' object has no attribute 'strip'
Huh?
I'm not sure how it ever worked since plenty of jobs don't have stdout/stderr. Anyway, I fixed it in 5078:d83fa80e8321. If you don't want to pull from the development repository, the fix is simple to apply by hand: diff -r 2a3b27d59bd3 templates/library/common/ldda_info.mako --- a/templates/library/common/ldda_info.mako Thu Feb 17 12:05:39 2011 -0500 +++ b/templates/library/common/ldda_info.mako Thu Feb 17 13:56:57 2011 -0500 @@ -117,14 +117,14 @@ </div> %if ldda.creating_job_associations: <% job = ldda.creating_job_associations[0].job %> - %if job.stdout.strip() != '': + %if job.stdout and job.stdout.strip() != '': <div class="form-row"> <label>Job Standard Output</label> <pre>${job.stdout}</pre> <div style="clear: both"></div> </div> %endif - %if job.stderr.strip() != '': + %if job.stderr and job.stderr.strip() != '': <div class="form-row"> <label>Job Standard Error</label> <pre>${job.stderr}</pre> --nate
David Hoover Helix Systems Staff http://helix.nih.gov _______________________________________________ To manage your subscriptions to this and other Galaxy lists, please use the interface at:
participants (2)
-
David Hoover
-
Nate Coraor