DatePickerRange Problem

Hi,

I recently started using dash and I wanted to use the DatePickerRange from the dash core components for my app.
I started playing around with it, but when I copied and pasted the example code I got from https://plot.ly/dash/dash-core-components and ran it, I got an AttributeError: ‘module’ object has no attribute ‘DatePickerRange’. Does anyone else have the same problem, or know how to fix it?

Thanks!

@elaine.wu - Which version of dash-core-components are you running? You can check with

import dash_core_components as dcc
print(dcc.__version__)

The versions of the packages that are used in the documentation are outlined here: https://plot.ly/dash/installation.

And you can stay up-to-date with new additions of the library by looking at the CHANGELOG.md file in the repos themselves: http://github.com/plotly/dash-core-components/tree/master/CHANGELOG.md

I had version 0.6.0 for the core components, so that was why. I’ve upgraded it and it works now, thanks!

1 Like