Im running a jupyter notebook ive ran before but im getting this error of a module object:

Using TensorFlow backend.

AttributeErrorTraceback (most recent call last)

in ()

5 from statsmodels.tools.eval_measures import rmse

6 from sklearn.preprocessing import MinMaxScaler

----> 7 from keras.preprocessing.sequence import TimeseriesGenerator

8 from keras.models import Sequential

9 from keras.layers import Dense

/opt/anaconda2/lib/python2.7/site-packages/keras/**init**.py in ()

1 from **future** import absolute_import

2

----> 3 from . import utils

4 from . import activations

5 from . import applications

/opt/anaconda2/lib/python2.7/site-packages/keras/utils/**init**.py in ()

25 from .np_utils import to_categorical

26 from .np_utils import normalize

—> 27 from .multi_gpu_utils import multi_gpu_model

/opt/anaconda2/lib/python2.7/site-packages/keras/utils/multi_gpu_utils.py in ()

5 from **future** import print_function

6

----> 7 from …layers.merge import concatenate

8 from … import backend as K

9 from …layers.core import Lambda

/opt/anaconda2/lib/python2.7/site-packages/keras/layers/**init**.py in ()

2

3 from …utils.generic_utils import deserialize_keras_object

----> 4 from …engine.base_layer import Layer

5 from …engine import Input

6 from …engine import InputLayer

/opt/anaconda2/lib/python2.7/site-packages/keras/engine/**init**.py in ()

6 from .base_layer import Layer

7 from .network import get_source_inputs

----> 8 from .training import Model

/opt/anaconda2/lib/python2.7/site-packages/keras/engine/training.py in ()

19 from .training_utils import standardize_weights

20 from .training_utils import weighted_masked_objective

—> 21 from . import training_arrays

22 from . import training_generator

23 from … import backend as K

/opt/anaconda2/lib/python2.7/site-packages/keras/engine/training_arrays.py in ()

12 from .training_utils import check_num_samples

13 from … import backend as K

—> 14 from … import callbacks as cbks

15 from …utils.generic_utils import Progbar

16 from …utils.generic_utils import slice_arrays

/opt/anaconda2/lib/python2.7/site-packages/keras/callbacks/**init**.py in ()

17 from … import backend as K

18

—> 19 if K.backend() == ‘tensorflow’ and not K.tensorflow_backend._is_tf_1():

20 from .tensorboard_v2 import TensorBoard

21 else:

AttributeError: ‘module’ object has no attribute ‘_is_tf_1’