Creating workflow which includes Multifile upload
Hi John, One more problem with multifile upload - when I display a workflow which includes multi upload tool, I get: Module workflow_run_mako:476 in render_row_for_param
<http://140.79.7.98/workflow/run?id=f597429621d6eb2b> __M_writer(unicode(param.get_label())) AttributeError: 'UploadDataset' object has no attribute 'get_label'
Ok, I see that UploadDataset class is derived from Group, not ToolParameter. So I tried to add get_label() to the Group class, which returns some string. But then I get: Module workflow_run_mako:476 in render_row_for_param
<http://140.79.7.98/workflow/run?id=f597429621d6eb2b> __M_writer(unicode(param.get_label())) TypeError: 'str' object is not callable
Here my knowledge of Galaxy ends and I need some help please. -Alex
On Wed, Jun 5, 2013 at 8:56 AM, <Alex.Khassapov@csiro.au> wrote:
Hi John,
One more problem with multifile upload – when I display a workflow which includes multi upload tool, I get:
Module workflow_run_mako:476 in render_row_for_param
__M_writer(unicode(param.get_label())) AttributeError: 'UploadDataset' object has no attribute 'get_label'
Ok, I see that UploadDataset class is derived from Group, not ToolParameter. So I tried to add get_label() to the Group class, which returns some string. But then I get:
Module workflow_run_mako:476 in render_row_for_param
__M_writer(unicode(param.get_label())) TypeError: 'str' object is not callable
Here my knowledge of Galaxy ends and I need some help please.
Hi Alex, I guess from the Python exception that you didn't create a method called get_label, but a property or attribute perhaps? Try this at the python prompt and you'll get the same TypeError:
"hello"() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'str' object is not callable
I would have added a get_label method to the class using something like this: class UploadDataset(...): .... def get_label(self): return "Uploaded stuff" Peter
Hi Peter, Of course I added def get_label(self), as a matter of fact, I copied get_label() from ToolParameter class. That's why I'm a bit confused. The get_label function returns a string which is supposed to be displayed, but instead something is trying to execute it? Best Regards, Alex Khassapov Software Engineer CSIRO IM&T ________________________________________ From: Peter Cock [p.j.a.cock@googlemail.com] Sent: Wednesday, 5 June 2013 7:36 PM To: Khassapov, Alex (CSIRO IM&T, Clayton) Cc: chilton@msi.umn.edu; galaxy-dev@bx.psu.edu; NeCTAR Cloud Imaging Project Team Subject: Re: [galaxy-dev] Creating workflow which includes Multifile upload On Wed, Jun 5, 2013 at 8:56 AM, <Alex.Khassapov@csiro.au> wrote:
Hi John,
One more problem with multifile upload – when I display a workflow which includes multi upload tool, I get:
Module workflow_run_mako:476 in render_row_for_param
__M_writer(unicode(param.get_label())) AttributeError: 'UploadDataset' object has no attribute 'get_label'
Ok, I see that UploadDataset class is derived from Group, not ToolParameter. So I tried to add get_label() to the Group class, which returns some string. But then I get:
Module workflow_run_mako:476 in render_row_for_param
__M_writer(unicode(param.get_label())) TypeError: 'str' object is not callable
Here my knowledge of Galaxy ends and I need some help please.
Hi Alex, I guess from the Python exception that you didn't create a method called get_label, but a property or attribute perhaps? Try this at the python prompt and you'll get the same TypeError:
"hello"() Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'str' object is not callable
I would have added a get_label method to the class using something like this: class UploadDataset(...): .... def get_label(self): return "Uploaded stuff" Peter
On Wed, Jun 5, 2013 at 12:21 PM, <Alex.Khassapov@csiro.au> wrote:
Hi Peter,
Of course I added def get_label(self), as a matter of fact, I copied get_label() from ToolParameter class. That's why I'm a bit confused.
The get_label function returns a string which is supposed to be displayed, but instead something is trying to execute it?
Best Regards,
Alex Khassapov
That rules out the simple answer then, that's a shame :( Is your change on bitbucket, or could you post a diff, which might help others in reproducing the problem? Peter
If you don't have pull request 122 in your code base, you will want to add it: https://bitbucket.org/galaxy/galaxy-central/pull-request/122/add-optional-up... Then, all you need to do is add the attribute ' workflow_compatible="false" ' to your top level tool XML element in multi_upload.xml. See most updated version as demonstration: https://bitbucket.org/msiappdev/galaxy-extras/src/904fcbe55c7cd16a80f310bfd5... -John On Wed, Jun 5, 2013 at 2:56 AM, <Alex.Khassapov@csiro.au> wrote:
Hi John,
One more problem with multifile upload – when I display a workflow which includes multi upload tool, I get:
Module workflow_run_mako:476 in render_row_for_param
__M_writer(unicode(param.get_label())) AttributeError: 'UploadDataset' object has no attribute 'get_label'
Ok, I see that UploadDataset class is derived from Group, not ToolParameter. So I tried to add get_label() to the Group class, which returns some string. But then I get:
Module workflow_run_mako:476 in render_row_for_param
__M_writer(unicode(param.get_label())) TypeError: 'str' object is not callable
Here my knowledge of Galaxy ends and I need some help please.
-Alex
participants (3)
-
Alex.Khassapov@csiro.au
-
John Chilton
-
Peter Cock