I have Keras installed with Theano backend, and it worked fine, and suddenly I get the following error when importing keras:
Using Theano backend.
AttributeError Traceback (most recent call last)
<ipython-input-2-570b835f182b> in <module>()
1
3 from keras.models import Sequential
4 from keras.layers import Convolution2D, MaxPooling2D
5 from keras.layers import Activation, Dropout, Flatten, Dense
/home/pjwstk.edu.pl/s16352/python/keras/keras/__init__.py in <module>()
1 from __future__ import absolute_import
3 from . import datasets
4 from . import engine
5 from . import layers
/home/pjwstk.edu.pl/s16352/python/keras/keras/backend/__init__.py in <module>()
62 if _BACKEND == 'theano':
63 sys.stderr.write('Using Theano backend.\n')
65 elif _BACKEND == 'tensorflow':
66 sys.stderr.write('Using TensorFlow backend.\n')
/home/pjwstk.edu.pl/s16352/python/keras/keras/backend/theano_backend.py in <module>()
2 from theano import tensor as T
3 from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
4 from theano.tensor.signal import pool
5 from theano.tensor.nnet import conv3d2d
/home/pjwstk.edu.pl/s16352/python/Theano/theano/__init__.pyc in <module>()
98
99 import theano.tests
101 test = theano.tests.TheanoNoseTester().test
102 else:
AttributeError: 'module' object has no attribute 'tests'
I run it on Jupyter laptops on the server. Any clues?
source
share