In case anyone else runs into this and needs a quick fix... I threw in some logging. looks like repo_info_tuple has 4 values but the admin repo code is expecting only three. repo_info_tuple: ['Generate simulated reads from a fasta sequence using dwgsim', 'http://toolshed.g2.bx.psu.edu/repos/nilshomer/dwgsim', '512671604bab', '1'] I've started walking this back... but I don't understand what where the **kwd passed in to install_respository value is coming from yet and can't spend more time on it now. Could it be that the toolshed recently began sending back 4 values? Or is it more likely to be some error on my end (i did just upgrade to the most recent galaxy-dist)? As a quickie workaround i threw in a 4th junk variable to catch that '1' at around line 290 and the tool I was after installs and seems to run ok. diff -r a7196bfe3e5c lib/galaxy/web/controllers/admin_toolshed.py --- a/lib/galaxy/web/controllers/admin_toolshed.py Thu Jun 28 12:18:44 2012 -0400 +++ b/lib/galaxy/web/controllers/admin_toolshed.py Thu Jun 28 14:46:38 2012 -0400 @@ -288,7 +288,8 @@ current_working_dir = os.getcwd() installed_repository_names = [] for name, repo_info_tuple in repo_info_dict.items(): - description, repository_clone_url, changeset_revision = repo_info_tuple + log.debug( "repo_info_tuple: %s" % repo_info_tuple ) + description, repository_clone_url, changeset_revision, junk = repo_info_tuple clone_dir = os.path.join( tool_path, self.__generate_tool_path( repository_clone_url, changeset_revision ) ) relative_install_dir = os.path.join( clone_dir, name ) if os.path.exists( clone_dir ): brad On Jun 28, 2012, at 2:16 PM, Langhorst, Brad wrote:
I found the problem with my blocked cookies, now I encounter a new error.
File '/mnt/ngswork/galaxy/galaxy-dist/lib/galaxy/web/controllers/admin_toolshed.py', line 291 in install_repository description, repository_clone_url, changeset_revision = repo_info_tuple ValueError: too many values to unpack
repo_info_tuple returns more than 3 items?
Is this a known bug? Did I make some error?
here's the full log output
172.17.130.187 - - [28/Jun/2012:14:09:58 -0400] "POST /admin_toolshed/install_repository?tool_shed_url=http%3A%2F%2Ftoolshed.g2.bx.psu.edu%2F&repo_info_dict=74 41a94a254875fe3e3519ca4cd7ade4305e8b8f%3A7b2264776773696d223a205b2247656e65726174652073696d756c617465642072656164732066726f6d20612066617374612073657175656e6365 207573696e672064776773696d222c2022687474703a2f2f746f6f6c736865642e67322e62782e7073752e6564752f7265706f732f6e696c73686f6d65722f64776773696d222c20223531323637313 63034626162222c202231225d7d&includes_tools=True HTTP/1.1" 500 - "http://galaxy.neb.com/admin_toolshed/install_repository?tool_shed_url=http:/... u.edu/&repo_info_dict=7441a94a254875fe3e3519ca4cd7ade4305e8b8f:7b2264776773696d223a205b2247656e65726174652073696d756c617465642072656164732066726f6d206120666173 74612073657175656e6365207573696e672064776773696d222c2022687474703a2f2f746f6f6c736865642e67322e62782e7073752e6564752f7265706f732f6e696c73686f6d65722f64776773696 d222c2022353132363731363034626162222c202231225d7d&includes_tools=True" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.1 (KHTML, like Gecko) Ch rome/22.0.1189.0 Safari/537.1" Error - <type 'exceptions.ValueError'>: too many values to unpack URL: http://galaxy.neb.com/admin_toolshed/install_repository?tool_shed_url=http%3A%2F%2Ftoolshed.g2.bx.psu.edu%2F&repo_info_dict=7441a94a254875fe3e3519ca4cd7ad e4305e8b8f%3A7b2264776773696d223a205b2247656e65726174652073696d756c617465642072656164732066726f6d20612066617374612073657175656e6365207573696e672064776773696d22 2c2022687474703a2f2f746f6f6c736865642e67322e62782e7073752e6564752f7265706f732f6e696c73686f6d65722f64776773696d222c2022353132363731363034626162222c202231225d7d& includes_tools=True File '/mnt/ngswork/galaxy/galaxy-dist/eggs/Paste-1.6-py2.6.egg/paste/exceptions/errormiddleware.py', line 143 in __call__ app_iter = self.application(environ, start_response) File '/mnt/ngswork/galaxy/galaxy-dist/eggs/Paste-1.6-py2.6.egg/paste/recursive.py', line 80 in __call__ return self.application(environ, start_response) File '/mnt/ngswork/galaxy/galaxy-dist/lib/galaxy/web/framework/middleware/remoteuser.py', line 111 in __call__ return self.app( environ, start_response ) File '/mnt/ngswork/galaxy/galaxy-dist/eggs/Paste-1.6-py2.6.egg/paste/httpexceptions.py', line 632 in __call__ return self.application(environ, start_response) File '/mnt/ngswork/galaxy/galaxy-dist/lib/galaxy/web/framework/base.py', line 160 in __call__ body = method( trans, **kwargs ) File '/mnt/ngswork/galaxy/galaxy-dist/lib/galaxy/web/framework/__init__.py', line 173 in decorator return func( self, trans, *args, **kwargs ) File '/mnt/ngswork/galaxy/galaxy-dist/lib/galaxy/web/controllers/admin_toolshed.py', line 291 in install_repository description, repository_clone_url, changeset_revision = repo_info_tuple ValueError: too many values to unpack
Brad -- Brad Langhorst langhorst@neb.com 978-380-7564
___________________________________________________________ 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:
-- Brad Langhorst langhorst@neb.com 978-380-7564