Re: [galaxy-dev] Error 500 when trying to execute a workflow with the API

2012-02-22 Thread dannonbaker
Ahh, I see what you're asking.  I thought you were referring to providing dataset inputs by name, my mistake.Currently running workflows through the API doesn't support defining inputs other than datasets, that is, it expects workflows to be fully pre-defined with nothing 'set at runtime' other than the input datasets.That said, this is something that's definitely on my plate to add, unless the community gets to it first, in which case I'll happily accept a pull request :)-DannonOn Feb 22, 2012, at 10:11 AM, Anthonius deBoer  wrote:Huh? I have many string inputs to some particular workflow steps...Those are parameters etc that need to be entered or chosen from a dropdown..How would we deal with those kinds of entries into a workflow in the API? Or do all of them have to be pre-set?ThanksThonOn Feb 21, 2012, at 04:21 PM, Dannon Baker  wrote:There is no string input. If the string you're looking for is, say, the name of a dataset what you'd do is make separate calls to the history and workflow API.  For example, if you had a history "My important history", and a dataset "My input dataset", and no knowledge of the id's (as you shouldn't' have to have, externally), it'd be three separate calls. One to list histories, then you would programmatically grab the one you want ("My important history") and the ID associated with it. Then you'd make a call to grab the contents of that history, from which you could extract the id of the dataset you had the name of. And from there you know how to execute a workflow with that id (hda, in this case).  -Dannon On Feb 21, 2012, at 7:13 PM, thondeb...@me.com wrote:  > One more question... > How do I pass a string value to one of the workflow input steps? > Is there an equivalent of ldda and hda, maybe "str".. >  > So 38=str="Some value" >  > Where could I find a list of the expected dataset sources? >  > Thanks >  > Thon >  > On Feb 21, 2012, at 03:46 PM, Dannon Baker  wrote: >  >> Hi Thon, >>  >> You have the right idea about what's going wrong here. Galaxy is trying to pull up a library dataset with the ID you specify, but it doesn't exist. >>  >> In this context, src refers to the 'type' of dataset input id, more specifically whether it's from a history or library. 'hda' indicates that the dataset is from a history, and 'ldda' is what you'll most likely use in the case of a library dataset. If you browse the history and library API functionality, you'll see other methods for explicitly grabbing these ids. >>  >> My hunch is that you have an id from a history and that you should swap ldda to hda and give it another shot. Definitely let me know if you run into more issues, though, and I'll help figure out what's going on. >>  >> -Dannon >>  >> On Feb 21, 2012, at 6:22 PM, thondeb...@me.com wrote: >>  >> > Hi, >> >  >> > I tried to run a workflow with the API, but get an Error 500 when I try to run the WF...The paster.log shows the following error... >> >  >> > $ workflow_execute.py 92cc01ed93dc0f0fc91e3ded35497c0a http://srp106:8080/api/workflows ebfb8f50c6abde6d 'TEST the API' '1=ldda=7c5ebce002fc9d5c' >> >  >> >  >> > Paster.log >> > galaxy.web.framework ERROR 2012-02-21 14:36:33,067 Uncaught exception in exposed API method: >> > Traceback (most recent call last): >> > File "/home/tdeboer/code/galaxy-central/lib/galaxy/web/framework/__init__.py", line 145, in decorator >> > return simplejson.dumps( func( self, trans, *args, **kwargs ), indent=4, sort_keys=True ) >> > File "/home/tdeboer/code/galaxy-central/lib/galaxy/web/api/workflows.py", line 123, in create >> > hda = ldda.to_history_dataset_association(history, add_to_history=add_to_history) >> > AttributeError: 'NoneType' object has no attribute 'to_history_dataset_association' >> > 172.16.108.6 - - [21/Feb/2012:14:36:32 -0700] "POST /api/workflows?key=92cc01ed93dc0f0fc91e3ded35497c0a HTTP/1.1" 500 - "-" "Python-urllib/2.6" >> >  >> >  >> > Any ideas? >> >  >> > Also...I had a hard time finding out what I should use for the dataset source parameter "src" in "step=src="" and just tried ldda, but would hope there is a little info on what this hda and ldda is? >> >  >> > Thanks, >> >  >> > Thon >> > ___ >> > Please keep all replies on the list by using "reply all" >> > in your mail client. To manage your subscriptions to this >> > and other Galaxy lists, please use the interface at: >> >  >> > http://lists.bx.psu.edu/ >>  >> One  ___
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/

Re: [galaxy-dev] Error 500 when trying to execute a workflow with the API

2012-02-22 Thread Anthonius deBoer
Huh? I have many string inputs to some particular workflow steps...Those are parameters etc that need to be entered or chosen from a dropdown..How would we deal with those kinds of entries into a workflow in the API? Or do all of them have to be pre-set?ThanksThonOn Feb 21, 2012, at 04:21 PM, Dannon Baker  wrote:There is no string input. If the string you're looking for is, say, the name of a dataset what you'd do is make separate calls to the history and workflow API.  For example, if you had a history "My important history", and a dataset "My input dataset", and no knowledge of the id's (as you shouldn't' have to have, externally), it'd be three separate calls. One to list histories, then you would programmatically grab the one you want ("My important history") and the ID associated with it. Then you'd make a call to grab the contents of that history, from which you could extract the id of the dataset you had the name of. And from there you know how to execute a workflow with that id (hda, in this case).  -Dannon On Feb 21, 2012, at 7:13 PM, thondeb...@me.com wrote:  > One more question... > How do I pass a string value to one of the workflow input steps? > Is there an equivalent of ldda and hda, maybe "str".. >  > So 38=str="Some value" >  > Where could I find a list of the expected dataset sources? >  > Thanks >  > Thon >  > On Feb 21, 2012, at 03:46 PM, Dannon Baker  wrote: >  >> Hi Thon, >>  >> You have the right idea about what's going wrong here. Galaxy is trying to pull up a library dataset with the ID you specify, but it doesn't exist. >>  >> In this context, src refers to the 'type' of dataset input id, more specifically whether it's from a history or library. 'hda' indicates that the dataset is from a history, and 'ldda' is what you'll most likely use in the case of a library dataset. If you browse the history and library API functionality, you'll see other methods for explicitly grabbing these ids. >>  >> My hunch is that you have an id from a history and that you should swap ldda to hda and give it another shot. Definitely let me know if you run into more issues, though, and I'll help figure out what's going on. >>  >> -Dannon >>  >> On Feb 21, 2012, at 6:22 PM, thondeb...@me.com wrote: >>  >> > Hi, >> >  >> > I tried to run a workflow with the API, but get an Error 500 when I try to run the WF...The paster.log shows the following error... >> >  >> > $ workflow_execute.py 92cc01ed93dc0f0fc91e3ded35497c0a http://srp106:8080/api/workflows ebfb8f50c6abde6d 'TEST the API' '1=ldda=7c5ebce002fc9d5c' >> >  >> >  >> > Paster.log >> > galaxy.web.framework ERROR 2012-02-21 14:36:33,067 Uncaught exception in exposed API method: >> > Traceback (most recent call last): >> > File "/home/tdeboer/code/galaxy-central/lib/galaxy/web/framework/__init__.py", line 145, in decorator >> > return simplejson.dumps( func( self, trans, *args, **kwargs ), indent=4, sort_keys=True ) >> > File "/home/tdeboer/code/galaxy-central/lib/galaxy/web/api/workflows.py", line 123, in create >> > hda = ldda.to_history_dataset_association(history, add_to_history=add_to_history) >> > AttributeError: 'NoneType' object has no attribute 'to_history_dataset_association' >> > 172.16.108.6 - - [21/Feb/2012:14:36:32 -0700] "POST /api/workflows?key=92cc01ed93dc0f0fc91e3ded35497c0a HTTP/1.1" 500 - "-" "Python-urllib/2.6" >> >  >> >  >> > Any ideas? >> >  >> > Also...I had a hard time finding out what I should use for the dataset source parameter "src" in "step=src="" and just tried ldda, but would hope there is a little info on what this hda and ldda is? >> >  >> > Thanks, >> >  >> > Thon >> > ___ >> > Please keep all replies on the list by using "reply all" >> > in your mail client. To manage your subscriptions to this >> > and other Galaxy lists, please use the interface at: >> >  >> > http://lists.bx.psu.edu/ >>  >> One  ___
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/

Re: [galaxy-dev] Error 500 when trying to execute a workflow with the API

2012-02-21 Thread Carlos Borroto
Hi Dannon,

I think he is referring to the dataset input key in the dictionary.

Thon, I think this thread could be helpful:
http://galaxy-development-list-archive.2308389.n4.nabble.com/Using-workflows-with-steps-with-several-inputs-through-the-API-td4267374.html

In summary, you want to ./display the workflow and get the keys for
the inputs, then you can use =hda=

Hope it helps,
Carlos

On Tue, Feb 21, 2012 at 7:21 PM, Dannon Baker  wrote:
> There is no string input.  If the string you're looking for is, say, the name 
> of a dataset what you'd do is make separate calls to the history and workflow 
> API.
>
> For example, if you had a history "My important history", and a dataset "My 
> input dataset", and no knowledge of the id's (as you shouldn't' have to have, 
> externally), it'd be three separate calls.  One to list histories, then you 
> would programmatically grab the one you want ("My important history") and the 
> ID associated with it.  Then you'd make a call to grab the contents of that 
> history, from which you could extract the id of the dataset you had the name 
> of.  And from there you know how to execute a workflow with that id (hda, in 
> this case).
>
> -Dannon
>
>
>
>
> On Feb 21, 2012, at 7:13 PM, thondeb...@me.com wrote:
>
>> One more question...
>> How do I pass a string value to one of the workflow input steps?
>> Is there an equivalent of ldda and hda, maybe "str"..
>>
>> So 38=str="Some value"
>>
>> Where could I find a list of the expected dataset sources?
>>
>> Thanks
>>
>> Thon
>>
>> On Feb 21, 2012, at 03:46 PM, Dannon Baker  wrote:
>>
>>> Hi Thon,
>>>
>>> You have the right idea about what's going wrong here. Galaxy is trying to 
>>> pull up a library dataset with the ID you specify, but it doesn't exist.
>>>
>>> In this context, src refers to the 'type' of dataset input id, more 
>>> specifically whether it's from a history or library. 'hda' indicates that 
>>> the dataset is from a history, and 'ldda' is what you'll most likely use in 
>>> the case of a library dataset. If you browse the history and library API 
>>> functionality, you'll see other methods for explicitly grabbing these ids.
>>>
>>> My hunch is that you have an id from a history and that you should swap 
>>> ldda to hda and give it another shot. Definitely let me know if you run 
>>> into more issues, though, and I'll help figure out what's going on.
>>>
>>> -Dannon
>>>
>>> On Feb 21, 2012, at 6:22 PM, thondeb...@me.com wrote:
>>>
>>> > Hi,
>>> >
>>> > I tried to run a workflow with the API, but get an Error 500 when I try 
>>> > to run the WF...The paster.log shows the following error...
>>> >
>>> > $ workflow_execute.py 92cc01ed93dc0f0fc91e3ded35497c0a 
>>> > http://srp106:8080/api/workflows ebfb8f50c6abde6d 'TEST the API' 
>>> > '1=ldda=7c5ebce002fc9d5c'
>>> >
>>> >
>>> > Paster.log
>>> > galaxy.web.framework ERROR 2012-02-21 14:36:33,067 Uncaught exception in 
>>> > exposed API method:
>>> > Traceback (most recent call last):
>>> > File 
>>> > "/home/tdeboer/code/galaxy-central/lib/galaxy/web/framework/__init__.py", 
>>> > line 145, in decorator
>>> > return simplejson.dumps( func( self, trans, *args, **kwargs ), indent=4, 
>>> > sort_keys=True )
>>> > File "/home/tdeboer/code/galaxy-central/lib/galaxy/web/api/workflows.py", 
>>> > line 123, in create
>>> > hda = ldda.to_history_dataset_association(history, 
>>> > add_to_history=add_to_history)
>>> > AttributeError: 'NoneType' object has no attribute 
>>> > 'to_history_dataset_association'
>>> > 172.16.108.6 - - [21/Feb/2012:14:36:32 -0700] "POST 
>>> > /api/workflows?key=92cc01ed93dc0f0fc91e3ded35497c0a HTTP/1.1" 500 - "-" 
>>> > "Python-urllib/2.6"
>>> >
>>> >
>>> > Any ideas?
>>> >
>>> > Also...I had a hard time finding out what I should use for the dataset 
>>> > source parameter "src" in "step=src=dataset_id" and just tried ldda, but 
>>> > would hope there is a little info on what this hda and ldda is?
>>> >
>>> > Thanks,
>>> >
>>> > Thon
>>> > ___
>>> > Please keep all replies on the list by using "reply all"
>>> > in your mail client. To manage your subscriptions to this
>>> > and other Galaxy lists, please use the interface at:
>>> >
>>> > http://lists.bx.psu.edu/
>>>
>>> One
>
> ___
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
>
>  http://lists.bx.psu.edu/

___
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/

Re: [galaxy-dev] Error 500 when trying to execute a workflow with the API

2012-02-21 Thread Dannon Baker
There is no string input.  If the string you're looking for is, say, the name 
of a dataset what you'd do is make separate calls to the history and workflow 
API.

For example, if you had a history "My important history", and a dataset "My 
input dataset", and no knowledge of the id's (as you shouldn't' have to have, 
externally), it'd be three separate calls.  One to list histories, then you 
would programmatically grab the one you want ("My important history") and the 
ID associated with it.  Then you'd make a call to grab the contents of that 
history, from which you could extract the id of the dataset you had the name 
of.  And from there you know how to execute a workflow with that id (hda, in 
this case).

-Dannon




On Feb 21, 2012, at 7:13 PM, thondeb...@me.com wrote:

> One more question...
> How do I pass a string value to one of the workflow input steps?
> Is there an equivalent of ldda and hda, maybe "str"..
> 
> So 38=str="Some value"
> 
> Where could I find a list of the expected dataset sources?
> 
> Thanks
> 
> Thon
> 
> On Feb 21, 2012, at 03:46 PM, Dannon Baker  wrote:
> 
>> Hi Thon,
>> 
>> You have the right idea about what's going wrong here. Galaxy is trying to 
>> pull up a library dataset with the ID you specify, but it doesn't exist.
>> 
>> In this context, src refers to the 'type' of dataset input id, more 
>> specifically whether it's from a history or library. 'hda' indicates that 
>> the dataset is from a history, and 'ldda' is what you'll most likely use in 
>> the case of a library dataset. If you browse the history and library API 
>> functionality, you'll see other methods for explicitly grabbing these ids.
>> 
>> My hunch is that you have an id from a history and that you should swap ldda 
>> to hda and give it another shot. Definitely let me know if you run into more 
>> issues, though, and I'll help figure out what's going on.
>> 
>> -Dannon
>> 
>> On Feb 21, 2012, at 6:22 PM, thondeb...@me.com wrote:
>> 
>> > Hi,
>> > 
>> > I tried to run a workflow with the API, but get an Error 500 when I try to 
>> > run the WF...The paster.log shows the following error...
>> > 
>> > $ workflow_execute.py 92cc01ed93dc0f0fc91e3ded35497c0a 
>> > http://srp106:8080/api/workflows ebfb8f50c6abde6d 'TEST the API' 
>> > '1=ldda=7c5ebce002fc9d5c'
>> > 
>> > 
>> > Paster.log
>> > galaxy.web.framework ERROR 2012-02-21 14:36:33,067 Uncaught exception in 
>> > exposed API method:
>> > Traceback (most recent call last):
>> > File 
>> > "/home/tdeboer/code/galaxy-central/lib/galaxy/web/framework/__init__.py", 
>> > line 145, in decorator
>> > return simplejson.dumps( func( self, trans, *args, **kwargs ), indent=4, 
>> > sort_keys=True )
>> > File "/home/tdeboer/code/galaxy-central/lib/galaxy/web/api/workflows.py", 
>> > line 123, in create
>> > hda = ldda.to_history_dataset_association(history, 
>> > add_to_history=add_to_history)
>> > AttributeError: 'NoneType' object has no attribute 
>> > 'to_history_dataset_association'
>> > 172.16.108.6 - - [21/Feb/2012:14:36:32 -0700] "POST 
>> > /api/workflows?key=92cc01ed93dc0f0fc91e3ded35497c0a HTTP/1.1" 500 - "-" 
>> > "Python-urllib/2.6"
>> > 
>> > 
>> > Any ideas?
>> > 
>> > Also...I had a hard time finding out what I should use for the dataset 
>> > source parameter "src" in "step=src=dataset_id" and just tried ldda, but 
>> > would hope there is a little info on what this hda and ldda is?
>> > 
>> > Thanks,
>> > 
>> > Thon
>> > ___
>> > Please keep all replies on the list by using "reply all"
>> > in your mail client. To manage your subscriptions to this
>> > and other Galaxy lists, please use the interface at:
>> > 
>> > http://lists.bx.psu.edu/
>> 
>> One 

___
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/


Re: [galaxy-dev] Error 500 when trying to execute a workflow with the API

2012-02-21 Thread thondeboer
One more question...How do I pass a string value to one of the workflow input steps?Is there an equivalent of ldda and hda, maybe "str"..So 38=str="Some value"Where could I find a list of the expected dataset sources?ThanksThonOn Feb 21, 2012, at 03:46 PM, Dannon Baker  wrote:Hi Thon,  You have the right idea about what's going wrong here. Galaxy is trying to pull up a library dataset with the ID you specify, but it doesn't exist.  In this context, src refers to the 'type' of dataset input id, more specifically whether it's from a history or library. 'hda' indicates that the dataset is from a history, and 'ldda' is what you'll most likely use in the case of a library dataset. If you browse the history and library API functionality, you'll see other methods for explicitly grabbing these ids.  My hunch is that you have an id from a history and that you should swap ldda to hda and give it another shot. Definitely let me know if you run into more issues, though, and I'll help figure out what's going on.  -Dannon  On Feb 21, 2012, at 6:22 PM, thondeb...@me.com wrote:  > Hi, >  > I tried to run a workflow with the API, but get an Error 500 when I try to run the WF...The paster.log shows the following error... >  > $ workflow_execute.py 92cc01ed93dc0f0fc91e3ded35497c0a http://srp106:8080/api/workflows ebfb8f50c6abde6d 'TEST the API' '1=ldda=7c5ebce002fc9d5c' >  >  > Paster.log > galaxy.web.framework ERROR 2012-02-21 14:36:33,067 Uncaught exception in exposed API method: > Traceback (most recent call last): > File "/home/tdeboer/code/galaxy-central/lib/galaxy/web/framework/__init__.py", line 145, in decorator > return simplejson.dumps( func( self, trans, *args, **kwargs ), indent=4, sort_keys=True ) > File "/home/tdeboer/code/galaxy-central/lib/galaxy/web/api/workflows.py", line 123, in create > hda = ldda.to_history_dataset_association(history, add_to_history=add_to_history) > AttributeError: 'NoneType' object has no attribute 'to_history_dataset_association' > 172.16.108.6 - - [21/Feb/2012:14:36:32 -0700] "POST /api/workflows?key=92cc01ed93dc0f0fc91e3ded35497c0a HTTP/1.1" 500 - "-" "Python-urllib/2.6" >  >  > Any ideas? >  > Also...I had a hard time finding out what I should use for the dataset source parameter "src" in "step=src="" and just tried ldda, but would hope there is a little info on what this hda and ldda is? >  > Thanks, >  > Thon > ___ > Please keep all replies on the list by using "reply all" > in your mail client. To manage your subscriptions to this > and other Galaxy lists, please use the interface at: >  > http://lists.bx.psu.edu/ One ___
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/

Re: [galaxy-dev] Error 500 when trying to execute a workflow with the API

2012-02-21 Thread thondeboer
Hi Danon,thanks for the info...Indeed I had tried hda (I sorta figured H was for History, LD was for Library Dataset) but I got an error complaining about step 91 (I only had one step) but I figured out that the API probably uses a different number of the steps, so this worked./display.py 92cc01ed93dc0f0fc91e3ded35497c0a http://srp106:8080/api/workflows/ebfb8f50c6abde6dMember Information--url: /api/workflows/ebfb8f50c6abde6dinputs: {'91': {'value': '', 'label': 'Input Dataset'}}id: ebfb8f50c6abde6dname: Trivially fast workflowI was now able to run the workflow...Thanks!ThonOn Feb 21, 2012, at 03:46 PM, Dannon Baker  wrote:Hi Thon,  You have the right idea about what's going wrong here. Galaxy is trying to pull up a library dataset with the ID you specify, but it doesn't exist.  In this context, src refers to the 'type' of dataset input id, more specifically whether it's from a history or library. 'hda' indicates that the dataset is from a history, and 'ldda' is what you'll most likely use in the case of a library dataset. If you browse the history and library API functionality, you'll see other methods for explicitly grabbing these ids.  My hunch is that you have an id from a history and that you should swap ldda to hda and give it another shot. Definitely let me know if you run into more issues, though, and I'll help figure out what's going on.  -Dannon  On Feb 21, 2012, at 6:22 PM, thondeb...@me.com wrote:  > Hi, >  > I tried to run a workflow with the API, but get an Error 500 when I try to run the WF...The paster.log shows the following error... >  > $ workflow_execute.py 92cc01ed93dc0f0fc91e3ded35497c0a http://srp106:8080/api/workflows ebfb8f50c6abde6d 'TEST the API' '1=ldda=7c5ebce002fc9d5c' >  >  > Paster.log > galaxy.web.framework ERROR 2012-02-21 14:36:33,067 Uncaught exception in exposed API method: > Traceback (most recent call last): > File "/home/tdeboer/code/galaxy-central/lib/galaxy/web/framework/__init__.py", line 145, in decorator > return simplejson.dumps( func( self, trans, *args, **kwargs ), indent=4, sort_keys=True ) > File "/home/tdeboer/code/galaxy-central/lib/galaxy/web/api/workflows.py", line 123, in create > hda = ldda.to_history_dataset_association(history, add_to_history=add_to_history) > AttributeError: 'NoneType' object has no attribute 'to_history_dataset_association' > 172.16.108.6 - - [21/Feb/2012:14:36:32 -0700] "POST /api/workflows?key=92cc01ed93dc0f0fc91e3ded35497c0a HTTP/1.1" 500 - "-" "Python-urllib/2.6" >  >  > Any ideas? >  > Also...I had a hard time finding out what I should use for the dataset source parameter "src" in "step=src="" and just tried ldda, but would hope there is a little info on what this hda and ldda is? >  > Thanks, >  > Thon > ___ > Please keep all replies on the list by using "reply all" > in your mail client. To manage your subscriptions to this > and other Galaxy lists, please use the interface at: >  > http://lists.bx.psu.edu/ ___
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/

Re: [galaxy-dev] Error 500 when trying to execute a workflow with the API

2012-02-21 Thread Carlos Borroto
Hi,

Also, if it is in fact a history id and you will be using 'hda',
remember to use 'hist_id=' instead of 'Test API History'.

-Carlos

On Tue, Feb 21, 2012 at 6:46 PM, Dannon Baker  wrote:
> Hi Thon,
>
> You have the right idea about what's going wrong here.  Galaxy is trying to 
> pull up a library dataset with the ID you specify, but it doesn't exist.
>
> In this context, src refers to the 'type' of dataset input id, more 
> specifically whether it's from a history or library.  'hda' indicates that 
> the dataset is from a history, and 'ldda' is what you'll most likely use in 
> the case of a library dataset.  If you browse the history and library API 
> functionality, you'll see other methods for explicitly grabbing these ids.
>
> My hunch is that you have an id from a history and that you should swap ldda 
> to hda and give it another shot.  Definitely let me know if you run into more 
> issues, though, and I'll help figure out what's going on.
>
> -Dannon
>
> On Feb 21, 2012, at 6:22 PM, thondeb...@me.com wrote:
>
>> Hi,
>>
>> I tried to run a workflow with the API, but get an Error 500 when I try to 
>> run the WF...The paster.log shows the following error...
>>
>> $ workflow_execute.py 92cc01ed93dc0f0fc91e3ded35497c0a 
>> http://srp106:8080/api/workflows ebfb8f50c6abde6d 'TEST the API' 
>> '1=ldda=7c5ebce002fc9d5c'
>>
>>
>> Paster.log
>> galaxy.web.framework ERROR 2012-02-21 14:36:33,067 Uncaught exception in 
>> exposed API method:
>> Traceback (most recent call last):
>>   File 
>> "/home/tdeboer/code/galaxy-central/lib/galaxy/web/framework/__init__.py", 
>> line 145, in decorator
>>     return simplejson.dumps( func( self, trans, *args, **kwargs ), indent=4, 
>> sort_keys=True )
>>   File "/home/tdeboer/code/galaxy-central/lib/galaxy/web/api/workflows.py", 
>> line 123, in create
>>     hda = ldda.to_history_dataset_association(history, 
>> add_to_history=add_to_history)
>> AttributeError: 'NoneType' object has no attribute 
>> 'to_history_dataset_association'
>> 172.16.108.6 - - [21/Feb/2012:14:36:32 -0700] "POST 
>> /api/workflows?key=92cc01ed93dc0f0fc91e3ded35497c0a HTTP/1.1" 500 - "-" 
>> "Python-urllib/2.6"
>>
>>
>> Any ideas?
>>
>> Also...I had a hard time finding out what I should use for the dataset 
>> source parameter "src" in "step=src=dataset_id" and just tried ldda, but 
>> would hope there is a little info on what this hda and ldda is?
>>
>> Thanks,
>>
>> Thon
>> ___
>> Please keep all replies on the list by using "reply all"
>> in your mail client.  To manage your subscriptions to this
>> and other Galaxy lists, please use the interface at:
>>
>>  http://lists.bx.psu.edu/
>
> ___
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
>
>  http://lists.bx.psu.edu/

___
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/

Re: [galaxy-dev] Error 500 when trying to execute a workflow with the API

2012-02-21 Thread Dannon Baker
Hi Thon,

You have the right idea about what's going wrong here.  Galaxy is trying to 
pull up a library dataset with the ID you specify, but it doesn't exist.

In this context, src refers to the 'type' of dataset input id, more 
specifically whether it's from a history or library.  'hda' indicates that the 
dataset is from a history, and 'ldda' is what you'll most likely use in the 
case of a library dataset.  If you browse the history and library API 
functionality, you'll see other methods for explicitly grabbing these ids.

My hunch is that you have an id from a history and that you should swap ldda to 
hda and give it another shot.  Definitely let me know if you run into more 
issues, though, and I'll help figure out what's going on.

-Dannon

On Feb 21, 2012, at 6:22 PM, thondeb...@me.com wrote:

> Hi,
> 
> I tried to run a workflow with the API, but get an Error 500 when I try to 
> run the WF...The paster.log shows the following error...
> 
> $ workflow_execute.py 92cc01ed93dc0f0fc91e3ded35497c0a 
> http://srp106:8080/api/workflows ebfb8f50c6abde6d 'TEST the API' 
> '1=ldda=7c5ebce002fc9d5c'
> 
> 
> Paster.log
> galaxy.web.framework ERROR 2012-02-21 14:36:33,067 Uncaught exception in 
> exposed API method:
> Traceback (most recent call last):
>   File 
> "/home/tdeboer/code/galaxy-central/lib/galaxy/web/framework/__init__.py", 
> line 145, in decorator
> return simplejson.dumps( func( self, trans, *args, **kwargs ), indent=4, 
> sort_keys=True )
>   File "/home/tdeboer/code/galaxy-central/lib/galaxy/web/api/workflows.py", 
> line 123, in create
> hda = ldda.to_history_dataset_association(history, 
> add_to_history=add_to_history)
> AttributeError: 'NoneType' object has no attribute 
> 'to_history_dataset_association'
> 172.16.108.6 - - [21/Feb/2012:14:36:32 -0700] "POST 
> /api/workflows?key=92cc01ed93dc0f0fc91e3ded35497c0a HTTP/1.1" 500 - "-" 
> "Python-urllib/2.6"
> 
> 
> Any ideas?
> 
> Also...I had a hard time finding out what I should use for the dataset source 
> parameter "src" in "step=src=dataset_id" and just tried ldda, but would hope 
> there is a little info on what this hda and ldda is?
> 
> Thanks,
> 
> Thon
> ___
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
> 
>  http://lists.bx.psu.edu/

___
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/


[galaxy-dev] Error 500 when trying to execute a workflow with the API

2012-02-21 Thread thondeboer
Hi,I tried to run a workflow with the API, but get an Error 500 when I try to run the WF...The paster.log shows the following error...$ workflow_execute.py 92cc01ed93dc0f0fc91e3ded35497c0a http://srp106:8080/api/workflows ebfb8f50c6abde6d 'TEST the API' '1=ldda=7c5ebce002fc9d5c'Paster.loggalaxy.web.framework ERROR 2012-02-21 14:36:33,067 Uncaught exception in exposed API method:Traceback (most recent call last):  File "/home/tdeboer/code/galaxy-central/lib/galaxy/web/framework/__init__.py", line 145, in decorator    return simplejson.dumps( func( self, trans, *args, **kwargs ), indent=4, sort_keys=True )  File "/home/tdeboer/code/galaxy-central/lib/galaxy/web/api/workflows.py", line 123, in create    hda = ldda.to_history_dataset_association(history, add_to_history=add_to_history)AttributeError: 'NoneType' object has no attribute 'to_history_dataset_association'172.16.108.6 - - [21/Feb/2012:14:36:32 -0700] "POST /api/workflows?key=92cc01ed93dc0f0fc91e3ded35497c0a HTTP/1.1" 500 - "-" "Python-urllib/2.6"Any ideas?Also...I had a hard time finding out what I should use for the dataset source parameter "src" in "step=src="" and just tried ldda, but would hope there is a little info on what this hda and ldda is?Thanks,Thon___
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/