question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when Adding an artifact to a finished run

See original GitHub issue

wandb version: 10.0.9 Python version: 3.6.12 OS: Win10

I’m running some evaluation on the model after the run is finished and trying to upload the results as an artifact attached to this run.

I’m creating an artifact as described in the docs:

run = wandb.Api().run('maria_koristeleva/Test/<run_id>')
artifact = wandb.Artifact(name, type=type)
artifact.add_dir(path)
run.log_artifact(artifact)

But I’m getting an error:

wandb: Adding directory to artifact (D:\GK-Pattern-Data-Gen\nn_pred_data_1000_tee_200527-14-50-42_regen_200612-16-56-43201113-17-27-49)... Done. 2.1s
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\wandb\apis\normalize.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "C:\ProgramData\Anaconda3\lib\site-packages\wandb\apis\public.py", line 1264, in log_artifact
    "Only existing artifacts are accepted by this api. "
ValueError: Only existing artifacts are accepted by this api. Manually create one with `wandb artifacts put`

Is this use-case supported?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
vanpeltcommented, Nov 13, 2020

Yep, agreed this is confusing. We want to do the work to make this case actually work. In the mean time how does this sound?

You can only link existing artifacts to historic runs with this api. Call wandb.init(id="...", project="...", resume="allow") then wandb.run.log_artifact(...) to save this artifact to a previous run.

1reaction
maria-korostelevacommented, Nov 13, 2020

UPD: Looking at the discussion in issue #1371, I need to create a new run, upload an artifact, and then link the artifact to the old run. But may I request a better error message for this case?? It confusing, and leads me to the un-existing function…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when Adding an artifact to a finished run #1491 - GitHub
So I created a new run and logged and and used the model there, now I see 2 new model versions in the...
Read more >
Error when deploying an artifact in Nexus - Stack Overflow
Im' getting an error when deploying an artifact in my own repository in a Nexus server: "Failed to deploy artifacts: Could not transfer...
Read more >
in W-T 4-5 I get an error in "Add an API from Exchange to the ...
in W-T 4-5 I get an error in "Add an API from Exchange to the Anypoint Studio project" section. Clicking "Finish" in Add...
Read more >
Job artifacts · Pipelines · Ci · Help · GitLab
Jobs can output an archive of files and directories. This output is known as a job artifact. You can download job artifacts by...
Read more >
Release artifacts and artifact sources - Azure Pipelines
A release is a collection of artifacts in your DevOps CI/CD processes. An artifact is a deployable component of your application.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found