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.

Wandb 0.12.6 leads to Import Failure. Works on reverting to 0.12.2

See original GitHub issue

While Looking up ESPNet using this Tutorial: https://colab.research.google.com/drive/1L85G7jdhsI1QKs2o0qCGEbhm5X4QV2zN

I came across this issue when the Library “Wandb” is imported.

# python3 -m espnet2.bin.asr_train --collect_stats true --use_preprocessor true --bpemodel data/token_list/bpe_unigram30/bpe.model --token_type bpe --token_list data/token_list/bpe_unigram30/tokens.txt --non_linguistic_symbols none --cleaner none --g2p none --train_data_path_and_name_and_type dump/raw/train_nodev/wav.scp,speech,sound --train_data_path_and_name_and_type dump/raw/train_nodev/text,text,text --valid_data_path_and_name_and_type dump/raw/train_dev/wav.scp,speech,sound --valid_data_path_and_name_and_type dump/raw/train_dev/text,text,text --train_shape_file exp/asr_stats_raw_bpe30/logdir/train.32.scp --valid_shape_file exp/asr_stats_raw_bpe30/logdir/valid.32.scp --output_dir exp/asr_stats_raw_bpe30/logdir/stats.32 --frontend_conf fs=16k 
# Started at Wed Oct 27 16:36:43 EDT 2021
    from .wandb_init import _attach, init  # noqa: F401
  File "/home/debayan/.local/lib/python3.8/site-packages/wandb/sdk/wandb_init.py", line 35, in <module>
    from .backend.backend import Backend
  File "/home/debayan/.local/lib/python3.8/site-packages/wandb/sdk/backend/backend.py", line 20, in <module>
    from ..interface import interface
  File "/home/debayan/.local/lib/python3.8/site-packages/wandb/sdk/interface/interface.py", line 21, in <module>
    from wandb.proto import wandb_internal_pb2 as pb
  File "/home/debayan/.local/lib/python3.8/site-packages/wandb/proto/wandb_internal_pb2.py", line 15, in <module>
    from wandb.proto import wandb_base_pb2 as wandb_dot_proto_dot_wandb__base__pb2
  File "/home/debayan/.local/lib/python3.8/site-packages/wandb/proto/wandb_base_pb2.py", line 21, in <module>
    create_key=_descriptor._internal_create_key,
AttributeError: module 'google.protobuf.descriptor' has no attribute '_internal_create_key

This was in Wandb version 0.12.6 .

However, when I reverted to Wandb version 0.12.2, it started working as expected.

Feel free to reach out if any questions!

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
sw005320commented, Nov 1, 2021

Weeelll, ESPnet 1 employs chainer and not wandb, while ESPnet2 employs wandb and not chainer. IMO, the best solution will be to slip the projects, so we reduce the dependency on older pkg.

I see. This would be a smart solution, but it may take some time.

For now, how about using older versions of wandb? It is a little bit unfortunate, but I think this will be fixed in the future.

0reactions
kamo-naoyukicommented, Nov 5, 2021

If there is no disagreement, I’ll proceed in my direction.

Read more comments on GitHub >

github_iconTop Results From Across the Web

attributeerror: module 'wandb' has no attribute 'init' - You.com
I came across this issue when the Library "Wandb" is imported. This was in Wandb version 0.12. 6 . However, when I reverted...
Read more >
Agent bug? File not found error - W&B Help - WandB community
Hi I'm using kaggle with Pytorch and W&B Weights and Biases version: 0.12.11 Python version: 3.7.12 Description: When using the attached ...
Read more >
wandb - PyPI
Capture dataset versions with W&B Artifacts to identify how changing data affects your resulting models. Reproduce any model, with saved code, hyperparameters, ...
Read more >
EasyBuild v4.6.2 documentation (release 20221021.0)
0 build dependency for bamtofastq, since build fails with Rust 1.52.1 (#15636); avoid that pygmo v2.18.0 installs stuff in Python installation directory +...
Read more >
Open Source Used In Crosswork Optimization Engine 4.1.0
This document contains licenses and notices for open source software used in this product. With respect to the free/open source software listed in...
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