New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traceback for planemo shed_update --skip_upload #416

Closed
nsoranzo opened this Issue Feb 23, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@nsoranzo
Copy link
Member

nsoranzo commented Feb 23, 2016

The command in the title works, but ends in a traceback:

Repository metadata updated.
Traceback (most recent call last):
  File "/opt/galaxyproject_planemo/.venv/bin/planemo", line 9, in <module>
    load_entry_point('planemo==0.24.0.dev0', 'console_scripts', 'planemo')()
  File "/opt/galaxyproject_planemo/.venv/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/opt/galaxyproject_planemo/.venv/local/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/opt/galaxyproject_planemo/.venv/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/galaxyproject_planemo/.venv/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/galaxyproject_planemo/.venv/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/opt/galaxyproject_planemo/.venv/local/lib/python2.7/site-packages/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args[1:], **kwargs)
  File "/opt/galaxyproject_planemo/.venv/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/opt/galaxyproject_planemo/.venv/local/lib/python2.7/site-packages/planemo/commands/cmd_shed_update.py", line 143, in cli
    exit_code = shed.for_each_repository(ctx, update, paths, **kwds)
  File "/opt/galaxyproject_planemo/.venv/local/lib/python2.7/site-packages/planemo/shed/__init__.py", line 687, in for_each_repository
    function(realized_repository)
  File "/opt/galaxyproject_planemo/.venv/local/lib/python2.7/site-packages/planemo/commands/cmd_shed_update.py", line 110, in update
    'time': captured_io["time"],
KeyError: 'time'

@nsoranzo nsoranzo added the bug label Feb 23, 2016

jmchilton added a commit to jmchilton/planemo that referenced this issue Mar 29, 2016

jmchilton added a commit to jmchilton/planemo that referenced this issue Mar 29, 2016

Fix a bunch of shed_update bugs and improve tests.
 - Add test for galaxyproject#416.
 - Previously --skip_upload and --force_repository_creation would not work together.
 - Ensure absent repository yields a consistent exit code of 2.
 - Message such as "Repo updated but metadata was not." if upload was skipped and metadata failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment