Plotly Value error - Invalid property for colour

Update:

After further looking into the issue, the problem is with the cufflinks internal files. Cufflinks is having compatibility issues with the plotly latest version, which is dicussed in this Github Issue, You could try either downgrading to `plotly 2.7' using the below commands. So that these errors can be eliminated.

pip uninstall plotly
pip install plotly==2.7.0

As you can see in the logs, please refer the below line, which tells us the actual problem.

--> 199 layout=Layout(theme_data['layout'])

The error thrown for that lines is.

ValueError: 
Invalid value of type 'builtins.str' received for the 'bgcolor' property of 
layout.legend
    Received value: 'pearl02'

The 'bgcolor' property is a color and may be specified as:
  - A hex string (e.g. '#ff0000')
  - An rgb/rgba string (e.g. 'rgb(255,0,0)')
  - An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
  - An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
  - A named CSS color:
        aliceblue, antiquewhite, aqua, aquamarine, azure...

So you need to change the layout object's bgcolor property to something other than pearl02, which seems to be the issue, You could change the layout object property as.

layout = {
    'bgcolor': '#ffffff'
}

Please use the below reference link to know about the different ways of setting color values.

  1. Web Colors