I was just walking through the tutorial, when running the first example I got this error:
(base) C:\Users\vince.chen\Downloads>python app.py
Traceback (most recent call last):
File “app.py”, line 2, in
import dash
File “C:\Users\vince.chen\AppData\Local\Continuum\anaconda3\lib\site-packages\dash_init_.py”, line 1, in
from .dash import Dash # noqa: F401
File “C:\Users\vince.chen\AppData\Local\Continuum\anaconda3\lib\site-packages\dash\dash.py”, line 14, in
import plotly
File “C:\Users\vince.chen\AppData\Local\Continuum\anaconda3\lib\site-packages\plotly_init_.py”, line 31, in
from plotly import (plotly, dashboard_objs, graph_objs, grid_objs, tools,
File “C:\Users\vince.chen\AppData\Local\Continuum\anaconda3\lib\site-packages\plotly\plotly_init_.py”, line 10, in
from . plotly import (
File “C:\Users\vince.chen\AppData\Local\Continuum\anaconda3\lib\site-packages\plotly\plotly\plotly.py”, line 30, in
from plotly import exceptions, files, session, tools, utils
File “C:\Users\vince.chen\AppData\Local\Continuum\anaconda3\lib\site-packages\plotly\tools.py”, line 59, in
ipython_core_display = optional_imports.get_module(‘IPython.core.display’)
File “C:\Users\vince.chen\AppData\Local\Continuum\anaconda3\lib\site-packages\plotly\optional_imports.py”, line 23, in get_module
return import_module(name)
File “C:\Users\vince.chen\AppData\Local\Continuum\anaconda3\lib\importlib_init_.py”, line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\vince.chen\AppData\Local\Continuum\anaconda3\lib\site-packages\IPython_init.py", line 54, in
from .core.application import Application
File “C:\Users\vince.chen\AppData\Local\Continuum\anaconda3\lib\site-packages\IPython\core\application.py”, line 25, in
from IPython.core import release, crashhandler
File “C:\Users\vince.chen\AppData\Local\Continuum\anaconda3\lib\site-packages\IPython\core\crashhandler.py”, line 27, in
from IPython.core import ultratb
File “C:\Users\vince.chen\AppData\Local\Continuum\anaconda3\lib\site-packages\IPython\core\ultratb.py”, line 115, in
from IPython.core import debugger
File “C:\Users\vince.chen\AppData\Local\Continuum\anaconda3\lib\site-packages\IPython\core\debugger.py”, line 47, in
from pdb import Pdb as OldPdb
File “C:\Users\vince.chen\AppData\Local\Continuum\anaconda3\lib\pdb.py”, line 76, in
import code
File “C:\Users\vince.chen\Downloads\code.py”, line 49, in
‘debt_issuance’
File “C:\Users\vince.chen\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\generic.py”, line 4385, in setattr
return object.setattr(self, name, value)
File “pandas_libs\properties.pyx”, line 69, in pandas._libs.properties.AxisProperty.set
File “C:\Users\vince.chen\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\generic.py”, line 645, in _set_axis
self._data.set_axis(axis, labels)
File “C:\Users\vince.chen\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\internals.py”, line 3323, in set_axis
‘values have {new} elements’.format(old=old_len, new=new_len))
ValueError: Length mismatch: Expected axis has 14 elements, new values have 13 elements