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.

Error when wandb is installed

See original GitHub issue

System Summary

Pop!_OS 20.04 Pytorch: 1.5.1 Transformers: 3.0.2 Tokenizers: 0.8.1rc1 Python: 3.7.6 Pretrained Model: GPT2 Pretrained Tokenizer: GPT2

Question

Training without wandb works fine but when I pip install wandb and change nothing else in my code, whenever I go to run training I get the following error:

I0821 15:44:17.531560 46912496399424 file_utils.py:39] PyTorch version 1.5.1 available.
I0821 15:44:21.471980 46912496399424 file_utils.py:55] TensorFlow version 2.0.0 available.
Traceback (most recent call last):
  File "run_finetune_gpt2.py", line 5, in <module>
    from transformers import TrainingArguments, Trainer, GPT2Tokenizer
  File "/path/to/venv/my-venv/lib/python3.6/site-packages/transformers/__init__.py", line 158, in <module>
    from .trainer_utils import EvalPrediction, set_seed
  File "/path/to/venv/my-venv/lib/python3.6/site-packages/transformers/trainer_utils.py", line 11, in <module>
    import wandb
  File "/path/to/venv/my-venv/lib/python3.6/site-packages/wandb/__init__.py", line 60, in <module>
    from wandb.apis import InternalApi, PublicApi, CommError
  File "/path/to/venv/my-venv/lib/python3.6/site-packages/wandb/apis/__init__.py", line 116, in <module>
    from .public import Api as PublicApi
  File "/path/to/venv/my-venv/lib/python3.6/site-packages/wandb/apis/public.py", line 28, in <module>
    from wandb.summary import HTTPSummary
  File "/path/to/venv/my-venv/lib/python3.6/site-packages/wandb/summary.py", line 15, in <module>
    from wandb.meta import Meta
  File "/path/to/venv/my-venv/lib/python3.6/site-packages/wandb/meta.py", line 6, in <module>
    import pynvml
  File "/cm/local/apps/cuda/libs/current/pynvml/pynvml.py", line 1671
    print c_count.value
                ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(c_count.value)?

Any thoughts?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
aclifton314commented, Aug 26, 2020

@borisdayma that link solved my problem! Thanks for your help!

0reactions
borisdaymacommented, Aug 25, 2020

I ran it in colab: see notebook

There does not seem to be any issue related to wandb. Maybe try my previous link as it may be due to issues in your local environment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR To use wandb on Windows, you need to run ... - GitHub
I installed the packages for wandb. And then I run the code file mentioned above on my Windows 8 machine. Paste the command(s)...
Read more >
Every wandb command yields "An error occured in ...
I have a user on a multi-user server whose wandb installation appears to be broken. I have forced him to reinstall with
Read more >
Google Colab: "wandb" ModuleNotFoundError after installation
The "wandb" package cannot be found even after I see it has been listed in pip list . To be more clear, I...
Read more >
wandb - PyPI
A CLI and library for interacting with the Weights and Biases API.
Read more >
ModuleNotFoundError: No module named 'wandb'
After the installation of wandb python library, ModuleNotFoundError: No module named 'wandb' error will be solved. Thanks. Post Answer.
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