Black Lives Matter. Please consider donating to Black Girls Code today.

AttributeError: the module '' does not have the 'TexttemplateValidator' attribute

I would like to plot eigs_vals with plotly:

    [2.32775157e+01 9.52106403e+00 6.28218534e+00 2.60804365e+00
     1.67407407e+00 1.00262342e+00 5.63964139e-01 4.31472684e-01
     3.99892354e-01 3.20281596e-01 2.46599295e-01 2.25225326e-01
     1.83994543e-01 1.79463965e-01 1.26683975e-01 1.03432264e-01
     9.72929766e-02 8.28120655e-02 7.35903993e-02 6.27055135e-02
     5.88016984e-02 4.57564038e-02 4.48965154e-02 4.28743238e-02
     7.51740009e-03 7.06741359e-03 6.04070480e-03 6.53525486e-03]

But with the following code that comes from about the principal components analysis I obtained an AttributeError: there is no TexttemplateValidator :

    tot = sum(eig_vals)
    var_exp = [(i / tot)*100 for i in sorted(eig_vals, reverse=True)]
    cum_var_exp = np.cumsum(var_exp)
    trace1 = dict(
        x=['PC %s' %i for i in range(1,5)],
    trace2 = dict(
        x=['PC %s' %i for i in range(1,5)], 
    data = [trace1, trace2]
        title='Explained variance by different principal components',
            title='Explained variance in percent'
                text='Explained Variance',
    fig = dict(data=data, layout=layout)

Indeed, I obtained:

    AttributeError                            Traceback (most recent call last)
    <ipython-input-101-769eef2cc115> in <module>
         38 fig = dict(data=data, layout=layout)
    ---> 39 plot(fig)#,
         40      #filename='selecting-principal-components.html')
    C:\ProgramData\Anaconda3\lib\site-packages\plotly\offline\ in plot(figure_or_data, show_link, link_text, validate, output_type, include_plotlyjs, filename, auto_open, image, image_filename, image_width, image_height, config, include_mathjax, auto_play, animation_opts)
        570             animation_opts=animation_opts)
    --> 572 
        573 def plot_mpl(mpl_fig, resize=False, strip_style=False,
        574              verbose=False, show_link=False, link_text='Export to',
    C:\ProgramData\Anaconda3\lib\site-packages\plotly\ in return_figure_from_figure_or_data(figure_or_data, validate_figure)
        552     # Throw exception if non-valid key / fill in defaults
    --> 553     def _check_keys_and_fill(name, arg, defaults):
        554         def _checks(item, defaults):
        555             if item is None:
    C:\ProgramData\Anaconda3\lib\site-packages\plotly\graph_objs\ in __init__(self, data, layout, frames, skip_invalid, **kwargs)
        606             constancy of data points during animation. Should be an
        607             array of strings, not numbers or any other type.
    --> 608         idssrc
        609             Sets the source reference on for  ids .
        610         legendgroup
    C:\ProgramData\Anaconda3\lib\site-packages\plotly\ in __init__(self, data, layout_plotly, frames, skip_invalid, **kwargs)
        155         data = self._data_validator.validate_coerce(data,
        156                                                     skip_invalid=skip_invalid)
    --> 157 
        158         # ### Save tuple of trace objects ###
        159         self._data_objs = data
    C:\ProgramData\Anaconda3\lib\site-packages\_plotly_utils\ in validate_coerce(self, v, skip_invalid)
    C:\ProgramData\Anaconda3\lib\site-packages\plotly\graph_objs\ in __init__(self, arg, alignmentgroup, base, basesrc, cliponaxis, constraintext, customdata, customdatasrc, dx, dy, error_x, error_y, hoverinfo, hoverinfosrc, hoverlabel, hovertemplate, hovertemplatesrc, hovertext, hovertextsrc, ids, idssrc, insidetextanchor, insidetextfont, legendgroup, marker, meta, metasrc, name, offset, offsetgroup, offsetsrc, opacity, orientation, outsidetextfont, r, rsrc, selected, selectedpoints, showlegend, stream, t, text, textangle, textfont, textposition, textpositionsrc, textsrc, texttemplate, texttemplatesrc, tsrc, uid, uirevision, unselected, visible, width, widthsrc, x, x0, xaxis, xcalendar, xsrc, y, y0, yaxis, ycalendar, ysrc, **kwargs)
    AttributeError: module '' has no attribute 'TexttemplateValidator'

I looked on the plotly community, according to jmmease it might be conflicting plotly version but it seems that I only have one version.
Here is my plotly version:

    (base) C:\WINDOWS\system32> conda list
    # packages in environment at C:\ProgramData\Anaconda3:
    # Name                    Version                   Build  Channel
    _anaconda_depends         2019.03                  py37_0
    plotly                    4.3.0                    pypi_0    pypi
    plotly-orca               1.2.1                         1    plotly

I thought I was using plotly 3.10