Solution skill
Cannot use Weave with HuggingFace?
Complete solution
Shows how to fix cannot use Weave with HuggingFace?. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
I tried adding it to the HuggingFace "secrets" list, but that didn't work. [image] Maybe there needs to be an option to pass in an API key or read it from an OS environment variable? (instead of entering the API key interactively)
Steps
- [xke (reporter)]: To make Weave auth work on HuggingFace Spaces, name the secret WANDBAPIKEY (not API_KEY) so it is picked up from env. The reporter confirmed it works after that; also delete ~/.netrc locally so only the env key is used.
When to use
You are seeing this: Issue wandb/weave#1741 (closed, 6 comments): I was using weave for an app on my local machine. Use this skill when you run into "Cannot use Weave with HuggingFace?".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
In the GitHub issue gh:wandb/weave#1741 (https://github.com/wandb/weave/issues/1741), the problem reported was: Issue wandb/weave#1741 (closed, 6 comments): I was using weave for an app on my local machine. That worked fine. But after deploying the app to HuggingFace, an error appeared in the deployed app about not finding the Weave API key. I tried adding it to the HuggingFace "secrets" list, but that didn't work. [image] Maybe there needs to be an option to pass in an API key or read it from an OS environment variable? (instead of entering the API key interactively) The verified resolution was: [xke (reporter)]: To make Weave auth work on HuggingFace Spaces, name the secret WANDBAPIKEY (not API_KEY) so it is picked up from env. The reporter confirmed it works after that; also delete ~/.netrc locally so only the env key is used.
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_dWYSBPo2y5WL2nF_CUh-PQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Cannot use Weave with HuggingFace? <span>— Vectle</span></a>