Re: [galaxy-dev] example_watch_folder.py : URL did not return JSON data

2013-03-13 Thread Dannon Baker
It should be set on line 29 as the result of that submit function. Can you add (between 29 and 30) a 'print library' to see what that call actually results in? Off the top of my head, this might be happening if your user account (that the API key is associated with) isn't an admin account --

Re: [galaxy-dev] example_watch_folder.py : URL did not return JSON data

2013-03-13 Thread Rob Leclerc
Hi Dannon, Thanks. I've moved to a full size monitor, apparently my eyes are going! They *key error: 0* seems to be the result of a bug in the code. print(library) results in: {'url': '/api/libraries/4b187121143038ff', 'id': '4b187121143038ff', 'name': 'API Import11'} So library[0]['id']

Re: [galaxy-dev] example_watch_folder.py : URL did not return JSON data

2013-03-13 Thread Rob Leclerc
I was able to get the script to work. I've written down some notes for a quickstart for anyone else who might be following in my footsteps. 1. Create input and output directores where you will drop and emit files. In my example I used: /Users/Rob/Documents/galaxy-drop/input

[galaxy-dev] example_watch_folder.py : URL did not return JSON data

2013-03-12 Thread Rob Leclerc
I'm trying to get the example_watch_folder.py to work with a simple example, but I am running into an error (Caveat, python is not my native language) I call the following script, but get the subsequent error: $ ./example_watch_folder.py 8c25bc83f6f9e4001dd21eb7b64f063f http://localhost:8080/

Re: [galaxy-dev] example_watch_folder.py : URL did not return JSON data

2013-03-12 Thread Dannon Baker
The second argument there should point to the url of Galaxy's API -- in this case http://localhost:8080/api, I'm guessing. -Dannon On Tue, Mar 12, 2013 at 6:11 PM, Rob Leclerc robert.lecl...@gmail.com wrote: I'm trying to get the example_watch_folder.py to work with a simple example, but I am

Re: [galaxy-dev] example_watch_folder.py : URL did not return JSON data

2013-03-12 Thread Rob Leclerc
Hi Dannon. Thanks! I had been experimenting with BioBlend and forgot to add the /api/ on the url. ./example_watch_folder.py 8c25bc83f6f9e4001dd21eb7b64f063f http://localhost:8080/api/ /Users/Rob/Documents/galaxy-db/input/ /Users/Rob/Documents/galaxy-db/output/ API Imports 2a56795cad3c7db3