Conda Environment Issue
1
0
Entering edit mode
1 day ago
cthangav ▴ 110

I ran into an issue while trying to complete these instructions to use a tumor classifying machine learning model on github: https://github.com/CBIIT/NCI-DOE-Collab-Pilot1-Normal-Tumor-Pair-Classifier/tree/master/Pilot1/NT3

I did the following: 

git clone https://github.com/CBIIT/NCI-DOE-Collab-Pilot1-Normal-Tumor-Pair-Classifier
conda env create -f environment.yml -n nt3 
conda activate nt3 
cd Pilot1
cd NT3
python nt3_baseline_keras2.py

But I am getting this error:

Using TensorFlow backend.
Traceback (most recent call last):
  File "nt3_baseline_keras2.py", line 9, in <module>
    from keras import backend as K
  File "/home/thangavelucs/anaconda3/envs/nt3/lib/python3.6/site-packages/keras/
    from . import utils
  File "/home/thangavelucs/anaconda3/envs/nt3/lib/python3.6/site-packages/keras/
    from . import conv_utils
  File "/home/thangavelucs/anaconda3/envs/nt3/lib/python3.6/site-packages/keras/
    from .. import backend as K
  File "/home/thangavelucs/anaconda3/envs/nt3/lib/python3.6/site-packages/keras/
    from .load_backend import epsilon
  File "/home/thangavelucs/anaconda3/envs/nt3/lib/python3.6/site-packages/keras/
    from .tensorflow_backend import *
  File "/home/thangavelucs/anaconda3/envs/nt3/lib/python3.6/site-packages/keras/
    import tensorflow as tf
  File "/home/thangavelucs/anaconda3/envs/nt3/lib/python3.6/site-packages/tensor
    from tensorflow_core import *
  File "/home/thangavelucs/anaconda3/envs/nt3/lib/python3.6/site-packages/tensor
    from tensorflow._api.v1 import compat
  File "/home/thangavelucs/anaconda3/envs/nt3/lib/python3.6/site-packages/tensor
    from tensorflow._api.v1.compat import v2
  File "/home/thangavelucs/anaconda3/envs/nt3/lib/python3.6/site-packages/tensor
    from tensorboard.summary._tf import summary
  File "/home/thangavelucs/anaconda3/envs/nt3/lib/python3.6/site-packages/tensor
    from tensorboard.summary import v2
  File "/home/thangavelucs/anaconda3/envs/nt3/lib/python3.6/site-packages/tensor
    from tensorboard.plugins.audio.summary_v2 import audio
  File "/home/thangavelucs/anaconda3/envs/nt3/lib/python3.6/site-packages/tensor
    from tensorboard.compat import tf2 as tf
  File "/home/thangavelucs/anaconda3/envs/nt3/lib/python3.6/site-packages/tensor
    import tensorboard.lazy as _lazy
AttributeError: module 'tensorboard' has no attribute 'lazy'

Does anyone else get this issue? I tried uninstalling and reinstalling tensorflow and tensorboard but this results in more compatibility errors.

conda python yaml environments dependencies • 113 views
ADD COMMENT
0
Entering edit mode
1 day ago
Ernest Bonat ▴ 10

Uninstall tensorflow-tensorboard does the trick : pip uninstall tensorflow-tensorboard

ADD COMMENT

Login before adding your answer.

Traffic: 1244 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6