[BUG][SCRIPT]Artifact download not working in script mode : ERROR 'graphql: got null for non-null'
See original GitHub issuewandb --version && python --version && uname
- Weights and Biases version: wandb, version 0.9.1
- Python version: Python 3.6.9 :: Anaconda, Inc.
- Operating System: Linux
Description
Unable to download artifacts using Python3 script while it’s working on jupyter notebook
What I Did
This code works in jupyter notebook
import wandb
run = wandb.init()
artifact = run.use_artifact('jilijeanlouis/ovh-automl-image-classification-train-resnet50-homey-brown-dhole/export-models:v1', type='model')
artifact_dir = artifact.download()
But in python script I get:
>>> artifact = run.use_artifact('jilijeanlouis/ovh-automl-image-classification-train-resnet50-homey-brown-dhole/export-models:v1', type='model')
Traceback (most recent call last):
>>> File "<stdin>", line 1, in <module>
File "/opt/conda/lib/python3.6/site-packages/wandb/wandb_run.py", line 430, in use_artifact
self.api.use_artifact(artifact.id)
File "/opt/conda/lib/python3.6/site-packages/wandb/apis/internal.py", line 1038, in use_artifact
'artifactID': artifact_id,
File "/opt/conda/lib/python3.6/site-packages/wandb/retry.py", line 95, in __call__
result = self._call_fn(*args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/wandb/apis/internal.py", line 108, in execute
return self.client.execute(*args, **kwargs)
File "/opt/conda/lib/python3.6/site-packages/gql/client.py", line 54, in execute
raise Exception(str(result.errors[0]))
Exception: {'message': 'graphql: got null for non-null'}
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
[BUG][SCRIPT]Artifact download not working in script mode ...
[BUG][SCRIPT]Artifact download not working in script mode : ERROR 'graphql: got null for non-null' #1120.
Read more >Why am I getting a "Cannot return null for non-nullable field ...
The biggest problem with your resolver is that in any number of scenarios, instead of returning a User object, you return a string....
Read more >Solving “Cannot return null for non-nullable field” error with ...
The problem. Right now I'm building a GraphQL API for a project using Elixir's Absinthe library. I'm using the Kronky library to help ......
Read more >No input field null validation on non nullable fields - GraphQL
I get a graphql error from dgraph saying name is null, which means name is passed as null by default. 2 Likes. chewxy...
Read more >PostGraphile | Why is it nullable?
In GraphQL, nulls cascade up the tree until they find the first "nullable". ... by default ("errors happen") and allows you to mark...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Nice @jqueguiner we’ve fixed this issue in master. We’re targeting a new release first thing next week!
Issue-Label Bot is automatically applying the label
bug
to this issue, with a confidence of 0.94. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.