No attribute DashValidator?

Here is my code for a simple chat I am trying to make.
import plotly.plotly as py
import plotly.graph_objs as go
trace = go.Scatter( x=df[‘year’], y=df[‘nAllNeonic’].sum() )

For some reason it’s giving me this error.

AttributeError: module ‘_plotly_utils.basevalidators’ has no attribute > ‘DashValidator’

I could not find any solutions to it.

Hi @iiWylde,

DashValidator is a new class that was added in version 3.2.0, so my first guess is that perhaps two difference versions of are somehow installed.

Could you post the output of pip list and conda list?


You’re correct there are two different versions installed.
Pip list:

Conda list:

In the conda list I have plotly 3.2.0 and 3.1.0.

Hi @iiWylde,

If you haven’t already, I’d recommend uninstalling both versions:

$ pip uninstall plotly
$ conda uninstall plotly

And then reinstall once with your preference of either pip or conda.

Hope that helps!