I am working on Pset 6, Sentiments and followed the steps to create my app on twitter.
I added keys, installed requirements.txt and did everything in order, but when I type "flask run" and visit the webserver, I am having the following error. What can I be doing wrong?
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/flask/_compat.py", line 33, in reraise
raise value
File "/home/ubuntu/workspace/pset6/sentiments/application.py", line 3, in <module>
import helpers
File "/home/ubuntu/workspace/pset6/sentiments/helpers.py", line 3, in <module>
import plotly
File "/home/ubuntu/.local/lib/python3.4/site-packages/plotly/__init__.py", line 31, in <module>
from plotly import (plotly, graph_objs, grid_objs, tools, utils, session,
File "/home/ubuntu/.local/lib/python3.4/site-packages/plotly/plotly/__init__.py", line 10, in <module>
from . plotly import (
File "/home/ubuntu/.local/lib/python3.4/site-packages/plotly/plotly/plotly.py", line 27, in <module>
from plotly import exceptions, files, session, tools, utils
File "/home/ubuntu/.local/lib/python3.4/site-packages/plotly/tools.py", line 60, in <module>
matplotlylib = optional_imports.get_module('plotly.matplotlylib')
File "/home/ubuntu/.local/lib/python3.4/site-packages/plotly/optional_imports.py", line 23, in get_module
return import_module(name)
File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/ubuntu/.local/lib/python3.4/site-packages/plotly/matplotlylib/__init__.py", line 14, in <module>
from plotly.matplotlylib.renderer import PlotlyRenderer
File "/home/ubuntu/.local/lib/python3.4/site-packages/plotly/matplotlylib/renderer.py", line 13, in <module>
import plotly.graph_objs as go
File "/home/ubuntu/.local/lib/python3.4/site-packages/plotly/graph_objs/__init__.py", line 14, in <module>
from plotly.graph_objs.graph_objs import * # this is protected with __all__
File "/home/ubuntu/.local/lib/python3.4/site-packages/plotly/graph_objs/graph_objs.py", line 34, in <module>
from plotly import exceptions, graph_reference
File "/home/ubuntu/.local/lib/python3.4/site-packages/plotly/graph_reference.py", line 232, in <module>
@utils.memoize()
File "/home/ubuntu/.local/lib/python3.4/site-packages/plotly/utils.py", line 492, in memoize
return decorator(_memoize)
File "/usr/lib/python3/dist-packages/decorator.py", line 213, in decorator
fun = getfullargspec(callerfunc).args[0] # first arg
IndexError: list index out of range
update50
. Have you followed all the steps in the Getting Started, especially the first one?