{"action":"opened","issue":{"url":"https://api.github.com/repos/galaxyproject/bioblend/issues/152","labels_url":"https://api.github.com/repos/galaxyproject/bioblend/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/galaxyproject/bioblend/issues/152/comments","events_url":"https://api.github.com/repos/galaxyproject/bioblend/issues/152/events","html_url":"https://github.com/galaxyproject/bioblend/issues/152","id":94244837,"number":152,"title":"Argument error in \"install_repository_revision\"","user":{"login":"matthdsm","id":11850640,"avatar_url":"https://avatars.githubusercontent.com/u/11850640?v=3","gravatar_id":"","url":"https://api.github.com/users/matthdsm","html_url":"https://github.com/matthdsm","followers_url":"https://api.github.com/users/matthdsm/followers","following_url":"https://api.github.com/users/matthdsm/following{/other_user}","gists_url":"https://api.github.com/users/matthdsm/gists{/gist_id}","starred_url":"https://api.github.com/users/matthdsm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthdsm/subscriptions","organizations_url":"https://api.github.com/users/matthdsm/orgs","repos_url":"https://api.github.com/users/matthdsm/repos","events_url":"https://api.github.com/users/matthdsm/events{/privacy}","received_events_url":"https://api.github.com/users/matthdsm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-10T08:06:19Z","updated_at":"2015-07-10T08:06:19Z","closed_at":null,"body":"Hi\r\n\r\nI am trying to install some tools in our local Galaxy instance through the BioBlend API. My code is as follows:\r\n\r\n    #parse tool JSON\r\n    try:\r\n        with open(toolfile) as data_file:\r\n            tools = json.load(data_file)\r\n    except TypeError:\r\n        sys.exit(\"Could not read toolfile\")\r\n    #install specified tools\r\n    for tool in tools:\r\n        print(tool[\"install_tool_dependencies\"])\r\n        gi.toolShed.install_repository_revision(\r\n                tool_shed_url = tool[\"toolshed\"], \r\n                name = tool[\"id\"], \r\n                owner = tool[\"owner\"],\r\n                install_tool_dependencies = tool[\"install_tool_dependencies\"], \r\n                install_repository_dependencies = tool[\"install_repository_dependencies\"], \r\n                tool_panel_section_id = tool[\"tool_panel_section_id\"], \r\n                new_tool_panel_section_label = tool[\"tool_panel_section_id\"]\r\n        )\r\n\r\nthe argument are parsed from a provided json file. As follows:\r\n\r\n    [\r\n    \t{\r\n    \t\"id\":\"data_manager_bowtie2_index_builder\",\r\n    \t\"owner\":\"devteam\",\r\n    \t\"install_tool_dependencies\":true,\r\n    \t\"install_repository_dependencies\":true,\r\n    \t\"tool_panel_section_id\":null,\r\n    \t\"toolshed\":\"https://toolshed.g2.bx.psu.edu/\"\r\n    }]\r\n\r\nbut when I run the code I get the following error: \r\n\r\n    Traceback (most recent call last):\r\n      File \"config_galaxy.py\", line 60, in <module>\r\n        _galaxyConfig(args.instance, args.api_key, args.tools)\r\n      File \"config_galaxy.py\", line 41, in _galaxyConfig\r\n        new_tool_panel_section_label = tool[\"tool_panel_section_id\"]\r\n    TypeError: install_repository_revision() takes at least 5 arguments (8 given)\r\n\r\nAnybody any ideas why? Is there a mandatory argument short? I have not defined the revision code, because I just want the latest revision.\r\n\r\nThanks\r\nMatthias\r\n"}}