I had this problem while training my ML model. The issue occurred when in the yaml configuration file I had mistakenly removed the space between one of the key and value. It got resolved after removing that.