ValueError when trying to use Trainer()
I downloaded comet_ml, but when I try to use the Trainer() function, I get the following error:Traceback (most recent call last):File “”, line 1, inFile “/Users/aviaronkraft/anaconda3/lib/python3.8/site-packages/transformers/trainer.py”, line 266, ininitself.setup_comet()File “/Users/aviaronkraft/anaconda3/lib/python3.8/site-packages/transformers/trainer.py”, line 504, in setup_cometexperiment = comet_ml.Experiment(**args)File “/Users/aviaronkraft/anaconda3/lib/python3.8/site-packages/comet_ml/init.py”, line 202, ininitraise ValueError(ValueError: Comet.ml requires an API key. Please provide as the first argument to Experiment(api_key) or as an environment variable named COMET_API_KEYI found a Github thread on this error where someone suggested that the initialization function for the Experiment class needs to have api_key set to None as a default, but I checked and that’s already the case. I haven’t been able to find any other suggestions online. Does anyone know what to do here?
2020-09-08T14:26:16Z
This looks like a problem coming from comet. If you uninstall it it’ll go away, and you should probably ask for help on their side if you want to use it.
2020-09-08T15:38:24Z
Thank you! I uninstalled comet and Trainer seems to be working now.