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.

[BUG][SCRIPT]Artifact download not working in script mode : ERROR 'graphql: got null for non-null'

See original GitHub issue

wandb --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:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
vanpeltcommented, Jun 27, 2020

Nice @jqueguiner we’ve fixed this issue in master. We’re targeting a new release first thing next week!

1reaction
issue-label-bot[bot]commented, Jun 26, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

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