Error while publishing runs


I am trying to publish a particular run using the command guild runs publish --dest <path of destination> <run id>. However, I get the following error.

Traceback (most recent call last):
  File "/usr/local/bin/guild", line 8, in <module>
  File "/usr/local/lib/python3.6/dist-packages/guild/", line 40, in main
  File "/usr/local/lib/python3.6/dist-packages/guild/", line 66, in _main
  File "/usr/local/lib/python3.6/dist-packages/guild/", line 33, in main
  File "/usr/local/lib/python3.6/dist-packages/click/", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/click/", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/dist-packages/click/", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/dist-packages/click/", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/dist-packages/click/", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/dist-packages/click/", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/click/", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/guild/", line 213, in fn
    return fn0(*(args + (Args(**kw),)))
  File "/usr/local/lib/python3.6/dist-packages/guild/commands/", line 113, in publish_runs
    runs_impl.publish(args, ctx)
AttributeError: module 'guild.commands.runs_impl' has no attribute 'publish'

Any recommendations on how to solve this? I am using guild version 0.7.2.


That’s a bug! Sorry about that. We’ll get that fixes ASAP.

In the meantime, you can use the alternative path to that command this way (omit the runs part):

guild publish --dest <path of destination> <run id>

A number of the sub-commands under guild runs are available as top-level commands.

1 Like

This is fixed in master and will be available in 0.7.4 (will be released in the next couple weeks). In the meantime again - just use the alternative command form guild publish ....

1 Like