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.

Unexpected and malformed update config object with key `wandb_version` when resuming run, not originally included in the pushed config.

See original GitHub issue

Python version: 3.8 Wandb version: 0.10.10 OS: Linux

Sample code failing:

if args.config:
    with open(args.config, 'r') as f:
        config = yaml.load(f)
else:
    config = None

resume = 'allow' if args.id else None
wandb.init(project='icl-vae', 
           entity='kdelcastillo',
           id=args.id,
           resume=resume,
           allow_val_change=True)
wandb.save('*.pt')
wandb.config.update(config)
config = wandb.config

By the stack trace output it seems that it’s failing on wandb.init.

Output/stacktrace:

wandb: Currently logged in as: kdelcastillo (use `wandb login --relogin` to force relogin)
Traceback (most recent call last):
  File "/root/.local/share/virtualenvs/icl-vae-v3xkFSzW/lib/python3.8/site-packages/wandb/sdk/wandb_init.py", line 569, in init
    run = wi.init()
  File "/root/.local/share/virtualenvs/icl-vae-v3xkFSzW/lib/python3.8/site-packages/wandb/sdk/wandb_init.py", line 416, in init
    run._set_run_obj(ret.run)
  File "/root/.local/share/virtualenvs/icl-vae-v3xkFSzW/lib/python3.8/site-packages/wandb/sdk/wandb_run.py", line 623, in _set_run_obj
    c_dict = config_util.dict_no_value_from_proto_list(run_obj.config.update)
  File "/root/.local/share/virtualenvs/icl-vae-v3xkFSzW/lib/python3.8/site-packages/wandb/sdk/lib/config_util.py", line 30, in dict_no_value_from_proto_list
    d[item.key] = json.loads(item.value_json)["value"]
TypeError: 'int' object is not subscriptable
wandb: ERROR Abnormal program exit
Traceback (most recent call last):
  File "/root/.local/share/virtualenvs/icl-vae-v3xkFSzW/lib/python3.8/site-packages/wandb/sdk/wandb_init.py", line 569, in init
    run = wi.init()
  File "/root/.local/share/virtualenvs/icl-vae-v3xkFSzW/lib/python3.8/site-packages/wandb/sdk/wandb_init.py", line 416, in init
    run._set_run_obj(ret.run)
  File "/root/.local/share/virtualenvs/icl-vae-v3xkFSzW/lib/python3.8/site-packages/wandb/sdk/wandb_run.py", line 623, in _set_run_obj
    c_dict = config_util.dict_no_value_from_proto_list(run_obj.config.update)
  File "/root/.local/share/virtualenvs/icl-vae-v3xkFSzW/lib/python3.8/site-packages/wandb/sdk/lib/config_util.py", line 30, in dict_no_value_from_proto_list
    d[item.key] = json.loads(item.value_json)["value"]
TypeError: 'int' object is not subscriptable

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "src/main.py", line 56, in <module>
    wandb.init(project='icl-vae', 
  File "/root/.local/share/virtualenvs/icl-vae-v3xkFSzW/lib/python3.8/site-packages/wandb/sdk/wandb_init.py", line 606, in init
    six.raise_from(Exception("problem"), error_seen)
  File "<string>", line 3, in raise_from
Exception: problem

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
issue-label-bot[bot]commented, Nov 11, 2020

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.93. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

0reactions
ariG23498commented, Dec 8, 2020

Thanks for the reply Closing this issue 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected and malformed update config object with ... - GitHub
Unexpected and malformed update config object with key wandb_version when resuming run, not originally included in the pushed config. #1481.
Read more >
Unable to perform initial export and push due to shared objects
Hello I am encountering a particularly frustrating problem. After importing a device's configuration into Panorama, the commit fails because ...
Read more >
Manage existing cluster objects | Anthos Config Management
This topic describes how to start managing an existing object and how to stop managing an object that is currently managed without deleting...
Read more >
CWE-209: Generation of Error Message Containing Sensitive ...
An attack using SQL injection (CWE-89) might not initially succeed, but an error message could reveal the malformed query, which would expose query...
Read more >
Cache Storage — Apache Traffic Server 7.1.11 documentation
The object store indexes cache objects according to URLs and associated headers. This enables Traffic Server to store, retrieve, and serve not only...
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