Error while publishing runs

Hi,

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>
    sys.exit(main())
  File "/usr/local/lib/python3.6/dist-packages/guild/main_bootstrap.py", line 40, in main
    _main()
  File "/usr/local/lib/python3.6/dist-packages/guild/main_bootstrap.py", line 66, in _main
    guild.main.main()
  File "/usr/local/lib/python3.6/dist-packages/guild/main.py", line 33, in main
    main_cmd.main(standalone_mode=False)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/guild/click_util.py", line 213, in fn
    return fn0(*(args + (Args(**kw),)))
  File "/usr/local/lib/python3.6/dist-packages/guild/commands/runs_publish.py", 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.

Thanks,
Vishal

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