Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

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() )
data=[trace]
iplot(data)

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 plotly.py are somehow installed.

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

Thanks!
-Jon

You’re correct there are two different versions installed.
Pip list:
Screenshot%20(82)

Conda list:
Screenshot%20(83)

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!
-Jon