Error Occured
- Dominant language
- Python
- Stars
- 1.6k
- Forks
- 447
- PR merge metrics
- No merged PRs in 30d
Description
I am getting while running the command
> (keras-tf-env3-Elmo) anupam@anupam-OMEN-HP:~/Desktop/ElMo/bilm-tf-master$ python -m unittest discover tests/
.Found 1 shards at /tmp/tmpchp8e__6
Loading data from: /tmp/tmpchp8e__6
Loaded 3 sentences.
Finished loading
Found 1 shards at /tmp/tmpchp8e__6
Loading data from: /tmp/tmpchp8e__6
Loaded 3 sentences.
Finished loading
Loading data from: /tmp/tmpchp8e__6
Loaded 3 sentences.
Finished loading
Loading data from: /tmp/tmpchp8e__6
Loaded 3 sentences.
Finished loading
Found 1 shards at /tmp/tmpchp8e__6
Loading data from: /tmp/tmpchp8e__6
Loaded 3 sentences.
Finished loading
Found 1 shards at /tmp/tmpchp8e__6
Loading data from: /tmp/tmpchp8e__6
Loaded 3 sentences.
Finished loading
Loading data from: /tmp/tmpchp8e__6
Loaded 3 sentences.
Finished loading
Loading data from: /tmp/tmpchp8e__6
Loaded 3 sentences.
Finished loading
Found 1 shards at /tmp/tmpchp8e__6
Loading data from: /tmp/tmpchp8e__6
Loaded 3 sentences.
Finished loading
Found 1 shards at /tmp/tmpchp8e__6
Loading data from: /tmp/tmpchp8e__6
Loaded 3 sentences.
Finished loading
Loading data from: /tmp/tmpchp8e__6
Loaded 3 sentences.
Finished loading
Loading data from: /tmp/tmpchp8e__6
Loaded 3 sentences.
Finished loading
Found 1 shards at /tmp/tmpchp8e__6
Loading data from: /tmp/tmpchp8e__6
Loaded 3 sentences.
Finished loading
Found 1 shards at /tmp/tmpchp8e__6
Loading data from: /tmp/tmpchp8e__6
Loaded 3 sentences.
Finished loading
Loading data from: /tmp/tmpchp8e__6
Loaded 3 sentences.
Finished loading
Loading data from: /tmp/tmpchp8e__6
Loaded 3 sentences.
Finished loading
.Found 1 shards at /tmp/tmp55a5llby
Loading data from: /tmp/tmp55a5llby
Loaded 3 sentences.
Finished loading
Loading data from: /tmp/tmp55a5llby
Loaded 3 sentences.
Finished loading
.Found 1 shards at /tmp/tmpa9apd0fs
Loading data from: /tmp/tmpa9apd0fs
Loaded 3 sentences.
Finished loading
Loading data from: /tmp/tmpa9apd0fs
Loaded 3 sentences.
Finished loading
.Found 1 shards at /tmp/tmp19huk5ds
Loading data from: /tmp/tmp19huk5ds
Loaded 3 sentences.
Finished loading
Loading data from: /tmp/tmp19huk5ds
Loaded 3 sentences.
Finished loading
.Found 1 shards at /tmp/tmpgzf2npaf
Loading data from: /tmp/tmpgzf2npaf
Loaded 3 sentences.
Finished loading
Loading data from: /tmp/tmpgzf2npaf
Loaded 3 sentences.
Finished loading
........EEEEEE
======================================================================
ERROR: test_weighted_layers (test_elmo.TestWeightedLayers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/anupam/Desktop/ElMo/bilm-tf-master/tests/test_elmo.py", line 23, in setUp
self.sess = tf.Session()
AttributeError: module 'tensorflow' has no attribute 'Session'
======================================================================
ERROR: test_weighted_layers_no_norm (test_elmo.TestWeightedLayers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/anupam/Desktop/ElMo/bilm-tf-master/tests/test_elmo.py", line 23, in setUp
self.sess = tf.Session()
AttributeError: module 'tensorflow' has no attribute 'Session'
======================================================================
ERROR: test_weighted_layers_top_only (test_elmo.TestWeightedLayers)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/anupam/Desktop/ElMo/bilm-tf-master/tests/test_elmo.py", line 23, in setUp
self.sess = tf.Session()
AttributeError: module 'tensorflow' has no attribute 'Session'
======================================================================
ERROR: test_bilm (test_model.TestBidirectionalLanguageModel)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/anupam/Desktop/ElMo/bilm-tf-master/tests/test_model.py", line 45, in setUp
self.sess = tf.Session()
AttributeError: module 'tensorflow' has no attribute 'Session'
======================================================================
ERROR: test_bilm_token (test_model.TestBidirectionalLanguageModelTokenInput)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/anupam/Desktop/ElMo/bilm-tf-master/tests/test_model.py", line 135, in setUp
self.sess = tf.Session()
AttributeError: module 'tensorflow' has no attribute 'Session'
======================================================================
ERROR: test_training (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_training
Traceback (most recent call last):
File "/home/anupam/anaconda3/envs/keras-tf-env3-Elmo/lib/python3.6/unittest/loader.py", line 428, in _find_test_path
module = self._get_module_from_name(name)
File "/home/anupam/anaconda3/envs/keras-tf-env3-Elmo/lib/python3.6/unittest/loader.py", line 369, in _get_module_from_name
__import__(name)
File "/home/anupam/Desktop/ElMo/bilm-tf-master/tests/test_training.py", line 11, in
from bilm.training import train, test, load_vocab, \
File "/home/anupam/Desktop/ElMo/bilm-tf-master/bilm/training.py", line 13, in
from tensorflow.python.ops.init_ops import glorot_uniform_initializer
ModuleNotFoundError: No module named 'tensorflow.python'
----------------------------------------------------------------------
Ran 19 tests in 0.057s
Please some one help to cinfigure.
Regards
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.